Skip to content

Commit 361e431

Browse files
victor-gonzalezVictor
andauthored
[PWGCF] First step towards identified analysis (#4667)
* First step towards identified analysis * Fixed first wave of MegaLinter errors --------- Co-authored-by: Victor <victor@cern.ch>
1 parent 907bd4b commit 361e431

5 files changed

Lines changed: 416 additions & 264 deletions

File tree

PWGCF/Core/AnalysisConfigurableCuts.h

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
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+
87107
class 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_

PWGCF/Core/PWGCFCoreLinkDef.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
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 PWGCF_CORE_PWGCFCORELINKDEF_H_
12+
#define PWGCF_CORE_PWGCFCORELINKDEF_H_
1113

1214
#pragma link off all globals;
1315
#pragma link off all classes;
@@ -17,5 +19,7 @@
1719
#pragma link C++ class o2::analysis::DptDptBinningCuts + ;
1820
#pragma link C++ class o2::analysis::CheckRangeCfg + ;
1921
#pragma link C++ class o2::analysis::TrackSelectionCfg + ;
22+
#pragma link C++ class o2::analysis::TrackSelectionPIDCfg + ;
2023
#pragma link C++ class o2::analysis::SimpleInclusiveCut + ;
2124
#pragma link C++ class CorrelationContainer + ;
25+
#endif // PWGCF_CORE_PWGCFCORELINKDEF_H_

0 commit comments

Comments
 (0)