@@ -54,12 +54,12 @@ struct QaImpactPar {
5454 // / Input parameters
5555 Configurable<bool > fDebug {" fDebug" , false , " Debug flag enabling outputs" };
5656 Configurable<bool > fEnablePulls {" fEnablePulls" , false , " Enable storage of pulls" };
57+ Configurable<bool > fEnableNuclei {" fEnableNuclei" , false , " Enable storage of nuclei" };
5758 ConfigurableAxis binningImpPar{" binningImpPar" , {200 , -500 .f , 500 .f }, " Impact parameter binning" };
5859 ConfigurableAxis binningPulls{" binningPulls" , {200 , -10 .f , 10 .f }, " Pulls binning" };
5960 ConfigurableAxis binningPt{" binningPt" , {100 , 0 .f , 10 .f }, " Pt binning" };
6061 ConfigurableAxis binningEta{" binningEta" , {40 , -2 .f , 2 .f }, " Eta binning" };
6162 ConfigurableAxis binningPhi{" binningPhi" , {24 , 0 .f , o2::constants::math::TwoPI}, " Phi binning" };
62- ConfigurableAxis binningPDG{" binningPDG" , {5 , -1 .5f , 3 .5f }, " PDG species binning (-1: not matched, 0: unknown, 1: pi, 2: K, 3: p)" };
6363 ConfigurableAxis binningCharge{" binningCharge" , {2 , -2 .f , 2 .f }, " charge binning (-1: negative; +1: positive)" };
6464 ConfigurableAxis binningIuPosX{" binningIuPosX" , {100 , -10 .f , 10 .f }, " Track IU x position" };
6565 ConfigurableAxis binningIuPosY{" binningIuPosY" , {100 , -10 .f , 10 .f }, " Track IU y position" };
@@ -336,7 +336,13 @@ struct QaImpactPar {
336336 const AxisSpec trackNSigmaTOFPionAxis{20 , -10 .f , 10 .f , " Number of #sigma TOF #pi^{#pm}" };
337337 const AxisSpec trackNSigmaTOFKaonAxis{20 , -10 .f , 10 .f , " Number of #sigma TOF K^{#pm}" };
338338 const AxisSpec trackNSigmaTOFProtonAxis{20 , -10 .f , 10 .f , " Number of #sigma TOF proton" };
339- const AxisSpec trackPDGAxis{binningPDG, " species (-1: not matched, 0: unknown, 1: pi, 2: K, 3: p)" };
339+ AxisSpec trackPDGAxis{5 , -1 .5f , 3 .5f , " species (-1: not matched, 0: unknown, 1: pi, 2: K, 3: p)" };
340+ if (fEnableNuclei ) {
341+ trackPDGAxis.nBins = 9 ;
342+ trackPDGAxis.binEdges [1 ] = 7.5 ;
343+ trackPDGAxis.title = " species (-1: not matched, 0: unknown, 1: pi, 2: K, 3: p, 4: d, 5: t, 6: he3, 7: alpha)" ;
344+ }
345+
340346 const AxisSpec trackChargeAxis{binningCharge, " charge binning (-1: negative; +1: positive)" };
341347 const AxisSpec axisVertexNumContrib{binsNumPvContrib, " Number of original PV contributors" };
342348 const AxisSpec trackIsPvContrib{2 , -0 .5f , 1 .5f , " is PV contributor: 1=yes, 0=no" };
@@ -420,6 +426,14 @@ struct QaImpactPar {
420426 return 2 ;
421427 case 2212 : // proton
422428 return 3 ;
429+ case o2::constants::physics::Pdg::kDeuteron : // deuteron
430+ return 4 ;
431+ case o2::constants::physics::Pdg::kTriton : // triton
432+ return 5 ;
433+ case o2::constants::physics::Pdg::kHelium3 : // helium-3
434+ return 6 ;
435+ case o2::constants::physics::Pdg::kAlpha : // alpha
436+ return 7 ;
423437 default : // not identified
424438 return 0 ;
425439 }
0 commit comments