Skip to content

Commit e6e4453

Browse files
authored
[DPG] Update param. name (#9719)
1 parent 2ab0d68 commit e6e4453

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

DPG/Tasks/AOTTrack/PID/ITS/qaPIDITS.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static const std::vector<std::string> tableNames{"Electron", // 0
4242
"Helium", // 7
4343
"Alpha"}; // 8
4444
static const std::vector<std::string> parameterNames{"enable"};
45+
static const std::vector<std::string> selectionNames{"selection"};
4546
static const int defaultParameters[9][nParameters]{{0}, {0}, {1}, {1}, {1}, {0}, {0}, {0}, {0}};
4647
static const float defaultPIDSelection[9][nParameters]{{-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}};
4748
static constexpr int Np = 9;
@@ -146,10 +147,10 @@ struct itsPidQa {
146147
{defaultParameters[0], 9, nParameters, tableNames, parameterNames},
147148
"Produce QA for this species: 0 - no, 1 - yes"};
148149
Configurable<LabeledArray<float>> tofSelection{"tofSelection",
149-
{defaultPIDSelection[0], 9, nParameters, tableNames, parameterNames},
150+
{defaultPIDSelection[0], 9, nParameters, tableNames, selectionNames},
150151
"Selection on the TOF nsigma"};
151152
Configurable<LabeledArray<float>> tpcSelection{"tpcSelection",
152-
{defaultPIDSelection[0], 9, nParameters, tableNames, parameterNames},
153+
{defaultPIDSelection[0], 9, nParameters, tableNames, selectionNames},
153154
"Selection on the TPC nsigma"};
154155

155156
Configurable<int> logAxis{"logAxis", 1, "Flag to use a log momentum axis"};
@@ -214,11 +215,11 @@ struct itsPidQa {
214215
h = histos.add<TH1>("event/particlehypo", "", kTH1D, {{10, 0, 10, "PID in tracking"}});
215216
for (int id = 0; id < 9; id++) {
216217
h->GetXaxis()->SetBinLabel(id + 1, PID::getName(id));
217-
tpcSelValues[id] = tpcSelection->get(tableNames[id].c_str(), "enable");
218+
tpcSelValues[id] = tpcSelection->get(tableNames[id].c_str(), "selection");
218219
if (tpcSelValues[id] <= 0.f) {
219220
tpcSelValues[id] = 999.f;
220221
}
221-
tofSelValues[id] = tofSelection->get(tableNames[id].c_str(), "enable");
222+
tofSelValues[id] = tofSelection->get(tableNames[id].c_str(), "selection");
222223
if (tofSelValues[id] <= 0.f) {
223224
tofSelValues[id] = 999.f;
224225
}

0 commit comments

Comments
 (0)