Skip to content

Commit c266b64

Browse files
authored
Histogram hMultNchNmuTrackType is updated
1. Histogram hMultNchNmuTrackType is updated (line AliceO2Group#119) 2. Filling of histogram hMultNchNmuTrackType is updated. (line AliceO2Group#249)
1 parent 4684d3b commit c266b64

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

PWGHF/HFL/Tasks/taskSingleMuonMult.cxx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct HfTaskSingleMuonMult {
7272
Filter globalTrackFilter = ((o2::aod::track::isGlobalTrack == true) && (nabs(o2::aod::track::eta) < etaTrackMax) && ((o2::aod::track::pt) > ptTrackMin));
7373

7474
HistogramRegistry registry{"registry"};
75-
75+
7676
void init(InitContext&)
7777
{
7878
AxisSpec axisCent = {101, -0.5, 100.5, "centrality"};
@@ -116,7 +116,7 @@ struct HfTaskSingleMuonMult {
116116

117117
registry.add("hTHnTrk", "Muon information with multiplicity", {HistType::kTHnSparseF, {axisCent, axisNCh, axisPt, axisEta, axisSign}, 5});
118118
registry.add("h3MultNchNmu", "Number of muons and multiplicity", {HistType::kTH3F, {axisCent, axisNCh, axisNMu}});
119-
registry.add("hMultNchNmuTrackType", "Number of muons with different types and multiplicity", {HistType::kTHnSparseF, {axisCent, axisNCh, axisNMu, axisTrackType},4});
119+
registry.add("hMultNchNmuTrackType", "Number of muons with different types and multiplicity", {HistType::kTHnSparseF, {axisCent, axisNCh, axisNMu, axisTrackType}, 4});
120120

121121
auto hEvstat = registry.get<TH1>(HIST("hEvent"));
122122
auto* xEv = hEvstat->GetXaxis();
@@ -131,10 +131,9 @@ struct HfTaskSingleMuonMult {
131131
xMu->SetBinLabel(3, "RAbsorbCut");
132132
xMu->SetBinLabel(4, "pDcaCut");
133133
xMu->SetBinLabel(5, "chi2Cut");
134-
134+
135135
// Number the types of muon tracks
136136
constexpr uint8_t nTrackTypes{static_cast<uint8_t>(ForwardTrackTypeEnum::MCHStandaloneTrack)};
137-
138137
}
139138

140139
void process(MyCollisions::iterator const& collision,
@@ -172,7 +171,7 @@ struct HfTaskSingleMuonMult {
172171

173172
// muons per event
174173
int nMu{0};
175-
int nMuType[nTrackTypes+1] = {0};
174+
int nMuType[nTrackTypes + 1] = {0};
176175

177176
for (const auto& muon : muons) {
178177
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()};

0 commit comments

Comments
 (0)