@@ -150,7 +150,7 @@ struct alice3multicharm {
150150 hMCharmBuilding->GetXaxis ()->SetBinLabel (22 , " xicMinDecayDistanceFromPV" );
151151
152152 if (doprocessXiccPID || doprocessXiccExtra) {
153- auto hPdgCodes = histos.add <TH2>(" PIDQA/hPdgCodes" , " hPdgCodes" , kTH2D , {{3 , 0.5 , 3.5 }, {5 , 0.5 , 5 .5 }});
153+ auto hPdgCodes = histos.add <TH2>(" PIDQA/hPdgCodes" , " hPdgCodes" , kTH2D , {{3 , 0.5 , 3.5 }, {7 , 0.5 , 7 .5 }});
154154 hPdgCodes->GetXaxis ()->SetBinLabel (1 , " pi1c" );
155155 hPdgCodes->GetXaxis ()->SetBinLabel (2 , " pi2c" );
156156 hPdgCodes->GetXaxis ()->SetBinLabel (3 , " picc" );
@@ -159,11 +159,14 @@ struct alice3multicharm {
159159 hPdgCodes->GetYaxis ()->SetBinLabel (3 , " pi" );
160160 hPdgCodes->GetYaxis ()->SetBinLabel (4 , " ka" );
161161 hPdgCodes->GetYaxis ()->SetBinLabel (5 , " pr" );
162+ hPdgCodes->GetYaxis ()->SetBinLabel (6 , " xi" );
163+ hPdgCodes->GetYaxis ()->SetBinLabel (7 , " other" );
162164 pdgToBin.insert ({kElectron , 1 });
163165 pdgToBin.insert ({kMuonMinus , 2 });
164166 pdgToBin.insert ({kPiPlus , 3 });
165167 pdgToBin.insert ({kKPlus , 4 });
166168 pdgToBin.insert ({kProton , 5 });
169+ pdgToBin.insert ({kXiMinus , 6 });
167170
168171 histos.add (" PIDQA/hInnerTofTimeDeltaPi1c" , " hInnerTofTimeDeltaPi1c; Reco - expected pion (ps)" , kTH1D , {axisTofTrackDelta});
169172 histos.add (" PIDQA/hInnerTofTimeDeltaPi2c" , " hInnerTofTimeDeltaPi2c; Reco - expected pion (ps)" , kTH1D , {axisTofTrackDelta});
@@ -194,6 +197,12 @@ struct alice3multicharm {
194197 histos.add (" h3dXicc" , " h3dXicc; Xicc pT (GeV/#it(c)); Xicc #eta; Xicc mass (GeV/#it(c)^{2})" , kTH3D , {axisPt, axisEta, axisXiccMass});
195198 }
196199
200+ int getBin (const std::map<int , int >& pdgToBin, int pdg)
201+ {
202+ auto it = pdgToBin.find (pdg);
203+ return (it != pdgToBin.end ()) ? it->second : 7 ;
204+ }
205+
197206 template <typename TMCharmCands>
198207 void genericProcessXicc (TMCharmCands xiccCands)
199208 {
@@ -324,9 +333,9 @@ struct alice3multicharm {
324333 histos.fill (HIST (" PIDQA/hRichNSigmaPicc" ), xiccCand.piccPt (), xiccCand.piccRichNSigma ());
325334 }
326335
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 ())));
336+ histos.fill (HIST (" PIDQA/hPdgCodes" ), 1 , getBin (pdgToBin, std::abs (xiccCand.pi1cPdgCode ())));
337+ histos.fill (HIST (" PIDQA/hPdgCodes" ), 2 , getBin (pdgToBin, std::abs (xiccCand.pi2cPdgCode ())));
338+ histos.fill (HIST (" PIDQA/hPdgCodes" ), 3 , getBin (pdgToBin, std::abs (xiccCand.piccPdgCode ())));
330339 }
331340
332341 if constexpr (requires { xiccCand.negPt (); }) { // if extra table
0 commit comments