Skip to content

Commit 5024759

Browse files
authored
Update electronSelectionWithTpcEmcal.cxx
1 parent b513806 commit 5024759

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

PWGHF/HFL/TableProducer/electronSelectionWithTpcEmcal.cxx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +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"};
121125

122126
using TableCollisions = o2::soa::Filtered<o2::soa::Join<aod::Collisions, aod::Mults, aod::EvSels>>;
123127
using TableCollision = TableCollisions::iterator;
@@ -576,8 +580,8 @@ struct HfElectronSelectionWithTpcEmcal {
576580
//================= eta->e ======================================
577581
if (std::abs(mother.pdgCode()) == kEta) {
578582
if (mother.isPhysicalPrimary()) {
579-
if ((std::abs(gmother.pdgCode()) >= 400 && std::abs(gmother.pdgCode()) < 600) ||
580-
(std::abs(gmother.pdgCode()) >= 4000 && std::abs(gmother.pdgCode()) < 6000)) {
583+
if ((std::abs(gmother.pdgCode()) >= charmMinID && std::abs(gmother.pdgCode()) < charmMaxID) ||
584+
(std::abs(gmother.pdgCode()) >= beautyMinID && std::abs(gmother.pdgCode()) < beautyMaxID)) {
581585
continue;
582586
}
583587
isEmbEta = true;
@@ -587,17 +591,17 @@ struct HfElectronSelectionWithTpcEmcal {
587591

588592
if (std::abs(mother.pdgCode()) == kPi0) {
589593
if (mother.isPhysicalPrimary()) {
590-
if ((std::abs(gmother.pdgCode()) >= 400 && std::abs(gmother.pdgCode()) < 600) ||
591-
(std::abs(gmother.pdgCode()) >= 4000 && std::abs(gmother.pdgCode()) < 6000)) {
594+
if ((std::abs(gmother.pdgCode()) >= charmMinID && std::abs(gmother.pdgCode()) < charmMaxID) ||
595+
(std::abs(gmother.pdgCode()) >= beautyMinID && std::abs(gmother.pdgCode()) < beautyMaxID)) {
592596
continue;
593597
}
594598
isEmbPi0 = true; // pi0 -> e
595599
}
596600

597601
if (std::abs(gmother.pdgCode()) == kEta) {
598602
if (gmother.isPhysicalPrimary()) {
599-
if ((std::abs(ggmother.pdgCode()) >= 400 && std::abs(ggmother.pdgCode()) < 600) ||
600-
(std::abs(ggmother.pdgCode()) >= 4000 && std::abs(ggmother.pdgCode()) < 6000)) {
603+
if ((std::abs(ggmother.pdgCode()) >= charmMinID && std::abs(ggmother.pdgCode()) < charmMaxID) ||
604+
(std::abs(ggmother.pdgCode()) >= beautyMinID && std::abs(ggmother.pdgCode()) < beautyMaxID)) {
601605
continue;
602606
}
603607
isEmbEta = true; // eta->pi0-> e
@@ -609,8 +613,8 @@ struct HfElectronSelectionWithTpcEmcal {
609613
if (std::abs(mother.pdgCode()) == kGamma) {
610614
if (std::abs(gmother.pdgCode()) == kEta) {
611615
if (gmother.isPhysicalPrimary()) {
612-
if ((std::abs(ggmother.pdgCode()) >= 400 && std::abs(ggmother.pdgCode()) < 600) ||
613-
(std::abs(ggmother.pdgCode()) >= 4000 && std::abs(ggmother.pdgCode()) < 6000)) {
616+
if ((std::abs(ggmother.pdgCode()) >= charmMinID && std::abs(ggmother.pdgCode()) < charmMaxID) ||
617+
(std::abs(ggmother.pdgCode()) >= beautyMinID && std::abs(ggmother.pdgCode()) < beautyMaxID)) {
614618
continue;
615619
}
616620
isEmbEta = true; // eta->gamma-> e
@@ -619,17 +623,17 @@ struct HfElectronSelectionWithTpcEmcal {
619623

620624
if (std::abs(gmother.pdgCode()) == kPi0) {
621625
if (gmother.isPhysicalPrimary()) {
622-
if ((std::abs(ggmother.pdgCode()) >= 400 && std::abs(ggmother.pdgCode()) < 600) ||
623-
(std::abs(ggmother.pdgCode()) >= 4000 && std::abs(ggmother.pdgCode()) < 6000)) {
626+
if ((std::abs(ggmother.pdgCode()) >= charmMinID && std::abs(ggmother.pdgCode()) < charmMaxID) ||
627+
(std::abs(ggmother.pdgCode()) >= beautyMinID && std::abs(ggmother.pdgCode()) < beautyMaxID)) {
624628
continue;
625629
}
626630
isEmbPi0 = true; // pi0-> gamma-> e
627631
}
628632

629633
if (std::abs(ggmother.pdgCode()) == kEta) {
630634
if (ggmother.isPhysicalPrimary()) {
631-
if ((std::abs(gggmother.pdgCode()) >= 400 && std::abs(gggmother.pdgCode()) < 600) ||
632-
(std::abs(gggmother.pdgCode()) >= 4000 && std::abs(gggmother.pdgCode()) < 6000)) {
635+
if ((std::abs(gggmother.pdgCode()) >= charmMinID && std::abs(gggmother.pdgCode()) < charmMaxID) ||
636+
(std::abs(gggmother.pdgCode()) >= beautyMinID && std::abs(gggmother.pdgCode()) < beautyMaxID)) {
633637
continue;
634638
}
635639
isEmbEta = true; // eta->pi0->gamma-> e

0 commit comments

Comments
 (0)