Skip to content

Commit e1204d1

Browse files
authored
add cfg for enabling/disabling tof mass cut
1 parent 785163b commit e1204d1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

PWGLF/TableProducer/Nuspex/trHeAnalysis.cxx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ struct TrHeAnalysis {
194194
Configurable<bool> cfgTPCPidMethod{"cfgTPCPidMethod", false, "Using own or built in bethe parametrization"}; // false for built in
195195
Configurable<int> cfgMassMethod{"cfgMassMethod", 0, "0: Using built in 1: mass calculated with beta 2: mass calculated with the event time"};
196196
Configurable<bool> cfgEnableItsClusterSizeCut{"cfgEnableItsClusterSizeCut", false, "Enable ITS cluster size cut"};
197+
Configurable<bool> cfgEnableTofMassCut{"cfgEnableTofMassCut", false, "Enable TOF mass cut"};
197198
// Set the multiplity event limits
198199
Configurable<float> cfgLowMultCut{"cfgLowMultCut", 0.0f, "Accepted multiplicity percentage lower limit"};
199200
Configurable<float> cfgHighMultCut{"cfgHighMultCut", 100.0f, "Accepted multiplicity percentage higher limit"};
@@ -399,9 +400,11 @@ struct TrHeAnalysis {
399400
continue;
400401
}
401402
}
402-
if (getMass(track) < cfgCutMinTofMassH3 || getMass(track) > cfgCutMaxTofMassH3) {
403-
histos.fill(HIST("histogram/cuts"), 13);
404-
continue;
403+
if (cfgEnableTofMassCut) {
404+
if (getMass(track) < cfgCutMinTofMassH3 || getMass(track) > cfgCutMaxTofMassH3) {
405+
histos.fill(HIST("histogram/cuts"), 13);
406+
continue;
407+
}
405408
}
406409
histos.fill(HIST("histogram/H3/H3-TPCsignVsTPCmomentum"),
407410
getRigidity(track) * track.sign(),
@@ -562,9 +565,11 @@ struct TrHeAnalysis {
562565
continue;
563566
}
564567
}
565-
if (getMass(track) < cfgCutMinTofMassH3 || getMass(track) > cfgCutMaxTofMassH3) {
566-
histos.fill(HIST("histogram/cuts"), 13);
567-
continue;
568+
if (cfgEnableTofMassCut) {
569+
if (getMass(track) < cfgCutMinTofMassH3 || getMass(track) > cfgCutMaxTofMassH3) {
570+
histos.fill(HIST("histogram/cuts"), 13);
571+
continue;
572+
}
568573
}
569574
histos.fill(HIST("histogram/H3/H3-TPCsignVsTPCmomentum"),
570575
getRigidity(track) * (1.f * track.sign()),

0 commit comments

Comments
 (0)