Skip to content

Commit 183eff0

Browse files
committed
GLO: QC: set reasonable defaults and steering
1 parent 5e3bebd commit 183eff0

File tree

4 files changed

+53
-78
lines changed

4 files changed

+53
-78
lines changed

Detectors/GLOQC/include/GLOQC/ITSTPCMatchingQCParams.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,25 @@
1717
#include "CommonUtils/ConfigurableParam.h"
1818
#include "CommonUtils/ConfigurableParamHelper.h"
1919

20-
namespace o2
21-
{
22-
namespace gloqc
20+
namespace o2::gloqc
2321
{
2422

2523
// There are configurable params for TPC-ITS matching
2624
struct ITSTPCMatchingQCParams : public o2::conf::ConfigurableParamHelper<ITSTPCMatchingQCParams> {
2725

28-
float minPtITSCut = 0.f;
29-
float etaITSCut = 1e10f;
26+
int nBinsPt = 100;
27+
float minPtITSCut = 0.1;
28+
float etaITSCut = 1.4;
3029
int32_t minNITSClustersCut = 0;
31-
int32_t maxChi2PerClusterITS = 100000;
32-
float minPtTPCCut = 0.1f;
33-
float etaTPCCut = 0.9f;
30+
float maxChi2PerClusterITS = 1e10;
31+
float minPtTPCCut = 0.1;
32+
float etaTPCCut = 1.4;
3433
int32_t minNTPCClustersCut = 60;
35-
float minDCACut = 100.f;
36-
float minDCACutY = 10.f;
37-
float minPtCut = 0.f;
38-
float maxPtCut = 1e10f;
39-
float etaCut = 1.e10f;
34+
float minDCACut = 100.;
35+
float minDCACutY = 10.;
36+
float minPtCut = 0.1;
37+
float maxPtCut = 20;
38+
float etaCut = 1.4;
4039
float etaNo0Cut = 0.05;
4140
float cutK0Mass = 0.05f;
4241
float maxEtaK0 = 0.8f;
@@ -53,7 +52,7 @@ struct ITSTPCMatchingQCParams : public o2::conf::ConfigurableParamHelper<ITSTPCM
5352
O2ParamDef(ITSTPCMatchingQCParams, "ITSTPCMatchingQC");
5453
};
5554

56-
} // namespace gloqc
57-
} // end namespace o2
55+
} // namespace o2::gloqc
56+
// end namespace o2
5857

5958
#endif

Detectors/GLOQC/include/GLOQC/MatchITSTPCQC.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ class MatchITSTPCQC
138138

139139
TH3F* getHistoEtaPhiPtNum(matchType m) const { return mEtaPhiPtNum[m]; }
140140
TH3F* getHistoEtaPhiPtDen(matchType m) const { return mEtaPhiPtDen[m]; }
141-
TEfficiency* getFractionITSTPCmatchEtaPhiPt(matchType m) const { return mFractionITSTPCmatchEtaPhiPt[m]; }
142141

143142
TH3F* getHistoK0MassVsPtVsOccpp() const { return mK0MassVsPtVsOccpp; }
144143
TH3F* getHistoK0MassVsPtVsOccPbPb() const { return mK0MassVsPtVsOccPbPb; }
@@ -197,7 +196,6 @@ class MatchITSTPCQC
197196
// 3D eta/phi/pt
198197
publisher->startPublishing(mEtaPhiPtNum[i]);
199198
publisher->startPublishing(mEtaPhiPtDen[i]);
200-
publisher->startPublishing(mFractionITSTPCmatchEtaPhiPt[i]);
201199

202200
if (mUseTrkPID) { // Vs Tracking PID hypothesis
203201
for (int j = 0; j < o2::track::PID::NIDs; ++j) {
@@ -278,6 +276,7 @@ class MatchITSTPCQC
278276
void setMinDCAtoBeamPipeDistanceCut(float v) { mDCATPCCut = v; }
279277
void setMinDCAtoBeamPipeYCut(float v) { mDCATPCCutY = v; }
280278
// ITS-TPC kinematics
279+
void setNBinsPt(int v) { mPtBins = v; }
281280
void setPtCut(float v) { mPtCut = v; }
282281
void setMaxPtCut(float v) { mPtMaxCut = v; }
283282
void setEtaCut(float v) { mEtaCut = v; }
@@ -419,7 +418,6 @@ class MatchITSTPCQC
419418
// 3D Efficiency in eta/phi/pt
420419
TH3F* mEtaPhiPtNum[matchType::SIZE] = {};
421420
TH3F* mEtaPhiPtDen[matchType::SIZE] = {};
422-
TEfficiency* mFractionITSTPCmatchEtaPhiPt[matchType::SIZE] = {};
423421

424422
template <int DIM = 1, bool DEBUG = false>
425423
void setEfficiency(TEfficiency* eff, TH1* hnum, TH1* hden);
@@ -442,8 +440,9 @@ class MatchITSTPCQC
442440
float mDCATPCCut = 100.f; // max DCA 3D to PV for TPC track
443441
float mDCATPCCutY = 10.f; // max DCA xy to PV for TPC track
444442
// ITS-TPC kinematics
443+
int mPtBins = 100;
445444
float mPtCut = 0.1f;
446-
float mPtMaxCut = 1e10f;
445+
float mPtMaxCut = 20;
447446
float mEtaCut = 1.4f;
448447
float mEtaNo0Cut = 0.05f;
449448
// TODO: define 2 different values for min and max (*)

0 commit comments

Comments
 (0)