@@ -99,6 +99,9 @@ TH1F* fhPtNegA[kIdBfNoOfSpecies + 1] = {nullptr};
9999TH2F* fhNPosNegA[kIdBfNoOfSpecies + 1 ] = {nullptr };
100100TH1F* fhDeltaNA[kIdBfNoOfSpecies + 1 ] = {nullptr };
101101
102+ TH2F* fhPtEtaPosA[kIdBfNoOfSpecies + 1 ] = {nullptr };
103+ TH2F* fhPtEtaNegA[kIdBfNoOfSpecies + 1 ] = {nullptr };
104+
102105TH1I* fhNClustersB = nullptr ;
103106TH2F* fhPhiYB = nullptr ;
104107TH2F* fhPtYB = nullptr ;
@@ -167,6 +170,9 @@ TH1F* fhTruePtNegA[kIdBfNoOfSpecies + 1] = {nullptr};
167170TH2F* fhTrueNPosNegA[kIdBfNoOfSpecies + 1 ] = {nullptr };
168171TH1F* fhTrueDeltaNA[kIdBfNoOfSpecies + 1 ] = {nullptr };
169172
173+ TH2F* fhTruePtEtaPosA[kIdBfNoOfSpecies + 1 ] = {nullptr };
174+ TH2F* fhTruePtEtaNegA[kIdBfNoOfSpecies + 1 ] = {nullptr };
175+
170176TH2F* fhTruePhiYB = nullptr ;
171177TH2F* fhTruePtYB = nullptr ;
172178
@@ -854,6 +860,14 @@ struct IdentifiedBfFilterTracks {
854860 fhPtNegA[sp] = new TH1F (TString::Format (" fHistPtNegA_%s" , speciesName[sp]),
855861 TString::Format (" P_{T} distribution for reconstructed %s^{#minus};P_{T} (GeV/c);dN/dP_{T} (c/GeV)" , speciesTitle[sp]).Data (),
856862 ptbins, ptlow, ptup);
863+ fhPtEtaPosA[sp] = new TH2F (TString::Format (" fHistPtEtaPosA_%s" , speciesName[sp]),
864+ TString::Format (" P_{T} vs #eta distribution for reconstructed %s^{#plus};P_{T} (GeV/c);#eta;dN/dP_{T} (c/GeV)" , speciesTitle[sp]).Data (),
865+ ptbins, ptlow, ptup,
866+ etabins, etalow, etaup);
867+ fhPtEtaNegA[sp] = new TH2F (TString::Format (" fHistPtEtaNegA_%s" , speciesName[sp]),
868+ TString::Format (" P_{T} vs #eta distribution for reconstructed %s^{#minus};P_{T} (GeV/c);#eta;dN/dP_{T} (c/GeV)" , speciesTitle[sp]).Data (),
869+ ptbins, ptlow, ptup,
870+ etabins, etalow, etaup);
857871 fhNPosNegA[sp] = new TH2F (TString::Format (" fhNPosNegA_%s" , speciesName[sp]).Data (),
858872 TString::Format (" N(%s^{#plus}) N(%s^{#minus}) distribution for reconstructed;N(%s^{#plus});N(%s^{#minus})" , speciesTitle[sp], speciesTitle[sp], speciesTitle[sp], speciesTitle[sp]).Data (),
859873 40 , -0.5 , 39.5 , 40 , -0.5 , 39.5 );
@@ -929,6 +943,8 @@ struct IdentifiedBfFilterTracks {
929943 fOutputList ->Add (fhPtA[sp]);
930944 fOutputList ->Add (fhPtPosA[sp]);
931945 fOutputList ->Add (fhPtNegA[sp]);
946+ fOutputList ->Add (fhPtEtaPosA[sp]);
947+ fOutputList ->Add (fhPtEtaNegA[sp]);
932948 fOutputList ->Add (fhNPosNegA[sp]);
933949 fOutputList ->Add (fhDeltaNA[sp]);
934950 fOutputList ->Add (fhdEdxA[sp]);
@@ -984,6 +1000,14 @@ struct IdentifiedBfFilterTracks {
9841000 fhTruePtNegA[sp] = new TH1F (TString::Format (" fTrueHistPtNegA_%s" , speciesName[sp]),
9851001 TString::Format (" P_{T} distribution %s^{#minus} (truth);P_{T} (GeV/c);dN/dP_{T} (c/GeV)" , speciesTitle[sp]).Data (),
9861002 ptbins, ptlow, ptup);
1003+ fhTruePtEtaPosA[sp] = new TH2F (TString::Format (" fTrueHistPtEtaPosA_%s" , speciesName[sp]),
1004+ TString::Format (" P_{T} vs #eta distribution %s^{#plus} (truth);P_{T} (GeV/c);#eta;dN/dP_{T} (c/GeV)" , speciesTitle[sp]).Data (),
1005+ ptbins, ptlow, ptup,
1006+ etabins, etalow, etaup);
1007+ fhTruePtEtaNegA[sp] = new TH2F (TString::Format (" fTrueHistPtEtaNegA_%s" , speciesName[sp]),
1008+ TString::Format (" P_{T} vs #eta distribution %s^{#minus} (truth);P_{T} (GeV/c);#eta;dN/dP_{T} (c/GeV)" , speciesTitle[sp]).Data (),
1009+ ptbins, ptlow, ptup,
1010+ etabins, etalow, etaup);
9871011 fhTrueNPosNegA[sp] = new TH2F (TString::Format (" fhTrueNPosNegA_%s" , speciesName[sp]).Data (),
9881012 TString::Format (" N(%s^{#plus}) N(%s^{#minus}) distribution (truth);N(%s^{#plus});N(%s^{#minus})" , speciesTitle[sp], speciesTitle[sp], speciesTitle[sp], speciesTitle[sp]).Data (),
9891013 40 , -0.5 , 39.5 , 40 , -0.5 , 39.5 );
@@ -1021,6 +1045,8 @@ struct IdentifiedBfFilterTracks {
10211045 fOutputList ->Add (fhTruePtA[sp]);
10221046 fOutputList ->Add (fhTruePtPosA[sp]);
10231047 fOutputList ->Add (fhTruePtNegA[sp]);
1048+ fOutputList ->Add (fhTruePtEtaPosA[sp]);
1049+ fOutputList ->Add (fhTruePtEtaNegA[sp]);
10241050 fOutputList ->Add (fhTrueNPosNegA[sp]);
10251051 fOutputList ->Add (fhTrueDeltaNA[sp]);
10261052 }
@@ -1658,8 +1684,10 @@ void IdentifiedBfFilterTracks::fillTrackHistosAfterSelection(TrackObject const&
16581684 fhdEdxIPTPCA[sp]->Fill (track.tpcInnerParam (), track.tpcSignal ());
16591685 if (track.sign () > 0 ) {
16601686 fhPtPosA[sp]->Fill (track.pt ());
1687+ fhPtEtaPosA[sp]->Fill (track.pt (), track.eta ());
16611688 } else {
16621689 fhPtNegA[sp]->Fill (track.pt ());
1690+ fhPtEtaNegA[sp]->Fill (track.pt (), track.eta ());
16631691 }
16641692}
16651693
@@ -1720,8 +1748,10 @@ void IdentifiedBfFilterTracks::fillParticleHistosAfterSelection(ParticleObject c
17201748 fhTruePtA[sp]->Fill (particle.pt ());
17211749 if (charge > 0 ) {
17221750 fhTruePtPosA[sp]->Fill (particle.pt ());
1751+ fhTruePtEtaPosA[sp]->Fill (particle.pt (), particle.eta ());
17231752 } else {
17241753 fhTruePtNegA[sp]->Fill (particle.pt ());
1754+ fhTruePtEtaNegA[sp]->Fill (particle.pt (), particle.eta ());
17251755 }
17261756}
17271757
0 commit comments