|
66 | 66 |
|
67 | 67 | #include "TRandom3.h" |
68 | 68 |
|
69 | | -#include "nucleiUtils.h" |
| 69 | +#include "PWGLF/Utils/nucleiUtils.h" |
70 | 70 |
|
71 | 71 | using namespace o2; |
72 | 72 | using namespace o2::framework; |
@@ -257,7 +257,7 @@ struct nucleiFlowTree { |
257 | 257 | spectra.add("hTpcSignalDataSelected", "Specific energy loss for selected particles", HistType::kTH2F, {{600, -6., 6., "#it{p} (GeV/#it{c})"}, {1400, 0, 1400, "d#it{E} / d#it{X} (a. u.)"}}); |
258 | 258 | spectra.add("hTofSignalData", "TOF beta", HistType::kTH2F, {{500, 0., 5., "#it{p} (GeV/#it{c})"}, {750, 0, 1.5, "TOF #beta"}}); |
259 | 259 |
|
260 | | - for (int iS{0}; iS < nuclei::species; ++iS) { |
| 260 | + for (int iS{0}; iS < nuclei::Species::kNspecies; ++iS) { |
261 | 261 | for (int iMax{0}; iMax < 2; ++iMax) { |
262 | 262 | nuclei::pidCutTPC[iS][iMax] = cfgNsigmaTPC->get(iS, iMax); // changed pidCut to pidCutTPC so that it compiles TODO: check if it is correct |
263 | 263 | } |
@@ -328,7 +328,7 @@ struct nucleiFlowTree { |
328 | 328 | bool selectedTPC[5]{false}, goodToAnalyse{false}; |
329 | 329 | std::array<float, 5> nSigmaTPC; |
330 | 330 |
|
331 | | - for (int iS{0}; iS < nuclei::species; ++iS) { |
| 331 | + for (int iS{0}; iS < nuclei::Species::kNspecies; ++iS) { |
332 | 332 |
|
333 | 333 | double expBethe{tpc::BetheBlochAleph(static_cast<double>(correctedTpcInnerParam * bgScalings[iS][iC]), cfgBetheBlochParams->get(iS, 0u), cfgBetheBlochParams->get(iS, 1u), cfgBetheBlochParams->get(iS, 2u), cfgBetheBlochParams->get(iS, 3u), cfgBetheBlochParams->get(iS, 4u))}; |
334 | 334 |
|
@@ -371,7 +371,7 @@ struct nucleiFlowTree { |
371 | 371 | if (!collision.selection_bit(o2::aod::evsel::kNoITSROFrameBorder)) { |
372 | 372 | flag |= kITSrof; |
373 | 373 | } |
374 | | - for (int iS{0}; iS < nuclei::species; ++iS) { |
| 374 | + for (int iS{0}; iS < nuclei::Species::kNspecies; ++iS) { |
375 | 375 | bool selectedTOF{false}; |
376 | 376 | if (std::abs(dcaInfo[1]) > cfgDCAcut->get(iS, 1)) { |
377 | 377 | continue; |
|
0 commit comments