@@ -118,10 +118,10 @@ struct HfElectronSelectionWithTpcEmcal {
118118 Configurable<float > m20EmcClusterElectronMin{" m20EmcClusterElectronMin" , 0 .0f , " min Electron EMCal Cluster M20" };
119119 Configurable<float > tpcNsigmaElectronMin{" tpcNsigmaElectronMin" , -0 .5f , " min Electron TPCnsigma" };
120120 Configurable<float > tpcNsigmaElectronMax{" tpcNsigmaElectronMax" , 3 .0f , " max Electron TPCnsigma" };
121- Configurable<float > charmMinPdgCode{ " charmMinPdgCode " , 400.0 , " Min Charm Hadron PdgCode" };
122- Configurable<float > charmMaxPdgCode{ " charmMaxPdgCode " , 600.0 , " Max Charm Hadron PdgCode" };
123- Configurable<float > beautyMinPdgCode{ " beautyMinPdgCode " , 4000.0 , " Min beauty Hadron PdgCode" };
124- Configurable<float > beautyMaxPdgCode{ " beautyMaxPdgCode " , 6000.0 , " Max beauty Hadron PdgCode" };
121+ Configurable<int > pdgCodeCharmMin{ " pdgCodeCharmMin " , 400 , " Min Charm Hadron PdgCode" };
122+ Configurable<int > pdgCodeCharmMax{ " pdgCodeCharmMax " , 600 , " Max Charm Hadron PdgCode" };
123+ Configurable<int > pdgCodeBeautyMin{ " pdgCodeBeautyMin " , 4000 , " Min beauty Hadron PdgCode" };
124+ Configurable<int > pdgCodeBeautyMax{ " pdgCodeBeautyMax " , 6000 , " Max beauty Hadron PdgCode" };
125125
126126 using TableCollisions = o2::soa::Filtered<o2::soa::Join<aod::Collisions, aod::Mults, aod::EvSels>>;
127127 using TableCollision = TableCollisions::iterator;
@@ -580,8 +580,8 @@ struct HfElectronSelectionWithTpcEmcal {
580580 // ================= eta->e ======================================
581581 if (std::abs (mother.pdgCode ()) == kEta ) {
582582 if (mother.isPhysicalPrimary ()) {
583- if ((std::abs (gmother.pdgCode ()) >= charmMinPdgCode && std::abs (gmother.pdgCode ()) < charmMaxPdgCode ) ||
584- (std::abs (gmother.pdgCode ()) >= beautyMinPdgCode && std::abs (gmother.pdgCode ()) < beautyMaxPdgCode )) {
583+ if ((std::abs (gmother.pdgCode ()) >= pdgCodeCharmMin && std::abs (gmother.pdgCode ()) < pdgCodeCharmMax ) ||
584+ (std::abs (gmother.pdgCode ()) >= pdgCodeBeautyMin && std::abs (gmother.pdgCode ()) < pdgCodeBeautyMax )) {
585585 continue ;
586586 }
587587 isEmbEta = true ;
@@ -591,17 +591,17 @@ struct HfElectronSelectionWithTpcEmcal {
591591
592592 if (std::abs (mother.pdgCode ()) == kPi0 ) {
593593 if (mother.isPhysicalPrimary ()) {
594- if ((std::abs (gmother.pdgCode ()) >= charmMinPdgCode && std::abs (gmother.pdgCode ()) < charmMaxPdgCode ) ||
595- (std::abs (gmother.pdgCode ()) >= beautyMinPdgCode && std::abs (gmother.pdgCode ()) < beautyMaxPdgCode )) {
594+ if ((std::abs (gmother.pdgCode ()) >= pdgCodeCharmMin && std::abs (gmother.pdgCode ()) < pdgCodeCharmMax ) ||
595+ (std::abs (gmother.pdgCode ()) >= pdgCodeBeautyMin && std::abs (gmother.pdgCode ()) < pdgCodeBeautyMax )) {
596596 continue ;
597597 }
598598 isEmbPi0 = true ; // pi0 -> e
599599 }
600600
601601 if (std::abs (gmother.pdgCode ()) == kEta ) {
602602 if (gmother.isPhysicalPrimary ()) {
603- if ((std::abs (ggmother.pdgCode ()) >= charmMinPdgCode && std::abs (ggmother.pdgCode ()) < charmMaxPdgCode ) ||
604- (std::abs (ggmother.pdgCode ()) >= beautyMinPdgCode && std::abs (ggmother.pdgCode ()) < beautyMaxPdgCode )) {
603+ if ((std::abs (ggmother.pdgCode ()) >= pdgCodeCharmMin && std::abs (ggmother.pdgCode ()) < pdgCodeCharmMax ) ||
604+ (std::abs (ggmother.pdgCode ()) >= pdgCodeBeautyMin && std::abs (ggmother.pdgCode ()) < pdgCodeBeautyMax )) {
605605 continue ;
606606 }
607607 isEmbEta = true ; // eta->pi0-> e
@@ -613,8 +613,8 @@ struct HfElectronSelectionWithTpcEmcal {
613613 if (std::abs (mother.pdgCode ()) == kGamma ) {
614614 if (std::abs (gmother.pdgCode ()) == kEta ) {
615615 if (gmother.isPhysicalPrimary ()) {
616- if ((std::abs (ggmother.pdgCode ()) >= charmMinPdgCode && std::abs (ggmother.pdgCode ()) < charmMaxPdgCode ) ||
617- (std::abs (ggmother.pdgCode ()) >= beautyMinPdgCode && std::abs (ggmother.pdgCode ()) < beautyMaxPdgCode )) {
616+ if ((std::abs (ggmother.pdgCode ()) >= pdgCodeCharmMin && std::abs (ggmother.pdgCode ()) < pdgCodeCharmMax ) ||
617+ (std::abs (ggmother.pdgCode ()) >= pdgCodeBeautyMin && std::abs (ggmother.pdgCode ()) < pdgCodeBeautyMax )) {
618618 continue ;
619619 }
620620 isEmbEta = true ; // eta->gamma-> e
@@ -623,17 +623,17 @@ struct HfElectronSelectionWithTpcEmcal {
623623
624624 if (std::abs (gmother.pdgCode ()) == kPi0 ) {
625625 if (gmother.isPhysicalPrimary ()) {
626- if ((std::abs (ggmother.pdgCode ()) >= charmMinPdgCode && std::abs (ggmother.pdgCode ()) < charmMaxPdgCode ) ||
627- (std::abs (ggmother.pdgCode ()) >= beautyMinPdgCode && std::abs (ggmother.pdgCode ()) < beautyMaxPdgCode )) {
626+ if ((std::abs (ggmother.pdgCode ()) >= pdgCodeCharmMin && std::abs (ggmother.pdgCode ()) < pdgCodeCharmMax ) ||
627+ (std::abs (ggmother.pdgCode ()) >= pdgCodeBeautyMin && std::abs (ggmother.pdgCode ()) < pdgCodeBeautyMax )) {
628628 continue ;
629629 }
630630 isEmbPi0 = true ; // pi0-> gamma-> e
631631 }
632632
633633 if (std::abs (ggmother.pdgCode ()) == kEta ) {
634634 if (ggmother.isPhysicalPrimary ()) {
635- if ((std::abs (gggmother.pdgCode ()) >= charmMinPdgCode && std::abs (gggmother.pdgCode ()) < charmMaxPdgCode ) ||
636- (std::abs (gggmother.pdgCode ()) >= beautyMinPdgCode && std::abs (gggmother.pdgCode ()) < beautyMaxPdgCode )) {
635+ if ((std::abs (gggmother.pdgCode ()) >= pdgCodeCharmMin && std::abs (gggmother.pdgCode ()) < pdgCodeCharmMax ) ||
636+ (std::abs (gggmother.pdgCode ()) >= pdgCodeBeautyMin && std::abs (gggmother.pdgCode ()) < pdgCodeBeautyMax )) {
637637 continue ;
638638 }
639639 isEmbEta = true ; // eta->pi0->gamma-> e
0 commit comments