Skip to content

Commit dbdb07a

Browse files
authored
Update electronSelectionWithTpcEmcal.cxx
1 parent b9593e9 commit dbdb07a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

PWGHF/HFL/TableProducer/electronSelectionWithTpcEmcal.cxx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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> charmMinID{"charmMinID", 400.0, "Min Charm Hadron ID"};
122-
Configurable<float> charmMaxID{"charmMaxID", 600.0, "Max Charm Hadron ID"};
123-
Configurable<float> beautyMinID{"beautyMinID", 4000.0, "Min beauty Hadron ID"};
124-
Configurable<float> beautyMaxID{"beautyMaxID", 6000.0, "Max beauty Hadron ID"};
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"};
125125

126126
using TableCollisions = o2::soa::Filtered<o2::soa::Join<aod::Collisions, aod::Mults, aod::EvSels>>;
127127
using TableCollision = TableCollisions::iterator;
@@ -539,7 +539,7 @@ struct HfElectronSelectionWithTpcEmcal {
539539
{
540540
fillElectronTrack<false>(collision, tracks, emcClusters, matchedTracks, 0);
541541
}
542-
PROCESS_SWITCH(HfElectronSelectionWithTpcEmcal, processData, "process Data info only", false);
542+
PROCESS_SWITCH(HfElectronSelectionWithTpcEmcal, processData, "process Data info only", true);
543543
/// Electron selection - for MC reco-level analysis
544544
void processMcRec(McTableCollision const& mcCollision,
545545
McTableTracks const& mcTracks,
@@ -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()) >= charmMinID && std::abs(gmother.pdgCode()) < charmMaxID) ||
584-
(std::abs(gmother.pdgCode()) >= beautyMinID && std::abs(gmother.pdgCode()) < beautyMaxID)) {
583+
if ((std::abs(gmother.pdgCode()) >= charmMinPdgCode && std::abs(gmother.pdgCode()) < charmMaxPdgCode) ||
584+
(std::abs(gmother.pdgCode()) >= beautyMinPdgCode && std::abs(gmother.pdgCode()) < beautyMaxPdgCode)) {
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()) >= charmMinID && std::abs(gmother.pdgCode()) < charmMaxID) ||
595-
(std::abs(gmother.pdgCode()) >= beautyMinID && std::abs(gmother.pdgCode()) < beautyMaxID)) {
594+
if ((std::abs(gmother.pdgCode()) >= charmMinPdgCode && std::abs(gmother.pdgCode()) < charmMaxPdgCode) ||
595+
(std::abs(gmother.pdgCode()) >= beautyMinPdgCode && std::abs(gmother.pdgCode()) < beautyMaxPdgCode)) {
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()) >= charmMinID && std::abs(ggmother.pdgCode()) < charmMaxID) ||
604-
(std::abs(ggmother.pdgCode()) >= beautyMinID && std::abs(ggmother.pdgCode()) < beautyMaxID)) {
603+
if ((std::abs(ggmother.pdgCode()) >= charmMinPdgCode && std::abs(ggmother.pdgCode()) < charmMaxPdgCode) ||
604+
(std::abs(ggmother.pdgCode()) >= beautyMinPdgCode && std::abs(ggmother.pdgCode()) < beautyMaxPdgCode)) {
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()) >= charmMinID && std::abs(ggmother.pdgCode()) < charmMaxID) ||
617-
(std::abs(ggmother.pdgCode()) >= beautyMinID && std::abs(ggmother.pdgCode()) < beautyMaxID)) {
616+
if ((std::abs(ggmother.pdgCode()) >= charmMinPdgCode && std::abs(ggmother.pdgCode()) < charmMaxPdgCode) ||
617+
(std::abs(ggmother.pdgCode()) >= beautyMinPdgCode && std::abs(ggmother.pdgCode()) < beautyMaxPdgCode)) {
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()) >= charmMinID && std::abs(ggmother.pdgCode()) < charmMaxID) ||
627-
(std::abs(ggmother.pdgCode()) >= beautyMinID && std::abs(ggmother.pdgCode()) < beautyMaxID)) {
626+
if ((std::abs(ggmother.pdgCode()) >= charmMinPdgCode && std::abs(ggmother.pdgCode()) < charmMaxPdgCode) ||
627+
(std::abs(ggmother.pdgCode()) >= beautyMinPdgCode && std::abs(ggmother.pdgCode()) < beautyMaxPdgCode)) {
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()) >= charmMinID && std::abs(gggmother.pdgCode()) < charmMaxID) ||
636-
(std::abs(gggmother.pdgCode()) >= beautyMinID && std::abs(gggmother.pdgCode()) < beautyMaxID)) {
635+
if ((std::abs(gggmother.pdgCode()) >= charmMinPdgCode && std::abs(gggmother.pdgCode()) < charmMaxPdgCode) ||
636+
(std::abs(gggmother.pdgCode()) >= beautyMinPdgCode && std::abs(gggmother.pdgCode()) < beautyMaxPdgCode)) {
637637
continue;
638638
}
639639
isEmbEta = true; // eta->pi0->gamma-> e
@@ -659,7 +659,7 @@ struct HfElectronSelectionWithTpcEmcal {
659659
}
660660
}
661661

662-
PROCESS_SWITCH(HfElectronSelectionWithTpcEmcal, processMcGen, "Process MC Gen mode", true);
662+
PROCESS_SWITCH(HfElectronSelectionWithTpcEmcal, processMcGen, "Process MC Gen mode", false);
663663
};
664664
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
665665
{

0 commit comments

Comments
 (0)