@@ -83,12 +83,10 @@ struct alice3multicharm {
8383
8484 Configurable<float > picMinDCAxy{" picMinDCAxy" , -1 , " [0] in |DCAz| > [0]+[1]/pT" };
8585 Configurable<float > picMinDCAz{" picMinDCAz" , -1 , " [0] in |DCAxy| > [0]+[1]/pT" };
86- Configurable<float > picMaxTofDiffInner{" picTofDiffInner" , 1e+4 , " |signal - expected| (ps)" };
8786 Configurable<float > picMinPt{" picMinPt" , -1 , " Minimum pT for Xic pions" };
8887
8988 Configurable<float > piccMinDCAxy{" piccMinDCAxy" , -1 , " [0] in |DCAxy| > [0]+[1]/pT" };
9089 Configurable<float > piccMinDCAz{" piccMinDCAz" , -1 , " [0] in |DCAz| > [0]+[1]/pT" };
91- Configurable<float > piccMaxTofDiffInner{" piccMaxTofDiffInner" , 1e+4 , " |signal - expected| (ps)" };
9290 Configurable<float > piccMinPt{" piccMinPt" , -1 , " Minimum pT for Xicc pions" };
9391
9492 Configurable<float > xicMaxDauDCA{" xicMaxDauDCA" , 1e+4 , " DCA between Xic daughters (cm)" };
@@ -150,7 +148,7 @@ struct alice3multicharm {
150148 hMCharmBuilding->GetXaxis ()->SetBinLabel (22 , " xicMinDecayDistanceFromPV" );
151149
152150 if (doprocessXiccPID || doprocessXiccExtra) {
153- auto hPdgCodes = histos.add <TH2>(" PIDQA/hPdgCodes" , " hPdgCodes" , kTH2D , {{3 , 0.5 , 3.5 }, {5 , 0.5 , 5 .5 }});
151+ auto hPdgCodes = histos.add <TH2>(" PIDQA/hPdgCodes" , " hPdgCodes" , kTH2D , {{3 , 0.5 , 3.5 }, {7 , 0.5 , 7 .5 }});
154152 hPdgCodes->GetXaxis ()->SetBinLabel (1 , " pi1c" );
155153 hPdgCodes->GetXaxis ()->SetBinLabel (2 , " pi2c" );
156154 hPdgCodes->GetXaxis ()->SetBinLabel (3 , " picc" );
@@ -159,11 +157,14 @@ struct alice3multicharm {
159157 hPdgCodes->GetYaxis ()->SetBinLabel (3 , " pi" );
160158 hPdgCodes->GetYaxis ()->SetBinLabel (4 , " ka" );
161159 hPdgCodes->GetYaxis ()->SetBinLabel (5 , " pr" );
160+ hPdgCodes->GetYaxis ()->SetBinLabel (6 , " xi" );
161+ hPdgCodes->GetYaxis ()->SetBinLabel (7 , " other" );
162162 pdgToBin.insert ({kElectron , 1 });
163163 pdgToBin.insert ({kMuonMinus , 2 });
164164 pdgToBin.insert ({kPiPlus , 3 });
165165 pdgToBin.insert ({kKPlus , 4 });
166166 pdgToBin.insert ({kProton , 5 });
167+ pdgToBin.insert ({kXiMinus , 6 });
167168
168169 histos.add (" PIDQA/hInnerTofTimeDeltaPi1c" , " hInnerTofTimeDeltaPi1c; Reco - expected pion (ps)" , kTH1D , {axisTofTrackDelta});
169170 histos.add (" PIDQA/hInnerTofTimeDeltaPi2c" , " hInnerTofTimeDeltaPi2c; Reco - expected pion (ps)" , kTH1D , {axisTofTrackDelta});
@@ -194,6 +195,12 @@ struct alice3multicharm {
194195 histos.add (" h3dXicc" , " h3dXicc; Xicc pT (GeV/#it(c)); Xicc #eta; Xicc mass (GeV/#it(c)^{2})" , kTH3D , {axisPt, axisEta, axisXiccMass});
195196 }
196197
198+ int getBin (const std::map<int , int >& pdgToBin, int pdg)
199+ {
200+ auto it = pdgToBin.find (pdg);
201+ return (it != pdgToBin.end ()) ? it->second : 7 ;
202+ }
203+
197204 template <typename TMCharmCands>
198205 void genericProcessXicc (TMCharmCands xiccCands)
199206 {
@@ -324,9 +331,9 @@ struct alice3multicharm {
324331 histos.fill (HIST (" PIDQA/hRichNSigmaPicc" ), xiccCand.piccPt (), xiccCand.piccRichNSigma ());
325332 }
326333
327- histos.fill (HIST (" PIDQA/hPdgCodes" ), 1 , pdgToBin. at ( std::abs (xiccCand.pi1cPdgCode ())));
328- histos.fill (HIST (" PIDQA/hPdgCodes" ), 2 , pdgToBin. at ( std::abs (xiccCand.pi2cPdgCode ())));
329- histos.fill (HIST (" PIDQA/hPdgCodes" ), 3 , pdgToBin. at ( std::abs (xiccCand.piccPdgCode ())));
334+ histos.fill (HIST (" PIDQA/hPdgCodes" ), 1 , getBin (pdgToBin, std::abs (xiccCand.pi1cPdgCode ())));
335+ histos.fill (HIST (" PIDQA/hPdgCodes" ), 2 , getBin (pdgToBin, std::abs (xiccCand.pi2cPdgCode ())));
336+ histos.fill (HIST (" PIDQA/hPdgCodes" ), 3 , getBin (pdgToBin, std::abs (xiccCand.piccPdgCode ())));
330337 }
331338
332339 if constexpr (requires { xiccCand.negPt (); }) { // if extra table
0 commit comments