Skip to content

Commit 64fd24f

Browse files
authored
updated the definition of NTrackTypes
updated the definition of NTrackTypes (line AliceO2Group#136) updated line AliceO2Group#174 updated line AliceO2Group#245
1 parent 9c87c18 commit 64fd24f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGHF/HFL/Tasks/taskSingleMuonMult.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct HfTaskSingleMuonMult {
133133
xMu->SetBinLabel(5, "chi2Cut");
134134

135135
// Number the types of muon tracks
136-
constexpr uint8_t NTrackTypes{static_cast<uint8_t>(ForwardTrackTypeEnum::MCHStandaloneTrack)};
136+
constexpr uint8_t NTrackTypes{static_cast<uint8_t>(ForwardTrackTypeEnum::MCHStandaloneTrack + 1)};
137137
}
138138

139139
void process(MyCollisions::iterator const& collision,
@@ -171,7 +171,7 @@ struct HfTaskSingleMuonMult {
171171

172172
// muons per event
173173
int nMu{0};
174-
int nMuType[NTrackTypes + 1] = {0};
174+
int nMuType[NTrackTypes] = {0};
175175

176176
for (const auto& muon : muons) {
177177
const auto pt{muon.pt()}, eta{muon.eta()}, theta{90.0f - ((std::atan(muon.tgl())) * constants::math::Rad2Deg)}, pDca{muon.pDca()}, rAbsorb{muon.rAtAbsorberEnd()}, chi2{muon.chi2MatchMCHMFT()};
@@ -242,7 +242,7 @@ struct HfTaskSingleMuonMult {
242242
registry.fill(HIST("h3MultNchNmu"), cent, nCh, nMu);
243243

244244
// Fill number of muons of various types with multiplicity
245-
for (auto indexType{0u}; indexType <= NTrackTypes; ++indexType) {
245+
for (auto indexType{0u}; indexType < NTrackTypes; ++indexType) {
246246
if (nMuType[indexType] > 0) {
247247
registry.fill(HIST("hMultNchNmuTrackType"), cent, nCh, nMuType[indexType], indexType);
248248
}

0 commit comments

Comments
 (0)