Skip to content

Commit

Permalink
[DPG] Update param. name (AliceO2Group#9719)
Browse files Browse the repository at this point in the history
  • Loading branch information
njacazio authored Feb 4, 2025
1 parent 2ab0d68 commit e6e4453
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DPG/Tasks/AOTTrack/PID/ITS/qaPIDITS.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ static const std::vector<std::string> tableNames{"Electron", // 0
"Helium", // 7
"Alpha"}; // 8
static const std::vector<std::string> parameterNames{"enable"};
static const std::vector<std::string> selectionNames{"selection"};
static const int defaultParameters[9][nParameters]{{0}, {0}, {1}, {1}, {1}, {0}, {0}, {0}, {0}};
static const float defaultPIDSelection[9][nParameters]{{-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}, {-1.f}};
static constexpr int Np = 9;
Expand Down Expand Up @@ -146,10 +147,10 @@ struct itsPidQa {
{defaultParameters[0], 9, nParameters, tableNames, parameterNames},
"Produce QA for this species: 0 - no, 1 - yes"};
Configurable<LabeledArray<float>> tofSelection{"tofSelection",
{defaultPIDSelection[0], 9, nParameters, tableNames, parameterNames},
{defaultPIDSelection[0], 9, nParameters, tableNames, selectionNames},
"Selection on the TOF nsigma"};
Configurable<LabeledArray<float>> tpcSelection{"tpcSelection",
{defaultPIDSelection[0], 9, nParameters, tableNames, parameterNames},
{defaultPIDSelection[0], 9, nParameters, tableNames, selectionNames},
"Selection on the TPC nsigma"};

Configurable<int> logAxis{"logAxis", 1, "Flag to use a log momentum axis"};
Expand Down Expand Up @@ -214,11 +215,11 @@ struct itsPidQa {
h = histos.add<TH1>("event/particlehypo", "", kTH1D, {{10, 0, 10, "PID in tracking"}});
for (int id = 0; id < 9; id++) {
h->GetXaxis()->SetBinLabel(id + 1, PID::getName(id));
tpcSelValues[id] = tpcSelection->get(tableNames[id].c_str(), "enable");
tpcSelValues[id] = tpcSelection->get(tableNames[id].c_str(), "selection");
if (tpcSelValues[id] <= 0.f) {
tpcSelValues[id] = 999.f;
}
tofSelValues[id] = tofSelection->get(tableNames[id].c_str(), "enable");
tofSelValues[id] = tofSelection->get(tableNames[id].c_str(), "selection");
if (tofSelValues[id] <= 0.f) {
tofSelValues[id] = 999.f;
}
Expand Down

0 comments on commit e6e4453

Please sign in to comment.