Skip to content

Commit eb41d2f

Browse files
Added global tracks without DCA cuts selection and makes it configurable also
1 parent f647971 commit eb41d2f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎PWGLF/Tasks/Resonances/deltaAnalysis.cxx‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ struct DeltaAnalysis {
128128
Configurable<bool> applyTPCChi2NClCut{"applyTPCChi2NClCut", true, "Enable/disable maximum TPC chi2/NCl cut"};
129129
Configurable<bool> applyITSChi2NClCut{"applyITSChi2NClCut", true, "Enable/disable maximum ITS chi2/NCl cut"};
130130
Configurable<bool> requirePrimaryTrack{"requirePrimaryTrack", true, "Require isPrimaryTrack flag"};
131-
Configurable<bool> requireGlobalTrack{"requireGlobalTrack", true, "Require global track"};
131+
Configurable<bool> requireGlobalTrack{"requireGlobalTrack", true, "Require global track (includes the DCA cuts of the standard global-track selection)"};
132+
Configurable<bool> requireGlobalTrackWoDCA{"requireGlobalTrackWoDCA", false, "Require global track without DCA cuts (isGlobalTrackWoDCA). Mutually exclusive with requireGlobalTrack"};
132133
Configurable<bool> requirePVContributor{"requirePVContributor", true, "Require PV-contributor flag"};
133134
} trackCuts;
134135

@@ -227,6 +228,11 @@ struct DeltaAnalysis {
227228
<< ", bins=" << binsVec.size() << ")";
228229
}
229230
};
231+
if (trackCuts.requireGlobalTrack && trackCuts.requireGlobalTrackWoDCA) {
232+
LOG(fatal) << "requireGlobalTrack and requireGlobalTrackWoDCA are mutually exclusive: "
233+
<< "enable only one of them (or neither).";
234+
}
235+
230236
chkSz(protonPID.protonTPCNSigmaCutPerBin, protonPID.protonTPCPIDMomentumBins, "proton TPC PID");
231237
chkSz(protonPID.protonTOFNSigmaCutPerBin, protonPID.protonTOFPIDMomentumBins, "proton TOF PID");
232238
chkSz(pionPID.pionTPCNSigmaCutPerBin, pionPID.pionTPCPIDMomentumBins, "pion TPC PID");
@@ -758,6 +764,9 @@ struct DeltaAnalysis {
758764
if (trackCuts.requireGlobalTrack && !track.isGlobalTrack()) {
759765
return false;
760766
}
767+
if (trackCuts.requireGlobalTrackWoDCA && !track.isGlobalTrackWoDCA()) {
768+
return false;
769+
}
761770
if (trackCuts.requirePVContributor && !track.isPVContributor()) {
762771
return false;
763772
}

0 commit comments

Comments
 (0)