88// In applying this license CERN does not waive the privileges and immunities
99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
11- #ifndef ANALYSIS_CONFIGURABLE_CUTS_CLASSES_H
12- #define ANALYSIS_CONFIGURABLE_CUTS_CLASSES_H
11+ #ifndef PWGCF_CORE_ANALYSISCONFIGURABLECUTS_H_
12+ #define PWGCF_CORE_ANALYSISCONFIGURABLECUTS_H_
1313
14+ #include < string>
1415#include < Rtypes.h>
1516#include < TObject.h>
1617#include < TNamed.h>
@@ -84,6 +85,25 @@ class TrackSelectionCfg
8485 ClassDefNV (TrackSelectionCfg, 1 );
8586};
8687
88+ // / \brief Simple class to configure a selection based on PID
89+ // / The nsigmas information is for closeness to the line of interest
90+ // / and for separation to the other lines
91+ class TrackSelectionPIDCfg
92+ {
93+ public:
94+ bool mUseIt = false ;
95+ float mMinNSigmasTPC [5 ] = {-3.0 , -3.0 , -3.0 , -3.0 , -3.0 }; // /< nsigmas TPC lower limit for e, mu, pi, Ka, and p
96+ float mMaxNSigmasTPC [5 ] = {3.0 , 3.0 , 3.0 , 3.0 , 3.0 }; // /< nsigmas TPC upper limit for e, mu, pi, Ka, and p
97+ float mPThreshold = 0.0 ; // /< momentum threshold for considering TOF information
98+ bool mRequireTOF = true ; // /< require or not the presence of TOF when the momentum threshold is passed
99+ float mMinNSigmasTOF [5 ] = {-3.0 , -3.0 , -3.0 , -3.0 , -3.0 }; // /< nsigmas TOF lower limit for e, mu, pi, Ka, and p
100+ float mMaxNSigmasTOF [5 ] = {-3.0 , -3.0 , 3.0 , 3.0 , 3.0 }; // /< nsigmas TOF upper limit for e, mu, pi, Ka, and p
101+ bool m2Dcut = true ; // /< use an elliptic cut using TPC and TOF nsigmas
102+ int mExclude = false ; // /< should the identified track be excluded for analysis?
103+ private:
104+ ClassDefNV (TrackSelectionPIDCfg, 1 );
105+ };
106+
87107class SimpleInclusiveCut : public TNamed
88108{
89109 public:
@@ -102,4 +122,4 @@ class SimpleInclusiveCut : public TNamed
102122
103123} // namespace analysis
104124} // namespace o2
105- #endif // ANALYSIS_CONFIGURABLE_CUTS_CLASSES_H
125+ #endif // PWGCF_CORE_ANALYSISCONFIGURABLECUTS_H_
0 commit comments