Skip to content

Commit 748728f

Browse files
authored
Update taskXic0ToXiPi.cxx
1 parent 2939ea2 commit 748728f

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

PWGHF/D2H/Tasks/taskXic0ToXiPi.cxx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ struct HfTaskXic0ToXiPi {
124124
const AxisSpec thnAxisNumPvContr{thnConfigAxisNumPvContr, "Number of PV contributors"};
125125

126126
if (doprocessMcWithKFParticle || doprocessMcWithKFParticleMl) {
127-
std::vector<AxisSpec> axesAcc = {thnAxisGenPtD, thnAxisGenPtB, thnAxisY, thnAxisOrigin, thnAxisNumPvContr};
127+
std::vector<AxisSpec> const axesAcc = {thnAxisGenPtD, thnAxisGenPtB, thnAxisY, thnAxisOrigin, thnAxisNumPvContr};
128128
registry.add("hSparseAcc", "Thn for generated Xic0 from charm and beauty", HistType::kTHnSparseD, axesAcc);
129129
registry.get<THnSparse>(HIST("hSparseAcc"))->Sumw2();
130130
}
@@ -149,23 +149,23 @@ struct HfTaskXic0ToXiPi {
149149
const AxisSpec thnAxisPromptScore{thnConfigAxisPromptScore, "BDT score prompt."};
150150
const AxisSpec thnAxisCent{thnConfigAxisCent, "Centrality."};
151151
const AxisSpec thnAxisPtPion{thnConfigAxisPtPion, "Pt of Pion from Xic0."};
152-
std::vector<AxisSpec> axesWithBdtCent = {thnAxisPromptScore, thnAxisMass, thnAxisPt, thnAxisY, thnAxisCent, thnAxisPtPion, thnConfigAxisNumPvContr};
153-
std::vector<AxisSpec> axesWithCent = {thnAxisMass, thnAxisPt, thnAxisY, thnAxisCent, thnAxisPtPion, thnConfigAxisNumPvContr};
152+
std::vector<AxisSpec> const axesWithBdtCent = {thnAxisPromptScore, thnAxisMass, thnAxisPt, thnAxisY, thnAxisCent, thnAxisPtPion, thnConfigAxisNumPvContr};
153+
std::vector<AxisSpec> const axesWithCent = {thnAxisMass, thnAxisPt, thnAxisY, thnAxisCent, thnAxisPtPion, thnConfigAxisNumPvContr};
154154
registry.add("hBdtScoreVsMassVsPtVsYVsCentVsPtPion", "Thn for Xic0 candidates with BDT&Cent&pTpi", HistType::kTHnSparseD, axesWithBdtCent);
155155
registry.add("hMassVsPtVsYVsCentVsPtPion", "Thn for Xic0 candidates with Cent&pTpi", HistType::kTHnSparseD, axesWithCent);
156156
registry.get<THnSparse>(HIST("hBdtScoreVsMassVsPtVsYVsCentVsPtPion"))->Sumw2();
157157
registry.get<THnSparse>(HIST("hMassVsPtVsYVsCentVsPtPion"))->Sumw2();
158158
}
159159
}
160160

161-
template <bool useKfParticle, bool useCentrality, bool applyMl, typename CandType, typename CollType>
161+
template <bool UseKfParticle, bool UseCentrality, bool ApplyMl, typename CandType, typename CollType>
162162
void processDataCent(const CandType& candidate, CollType const& collision)
163163
{
164164
if (candidate.resultSelections() != true) {
165165
return;
166166
}
167167
double etaCharmBaryon;
168-
if constexpr (useKfParticle) {
168+
if constexpr (UseKfParticle) {
169169
etaCharmBaryon = candidate.kfRapXic();
170170
} else {
171171
etaCharmBaryon = candidate.etaCharmBaryon();
@@ -176,12 +176,12 @@ struct HfTaskXic0ToXiPi {
176176

177177
auto numPvContributors = collision.numContrib();
178178
float centrality = -999.f;
179-
if constexpr (useCentrality) {
179+
if constexpr (UseCentrality) {
180180
centrality = o2::hf_centrality::getCentralityColl(collision);
181181
}
182-
double ptXic = RecoDecay::pt(candidate.pxCharmBaryon(), candidate.pyCharmBaryon());
183-
double ptPiFromXic = RecoDecay::pt(candidate.pxBachFromCharmBaryon(), candidate.pyBachFromCharmBaryon());
184-
if constexpr (applyMl) {
182+
double const ptXic = RecoDecay::pt(candidate.pxCharmBaryon(), candidate.pyCharmBaryon());
183+
double const ptPiFromXic = RecoDecay::pt(candidate.pxBachFromCharmBaryon(), candidate.pyBachFromCharmBaryon());
184+
if constexpr (ApplyMl) {
185185
registry.fill(HIST("hBdtScoreVsMassVsPtVsYVsCentVsPtPion"),
186186
candidate.mlProbToXiPi()[0],
187187
candidate.invMassCharmBaryon(),
@@ -201,7 +201,7 @@ struct HfTaskXic0ToXiPi {
201201
}
202202
}
203203

204-
template <bool useKfParticle, bool applyMl, typename CandType, typename CollType>
204+
template <bool UseKfParticle, bool ApplyMl, typename CandType, typename CollType>
205205
void processMc(const CandType& candidates,
206206
Xic0Gen const& mcParticles,
207207
TracksMc const&,
@@ -214,7 +214,7 @@ struct HfTaskXic0ToXiPi {
214214
return;
215215
}
216216
double etaCharmBaryon;
217-
if constexpr (useKfParticle) {
217+
if constexpr (UseKfParticle) {
218218
etaCharmBaryon = candidate.kfRapXic();
219219
} else {
220220
etaCharmBaryon = candidate.etaCharmBaryon();
@@ -224,8 +224,8 @@ struct HfTaskXic0ToXiPi {
224224
}
225225

226226
auto numPvContributors = candidate.template collision_as<CollType>().numContrib();
227-
double ptXic = RecoDecay::pt(candidate.pxCharmBaryon(), candidate.pyCharmBaryon());
228-
if constexpr (applyMl) {
227+
double const ptXic = RecoDecay::pt(candidate.pxCharmBaryon(), candidate.pyCharmBaryon());
228+
if constexpr (ApplyMl) {
229229
registry.fill(HIST("hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsXic0Type"),
230230
candidate.mlProbToXiPi()[0],
231231
candidate.invMassCharmBaryon(),
@@ -270,7 +270,7 @@ struct HfTaskXic0ToXiPi {
270270
RecoDecay::OriginType::Prompt,
271271
maxNumContrib);
272272
} else {
273-
float ptGenB = mcParticles.rawIteratorAt(particle.idxBhadMotherPart()).pt();
273+
float const ptGenB = mcParticles.rawIteratorAt(particle.idxBhadMotherPart()).pt();
274274
registry.fill(HIST("hSparseAcc"),
275275
ptGen,
276276
ptGenB,
@@ -437,43 +437,43 @@ struct HfTaskXic0ToXiPi {
437437
}
438438
PROCESS_SWITCH(HfTaskXic0ToXiPi, processDataWithKFParticleMlFT0M, "process HfTaskXic0ToXiPi with KFParticle and ML selections and with FT0M centrality", false);
439439

440-
void processMcWithDCAFitter(Xic0CandsMc const& Xic0CandidatesMc,
440+
void processMcWithDCAFitter(Xic0CandsMc const& xic0CandidatesMc,
441441
Xic0Gen const& mcParticles,
442442
TracksMc const& tracks,
443443
CollisionsWithMcLabels const& collisions,
444444
aod::McCollisions const& mcCollisions)
445445
{
446-
processMc<false, false>(Xic0CandidatesMc, mcParticles, tracks, collisions, mcCollisions);
446+
processMc<false, false>(xic0CandidatesMc, mcParticles, tracks, collisions, mcCollisions);
447447
}
448448
PROCESS_SWITCH(HfTaskXic0ToXiPi, processMcWithDCAFitter, "Process MC with KFParticle", false);
449449

450-
void processMcWithKFParticle(Xic0CandsMcKF const& Xic0CandidatesMcKF,
450+
void processMcWithKFParticle(Xic0CandsMcKF const& xic0CandidatesMcKf,
451451
Xic0Gen const& mcParticles,
452452
TracksMc const& tracks,
453453
CollisionsWithMcLabels const& collisions,
454454
aod::McCollisions const& mcCollisions)
455455
{
456-
processMc<true, false>(Xic0CandidatesMcKF, mcParticles, tracks, collisions, mcCollisions);
456+
processMc<true, false>(xic0CandidatesMcKf, mcParticles, tracks, collisions, mcCollisions);
457457
}
458458
PROCESS_SWITCH(HfTaskXic0ToXiPi, processMcWithKFParticle, "Process MC with KFParticle", false);
459459

460-
void processMcWithDCAFitterMl(Xic0CandsMlMc const& Xic0CandidatesMlMc,
460+
void processMcWithDCAFitterMl(Xic0CandsMlMc const& xic0CandidatesMlMc,
461461
Xic0Gen const& mcParticles,
462462
TracksMc const& tracks,
463463
CollisionsWithMcLabels const& collisions,
464464
aod::McCollisions const& mcCollisions)
465465
{
466-
processMc<false, true>(Xic0CandidatesMlMc, mcParticles, tracks, collisions, mcCollisions);
466+
processMc<false, true>(xic0CandidatesMlMc, mcParticles, tracks, collisions, mcCollisions);
467467
}
468468
PROCESS_SWITCH(HfTaskXic0ToXiPi, processMcWithDCAFitterMl, "Process MC with KFParticle and ML selections", false);
469469

470-
void processMcWithKFParticleMl(Xic0CandsMlMcKF const& Xic0CandidatesMlMcKF,
470+
void processMcWithKFParticleMl(Xic0CandsMlMcKF const& xic0CandidatesMlMcKf,
471471
Xic0Gen const& mcParticles,
472472
TracksMc const& tracks,
473473
CollisionsWithMcLabels const& collisions,
474474
aod::McCollisions const& mcCollisions)
475475
{
476-
processMc<true, true>(Xic0CandidatesMlMcKF, mcParticles, tracks, collisions, mcCollisions);
476+
processMc<true, true>(xic0CandidatesMlMcKf, mcParticles, tracks, collisions, mcCollisions);
477477
}
478478
PROCESS_SWITCH(HfTaskXic0ToXiPi, processMcWithKFParticleMl, "Process MC with KFParticle and ML selections", false);
479479
};

0 commit comments

Comments
 (0)