|
35 | 35 | #include "Common/DataModel/Centrality.h" |
36 | 36 | #include "Common/DataModel/EventSelection.h" |
37 | 37 | #include "Common/DataModel/Multiplicity.h" |
38 | | -#include "Common/DataModel/PIDResponseTOF.h" |
39 | | -#include "Common/DataModel/PIDResponseTPC.h" |
| 38 | +#include "Common/DataModel/PIDResponse.h" |
40 | 39 | #include "Common/DataModel/TrackSelectionTables.h" |
41 | 40 |
|
42 | 41 | #include "CCDB/BasicCCDBManager.h" |
@@ -195,7 +194,7 @@ struct Chk892pp { |
195 | 194 | Configurable<float> cfgMaxTPCnSigmaPion{"cfgMaxTPCnSigmaPion", 3.0, "TPC nSigma cut for Pion"}; // TPC |
196 | 195 | Configurable<float> cfgMaxTOFnSigmaPion{"cfgMaxTOFnSigmaPion", 3.0, "TOF nSigma cut for Pion"}; // TOF |
197 | 196 | 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 |
199 | 198 | Configurable<float> cfgTOFMinPt{"cfgTOFMinPt", 0.6, "Minimum TOF pT cut for Pion"}; // TOF pT cut |
200 | 199 | } PIDCuts; |
201 | 200 |
|
@@ -463,6 +462,9 @@ struct Chk892pp { |
463 | 462 | hstep->GetXaxis()->SetBinLabel(2, "zvtx"); |
464 | 463 | hstep->GetXaxis()->SetBinLabel(3, "INEL>0"); |
465 | 464 | 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}); |
466 | 468 | } |
467 | 469 |
|
468 | 470 | ccdb->setURL(CCDBConfig.cfgURL); |
@@ -967,16 +969,23 @@ struct Chk892pp { |
967 | 969 | lDecayDaughter_bach = LorentzVectorSetXYZM(bTrack.px(), bTrack.py(), bTrack.pz(), MassPionCharged); |
968 | 970 | lResoKstar = lResoSecondary + lDecayDaughter_bach; |
969 | 971 |
|
970 | | - double ptgen = 0, ygen = 0; |
971 | | - if (!matchRecoToTruthKstar(v0, bTrack, ptgen, ygen)) |
972 | | - continue; |
973 | | - |
974 | 972 | const double ptreco = lResoKstar.Pt(); |
975 | 973 | const double yreco = lResoKstar.Rapidity(); |
976 | 974 |
|
977 | 975 | if (std::abs(yreco) > KstarCuts.cfgKstarMaxRap) |
978 | 976 | 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 | + } |
980 | 989 | } |
981 | 990 | } |
982 | 991 | } // effKstarProcessReco |
|
0 commit comments