Skip to content

Commit 3533335

Browse files
authored
axis Range for axisEvent and axisMuon updated
1 parent 1378f60 commit 3533335

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

PWGHF/HFL/Tasks/taskSingleMuonMult.cxx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,15 @@ struct HfTaskSingleMuonMult {
9292

9393
// Number the types of muon tracks
9494
static constexpr uint8_t NTrackTypes{ForwardTrackTypeEnum::MCHStandaloneTrack + 1};
95-
static constexpr float EventSelectionMax = static_cast<float>(NEventSelection) + 0.5f;
96-
static constexpr float MuonSelectionMax = static_cast<float>(NMuonSelection) + 0.5f;
9795

9896
HistogramRegistry registry{"registry"};
9997

10098
void init(InitContext&)
10199
{
102100
AxisSpec axisCent = {101, -0.5, 100.5, "centrality"};
103-
AxisSpec axisEvent{NEventSelection, 0.5, EventSelectionMax, "Event Selection"};
101+
AxisSpec axisEvent{NEventSelection, 0, NEventSelection, "Event Selection"};
104102
AxisSpec axisVtxZ{80, -20., 20., "#it{z}_{vtx} (cm)"};
105-
AxisSpec axisMuon{NMuonSelection, 0.5, MuonSelectionMax, "Muon Selection"};
103+
AxisSpec axisMuon{NMuonSelection, 0, NMuonSelection, "Muon Selection"};
106104
AxisSpec axisNCh{500, 0.5, 500.5, "#it{N}_{ch}"};
107105
AxisSpec axisNMu{20, -0.5, 19.5, "#it{N}_{#mu}"};
108106
AxisSpec axisPt{1000, 0., 500., "#it{p}_{T} (GeV/#it{c})"};
@@ -160,18 +158,18 @@ struct HfTaskSingleMuonMult {
160158
MyTracks const& tracks,
161159
MyMuons const& muons)
162160
{
163-
registry.fill(HIST("hEventSel"), AllEvents + 1);
161+
registry.fill(HIST("hEventSel"), AllEvents);
164162

165163
if (!collision.sel8()) {
166164
return;
167165
}
168-
registry.fill(HIST("hEventSel"), Sel8 + 1);
166+
registry.fill(HIST("hEventSel"), Sel8);
169167
registry.fill(HIST("hVtxZBeforeSel"), collision.posZ());
170168

171169
if (std::abs(collision.posZ()) > zVtxMax) {
172170
return;
173171
}
174-
registry.fill(HIST("hEventSel"), VtxZAfterSel + 1);
172+
registry.fill(HIST("hEventSel"), VtxZAfterSel);
175173
registry.fill(HIST("hVtxZAfterSel"), collision.posZ());
176174

177175
// T0M centrality
@@ -207,7 +205,7 @@ struct HfTaskSingleMuonMult {
207205
registry.fill(HIST("hMuBeforeMatchMFT"), cent, nCh, pt, eta, theta, rAbsorb, dcaXY, pDca, chi2, muTrackType);
208206

209207
// histograms before the acceptance cuts
210-
registry.fill(HIST("hMuonSel"), NoCut + 1);
208+
registry.fill(HIST("hMuonSel"), NoCut);
211209
registry.fill(HIST("hMuBeforeAccCuts"), cent, nCh, pt, eta, theta, rAbsorb, dcaXY, pDca, chi2, muTrackType);
212210
registry.fill(HIST("h3DCABeforeAccCuts"), muon.fwdDcaX(), muon.fwdDcaY(), muTrackType);
213211

@@ -224,14 +222,14 @@ struct HfTaskSingleMuonMult {
224222
if ((eta >= etaMax) || (eta < etaMin)) {
225223
continue;
226224
}
227-
registry.fill(HIST("hMuonSel"), EtaCut + 1);
225+
registry.fill(HIST("hMuonSel"), EtaCut);
228226
registry.fill(HIST("hMuAfterEtaCuts"), cent, nCh, pt, eta, theta, rAbsorb, dcaXY, pDca, chi2, muTrackType);
229227

230228
// Rabsorb cuts
231229
if ((rAbsorb < rAbsorbMin) || (rAbsorb >= rAbsorbMax)) {
232230
continue;
233231
}
234-
registry.fill(HIST("hMuonSel"), RAbsorbCut + 1);
232+
registry.fill(HIST("hMuonSel"), RAbsorbCut);
235233
registry.fill(HIST("hMuAfterRAbsorbCuts"), cent, nCh, pt, eta, theta, rAbsorb, dcaXY, pDca, chi2, muTrackType);
236234

237235
if ((rAbsorb < rAbsorbMid) && (pDca >= pDcaMin)) {
@@ -240,14 +238,14 @@ struct HfTaskSingleMuonMult {
240238
if ((rAbsorb >= rAbsorbMid) && (pDca >= pDcaMax)) {
241239
continue;
242240
}
243-
registry.fill(HIST("hMuonSel"), PDcaCut + 1);
241+
registry.fill(HIST("hMuonSel"), PDcaCut);
244242
registry.fill(HIST("hMuAfterPdcaCuts"), cent, nCh, pt, eta, theta, rAbsorb, dcaXY, pDca, chi2, muTrackType);
245243

246244
// MCH-MFT matching chi2
247245
if (muon.chi2() >= 1e6) {
248246
continue;
249247
}
250-
registry.fill(HIST("hMuonSel"), Chi2Cut + 1);
248+
registry.fill(HIST("hMuonSel"), Chi2Cut);
251249

252250
// histograms after acceptance cuts
253251
registry.fill(HIST("hMuAfterAccCuts"), cent, nCh, pt, eta, theta, rAbsorb, dcaXY, pDca, chi2, muTrackType);

0 commit comments

Comments
 (0)