Skip to content

Commit 525f9a2

Browse files
SuJeong-Jialibuild
andauthored
[PWGLF] Add histogram for truth-tagged reco invariant mass distribution (#13746)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 8d0c8bc commit 525f9a2

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

PWGLF/Tasks/Resonances/chk892pp.cxx

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
#include "Common/DataModel/Centrality.h"
3636
#include "Common/DataModel/EventSelection.h"
3737
#include "Common/DataModel/Multiplicity.h"
38-
#include "Common/DataModel/PIDResponseTOF.h"
39-
#include "Common/DataModel/PIDResponseTPC.h"
38+
#include "Common/DataModel/PIDResponse.h"
4039
#include "Common/DataModel/TrackSelectionTables.h"
4140

4241
#include "CCDB/BasicCCDBManager.h"
@@ -195,7 +194,7 @@ struct Chk892pp {
195194
Configurable<float> cfgMaxTPCnSigmaPion{"cfgMaxTPCnSigmaPion", 3.0, "TPC nSigma cut for Pion"}; // TPC
196195
Configurable<float> cfgMaxTOFnSigmaPion{"cfgMaxTOFnSigmaPion", 3.0, "TOF nSigma cut for Pion"}; // TOF
197196
Configurable<float> cfgNsigmaCutCombinedPion{"cfgNsigmaCutCombinedPion", -999, "Combined nSigma cut for Pion"}; // Combined
198-
Configurable<bool> cfgTOFVeto{"cfgTOFVeto", true, "TOF Veto, if false, TOF is nessessary for PID selection"}; // TOF Veto
197+
Configurable<bool> cfgTOFVeto{"cfgTOFVeto", false, "TOF Veto, if false, TOF is nessessary for PID selection"}; // TOF Veto
199198
Configurable<float> cfgTOFMinPt{"cfgTOFMinPt", 0.6, "Minimum TOF pT cut for Pion"}; // TOF pT cut
200199
} PIDCuts;
201200

@@ -463,6 +462,9 @@ struct Chk892pp {
463462
hstep->GetXaxis()->SetBinLabel(2, "zvtx");
464463
hstep->GetXaxis()->SetBinLabel(3, "INEL>0");
465464
hstep->GetXaxis()->SetBinLabel(4, "Assoc with reco coll");
465+
466+
histos.add("MCReco/hInvmass_Kstar_true", "MC-reco truth-tagged chK(892)", HistType::kTHnSparseD, {centAxis, ptAxis, invMassAxisReso});
467+
histos.add("MCReco/hInvmass_Kstar_bkg", "MC-reco residual background chK(892)", HistType::kTHnSparseD, {centAxis, ptAxis, invMassAxisReso});
466468
}
467469

468470
ccdb->setURL(CCDBConfig.cfgURL);
@@ -967,16 +969,23 @@ struct Chk892pp {
967969
lDecayDaughter_bach = LorentzVectorSetXYZM(bTrack.px(), bTrack.py(), bTrack.pz(), MassPionCharged);
968970
lResoKstar = lResoSecondary + lDecayDaughter_bach;
969971

970-
double ptgen = 0, ygen = 0;
971-
if (!matchRecoToTruthKstar(v0, bTrack, ptgen, ygen))
972-
continue;
973-
974972
const double ptreco = lResoKstar.Pt();
975973
const double yreco = lResoKstar.Rapidity();
976974

977975
if (std::abs(yreco) > KstarCuts.cfgKstarMaxRap)
978976
continue;
979-
histos.fill(HIST("EffKstar/recoKstar"), ptreco, lCentrality);
977+
978+
double ptgen = 0, ygen = 0;
979+
const bool isTrue = matchRecoToTruthKstar(v0, bTrack, ptgen, ygen);
980+
981+
if (isTrue) {
982+
983+
histos.fill(HIST("EffKstar/recoKstar"), ptreco, lCentrality);
984+
histos.fill(HIST("MCReco/hInvmass_Kstar_true"), lCentrality, ptreco, lResoKstar.M());
985+
986+
} else {
987+
histos.fill(HIST("MCReco/hInvmass_Kstar_bkg"), lCentrality, ptreco, lResoKstar.M());
988+
}
980989
}
981990
}
982991
} // effKstarProcessReco

0 commit comments

Comments
 (0)