Skip to content

Commit 019535f

Browse files
authored
fix2
1 parent 4fa92ca commit 019535f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

PWGLF/TableProducer/Nuspex/trHeAnalysis.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ struct TrHeAnalysis {
223223
Configurable<float> cfgCutMinItsClusterSizeH3{"cfgCutMinItsClusterSizeH3", 1.f, "Minimum ITS Cluster Size for Tr"};
224224
Configurable<float> cfgCutMinTofMassH3{"cfgCutMinTofMassH3", 5.f, "Minimum Tof mass H3"};
225225
Configurable<float> cfgCutMaxTofMassH3{"cfgCutMaxTofMassH3", 11.f, "Maximum TOF mass H3"};
226+
Configurable<float> cfgMaxRigidity{"cfgMaxRigidity", 10.f, "Maximum rigidity value"};
227+
Configurable<float> cfgMaxPt{"cfgMaxPt", 10.f, "Maximum pT value"};
228+
226229
// Set the kinematic and PID cuts for tracks
227230
struct : ConfigurableGroup {
228231
Configurable<float> pCut{"pCut", 0.6f, "Value of the p selection for spectra (default 0.3)"};
@@ -312,6 +315,8 @@ struct TrHeAnalysis {
312315
void process(soa::Join<aod::Collisions, aod::EvSels>::iterator const& event,
313316
TracksFull const& tracks)
314317
{
318+
template <typename T>
319+
float getMass(const T& track);
315320
bool trRapCut = kFALSE;
316321
bool heRapCut = kFALSE;
317322
histos.fill(HIST("event/eventSelection"), 0);
@@ -347,6 +352,9 @@ struct TrHeAnalysis {
347352
histos.fill(HIST("histogram/cuts"), 2);
348353
continue;
349354
}
355+
if (track.pt() > cfgMaxPt || getRigidity(track) > cfgMaxRigidity) {
356+
continue;
357+
}
350358
if (track.tpcNClsFound() < cfgCutTpcClusters) {
351359
histos.fill(HIST("histogram/cuts"), 3);
352360
continue;
@@ -514,6 +522,9 @@ struct TrHeAnalysis {
514522
histos.fill(HIST("histogram/cuts"), 2);
515523
continue;
516524
}
525+
if (track.pt() > cfgMaxPt || getRigidity(track) > cfgMaxRigidity) {
526+
continue;
527+
}
517528
if (track.tpcNClsFound() < cfgCutTpcClusters) {
518529
histos.fill(HIST("histogram/cuts"), 3);
519530
continue;

0 commit comments

Comments
 (0)