Skip to content

Commit 34ffd77

Browse files
committed
fixing cut on tof beta and adding a QA histo
1 parent 4cabf2e commit 34ffd77

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

PWGLF/Tasks/Resonances/k892analysispbpb.cxx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ struct K892analysispbpb {
108108
Configurable<float> cMaxTOFnSigmaPion{"cMaxTOFnSigmaPion", 3.0, "TOF nSigma cut for Pion"}; // TOF
109109
Configurable<bool> cByPassTOF{"cByPassTOF", false, "By pass TOF PID selection"}; // By pass TOF PID selection
110110
Configurable<bool> cTofBetaCut{"cTofBetaCut", false, "selection on TOF beta"};
111+
Configurable<int> cTofBetaCutNsigma{"cTofBetaCutNsigma", 3, "Nsigma selection on TOF beta ~ 1"};
111112

112113
Configurable<bool> cTPClowpt{"cTPClowpt", true, "apply TPC at low pt"};
113114
Configurable<bool> cTOFonlyHighpt{"cTOFonlyHighpt", false, "apply TOF only at high pt"};
@@ -159,7 +160,7 @@ struct K892analysispbpb {
159160
AxisSpec pdgCodeAxis = {cPDGbins, 0, cPDGMax};
160161
AxisSpec impactParAxis = {binsImpactPar, "Impact Parameter"};
161162

162-
if ((!doprocessMC && !doprocessMCRun2) || doprocessMixedEventMC || doprocessMixedEventMCRun2) {
163+
if ((!doprocessMC && !doprocessMCRun2) || doprocessMixedEventMC || doprocessMixedEventMCpp || doprocessMixedEventMCRun2) {
163164
// event histograms
164165
histos.add("QAevent/hEvtCounterSameE", "Number of analyzed Same Events", HistType::kTH1F, {{1, 0.5, 1.5}});
165166
histos.add("QAevent/hMultiplicityPercentSameE", "Multiplicity percentile of collision", HistType::kTH1F, {{120, 0.0f, 120.0f}});
@@ -186,7 +187,7 @@ struct K892analysispbpb {
186187
histos.add("k892invmassDSAnti", "Invariant mass of Anti-K(892)0 different sign", kTH1F, {invMassAxis});
187188
histos.add("k892invmassLS", "Invariant mass of K(892)0 like sign", kTH1F, {invMassAxis});
188189
histos.add("k892invmassLSAnti", "Invariant mass of Anti-K(892)0 like sign", kTH1F, {invMassAxis});
189-
if (doprocessMixedEvent || doprocessMixedEventRun2 || doprocessMixedEventMC || doprocessMixedEventMCRun2) {
190+
if (doprocessMixedEvent || doprocessMixedEventpp || doprocessMixedEventRun2 || doprocessMixedEventMC || doprocessMixedEventMCpp || doprocessMixedEventMCRun2) {
190191
histos.add("k892invmassME", "Invariant mass of K(892)0 mixed event", kTH1F, {invMassAxis});
191192
if (additionalMEPlots) {
192193
histos.add("k892invmassME_DS", "Invariant mass of K(892)0 mixed event DS", kTH1F, {invMassAxis});
@@ -209,6 +210,9 @@ struct K892analysispbpb {
209210
histos.add("QA/h2k892ptMothervsptPiDSAnti", "Pt of Anti-K(892)0 differnt sign vs pt pion daughter", kTH2F, {ptAxisMom, ptAxisDau});
210211
histos.add("QA/h2k892ptMothervsptKaDS", "Pt of K(892)0 differnt sign vs pt kaon daughter", kTH2F, {ptAxisMom, ptAxisDau});
211212
histos.add("QA/h2k892ptMothervsptKaDSAnti", "Pt of Anti-K(892)0 differnt sign vs pt kaon daughter", kTH2F, {ptAxisMom, ptAxisDau});
213+
214+
histos.add("QA/hKaTOFbeta", "Beta of kaon daughter", kTH1F, {{500,0,1.2,"TOF #Beta"}});
215+
histos.add("QA/hPiTOFbeta", "Beta of pion daughter", kTH1F, {{500,0,1.2,"TOF #Beta"}});
212216

213217
histos.add("QAME/h2k892ptMothervsptPiDS", "Pt of Mother vs pt pion daughter, Mixed Event", kTH2F, {ptAxisMom, ptAxisDau});
214218
histos.add("QAME/h2k892ptMothervsptPiDSAnti", "Pt of Anti-Mother vs pt pion daughter, Mixed Event", kTH2F, {ptAxisMom, ptAxisDau});
@@ -246,7 +250,7 @@ struct K892analysispbpb {
246250
histos.add("h3k892invmassRotDSAnti", "Invariant mass of Anti-K(892)0 Rotational Bkg", kTH3F, {centAxis, ptAxis, invMassAxis});
247251
}
248252

249-
if (doprocessMixedEvent || doprocessMixedEventRun2 || doprocessMixedEventMC || doprocessMixedEventMCRun2) {
253+
if (doprocessMixedEvent || doprocessMixedEventpp || doprocessMixedEventRun2 || doprocessMixedEventMC || doprocessMixedEventMCpp || doprocessMixedEventMCRun2) {
250254
histos.add("h3k892invmassME", "Invariant mass of K(892)0 mixed event", kTH3F, {centAxis, ptAxis, invMassAxis});
251255

252256
if (additionalMEPlots) {
@@ -262,7 +266,7 @@ struct K892analysispbpb {
262266
}
263267
}
264268

265-
if (doprocessMixedEventMC || doprocessMixedEventMCRun2) {
269+
if (doprocessMixedEventMC || doprocessMixedEventMCpp || doprocessMixedEventMCRun2) {
266270
histos.add("h3k892invmassWrongDaughtersME_DS", "Invariant mass ME with wrong daughters DS", kTH3F, {centAxis, ptAxis, invMassAxis});
267271
histos.add("h3k892invmassWrongDaughtersME_DSAnti", "Invariant mass ME with wrong daughters DS anti", kTH3F, {centAxis, ptAxis, invMassAxis});
268272
histos.add("h3k892invmassRightDaughtersME_DS", "Invariant mass ME with right daughters DS", kTH3F, {centAxis, ptAxis, invMassAxis});
@@ -417,7 +421,7 @@ struct K892analysispbpb {
417421

418422
if (candidate.hasTPC() && std::abs(candidate.tpcNSigmaKa()) <= cMaxTPCnSigmaKaon) { // tpc cut, tof when available
419423

420-
if (cTofBetaCut && candidate.hasTOF() && (candidate.beta() + 3 * candidate.betaerror() > 1))
424+
if (cTofBetaCut && candidate.hasTOF() && (candidate.beta() + cTofBetaCutNsigma * candidate.betaerror() > 1))
421425
return false;
422426

423427
if (cByPassTOF) // skip tof selection
@@ -455,7 +459,7 @@ struct K892analysispbpb {
455459

456460
if (candidate.hasTPC() && std::abs(candidate.tpcNSigmaPi()) <= cMaxTPCnSigmaPion) { // tpc cut, tof when available
457461

458-
if (cTofBetaCut && candidate.hasTOF() && (candidate.beta() + 3 * candidate.betaerror() > 1))
462+
if (cTofBetaCut && candidate.hasTOF() && (candidate.beta() + cTofBetaCutNsigma * candidate.betaerror() > 1))
459463
return false;
460464

461465
if (cByPassTOF) // skip tof selection
@@ -634,6 +638,8 @@ struct K892analysispbpb {
634638
if (additionalQAplots) {
635639
histos.fill(HIST("QA/h2k892ptMothervsptPiDS"), lResonance.Pt(), lDecayDaughter1.Pt());
636640
histos.fill(HIST("QA/h2k892ptMothervsptKaDS"), lResonance.Pt(), lDecayDaughter2.Pt());
641+
histos.fill(HIST("QA/hPiTOFbeta"), trk1.beta());
642+
histos.fill(HIST("QA/hKaTOFbeta"), trk2.beta());
637643
}
638644
} else if (track1Sign > 0) {
639645
histos.fill(HIST("k892invmassDSAnti"), lResonance.M());

0 commit comments

Comments
 (0)