Skip to content

Commit 2788efd

Browse files
authored
Add Cent and preselection
1 parent ac5517a commit 2788efd

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

PWGHF/TableProducer/treeCreatorOmegacSt.cxx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ struct HfTreeCreatorOmegacSt {
311311
static constexpr float TpcNclsFindableFraction{0.8f};
312312
static constexpr float TpcChi2NclMax{4.f};
313313
static constexpr float ItsChi2NclMax{36.f};
314+
static constexpr std::array<float, 2> TofWoSignalRange{998.f, 1000.f};
314315

315316
float bz{0.f};
316317
int runNumber{0};
@@ -388,7 +389,7 @@ struct HfTreeCreatorOmegacSt {
388389
setLabelHistoCands(hCandidatesCascPiOrK);
389390

390391
// init HF event selection helper (centrality, event cuts, monitoring)
391-
hfEvSel.init(registry, zorroSummary);
392+
hfEvSel.init(registry, &zorroSummary);
392393
}
393394

394395
// processMC: loop over MC objects
@@ -643,24 +644,24 @@ struct HfTreeCreatorOmegacSt {
643644
const bool tpcBachelor = (std::abs(bachelor.tpcNSigmaKa()) < maxNSigmaBachelor) || (std::abs(bachelor.tpcNSigmaPi()) < maxNSigmaBachelor);
644645
const float tofBachelorPiAbs = std::abs(bachelor.tofNSigmaPi());
645646
const float tofBachelorKaAbs = std::abs(bachelor.tofNSigmaKa());
646-
const bool tofBachelorPiPass = (tofBachelorPiAbs > 998.f && tofBachelorPiAbs < 1000.f) || (tofBachelorPiAbs < maxAbsTofNsigmaBachelorPi);
647-
const bool tofBachelorKaPass = (tofBachelorKaAbs > 998.f && tofBachelorKaAbs < 1000.f) || (tofBachelorKaAbs < maxAbsTofNsigmaBachelorKa);
647+
const bool tofBachelorPiPass = (tofBachelorPiAbs > TofWoSignalRange[0] && tofBachelorPiAbs < TofWoSignalRange[1]) || (tofBachelorPiAbs < maxAbsTofNsigmaBachelorPi);
648+
const bool tofBachelorKaPass = (tofBachelorKaAbs > TofWoSignalRange[0] && tofBachelorKaAbs < TofWoSignalRange[1]) || (tofBachelorKaAbs < maxAbsTofNsigmaBachelorKa);
648649
const bool tofBachelorPass = tofBachelorPiPass || tofBachelorKaPass;
649650
const bool bachelorPass = useTofPid.value ? (tpcBachelor && tofBachelorPass) : tpcBachelor;
650651

651652
const bool tpcV0Pr = (std::abs(v0TrackPr.tpcNSigmaPr()) < maxNSigmaV0Pr);
652653
const bool tpcV0Pi = (std::abs(v0TrackPi.tpcNSigmaPi()) < maxNSigmaV0Pi);
653654
const float tofV0PrAbs = std::abs(v0TrackPr.tofNSigmaPr());
654655
const float tofV0PiAbs = std::abs(v0TrackPi.tofNSigmaPi());
655-
const bool tofV0PrPass = (tofV0PrAbs > 998.f && tofV0PrAbs < 1000.f) || (tofV0PrAbs < maxAbsTofNsigmaV0Pr);
656-
const bool tofV0PiPass = (tofV0PiAbs > 998.f && tofV0PiAbs < 1000.f) || (tofV0PiAbs < maxAbsTofNsigmaV0Pi);
656+
const bool tofV0PrPass = (tofV0PrAbs > TofWoSignalRange[0] && tofV0PrAbs < TofWoSignalRange[1]) || (tofV0PrAbs < maxAbsTofNsigmaV0Pr);
657+
const bool tofV0PiPass = (tofV0PiAbs > TofWoSignalRange[0] && tofV0PiAbs < TofWoSignalRange[1]) || (tofV0PiAbs < maxAbsTofNsigmaV0Pi);
657658
const bool v0PrPass = useTofPid.value ? (tpcV0Pr && tofV0PrPass) : tpcV0Pr;
658659
const bool v0PiPass = useTofPid.value ? (tpcV0Pi && tofV0PiPass) : tpcV0Pi;
659660

660661
if (bachelorPass && v0PrPass && v0PiPass) {
661662

662663
std::array<double, NDaughters> const massesOmegacToOmegaPi{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
663-
std::array<double, NDaughters> const OmegaK{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus};
664+
std::array<double, NDaughters> const massOmegaK{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus};
664665
std::array<double, NDaughters> const massesXicToXiPi{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus};
665666

666667
std::array<std::array<float, 3>, NDaughters> momenta{};
@@ -697,8 +698,8 @@ struct HfTreeCreatorOmegacSt {
697698
const bool passTPCpid = (std::abs(track.tpcNSigmaPi()) < maxNSigmaPion) || (std::abs(track.tpcNSigmaKa()) < maxNSigmaKaon);
698699
const float tofPiAbs = std::abs(track.tofNSigmaPi());
699700
const float tofKaAbs = std::abs(track.tofNSigmaKa());
700-
const bool tofPiPass = (tofPiAbs > 998.f && tofPiAbs < 1000.f) || (tofPiAbs < maxAbsTofNsigmaTrackPi);
701-
const bool tofKaPass = (tofKaAbs > 998.f && tofKaAbs < 1000.f) || (tofKaAbs < maxAbsTofNsigmaTrackKa);
701+
const bool tofPiPass = (tofPiAbs > TofWoSignalRange[0] && tofPiAbs < TofWoSignalRange[1]) || (tofPiAbs < maxAbsTofNsigmaTrackPi);
702+
const bool tofKaPass = (tofKaAbs > TofWoSignalRange[0] && tofKaAbs < TofWoSignalRange[1]) || (tofKaAbs < maxAbsTofNsigmaTrackKa);
702703
const bool passTOFpid = tofPiPass || tofKaPass;
703704
if (useTofPid.value) {
704705
if (!(passTPCpid && passTOFpid)) {
@@ -752,7 +753,7 @@ struct HfTreeCreatorOmegacSt {
752753
const auto ptPionOrKaon = std::hypot(momenta[1][0], momenta[1][1]);
753754
const auto ptCharmedBaryon = RecoDecay::pt(momenta[0], momenta[1]);
754755
const auto massOmegaPion = RecoDecay::m(momenta, massesOmegacToOmegaPi);
755-
const auto massOmegaKaon = RecoDecay::m(momenta, OmegaK);
756+
const auto massOmegaKaon = RecoDecay::m(momenta, massOmegaK);
756757
const auto massXiPion = RecoDecay::m(momenta, massesXicToXiPi);
757758
registry.fill(HIST("hMassOmegaPi"), massOmegaPion);
758759
registry.fill(HIST("hMassOmegaPiVsPt"), massOmegaPion, ptCharmedBaryon);

0 commit comments

Comments
 (0)