Skip to content

Commit 8770cf3

Browse files
committed
HfEventSelection: Get ZorroSummary output object via optional pointer
1 parent 4330ad0 commit 8770cf3

14 files changed

+18
-21
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ struct HfDataCreatorCharmHadPiReduced {
396396
setLabelHistoCands(hCandidatesD0FromDstar);
397397

398398
// init HF event selection helper
399-
hfEvSel.init(registry, zorroSummary);
399+
hfEvSel.init(registry, &zorroSummary);
400400
if (doprocessDplusPiMc || doprocessDplusPiMcWithMl ||
401401
doprocessDsPiMc || doprocessDsPiMcWithMl ||
402402
doprocessD0PiMc || doprocessD0PiMcWithMl ||

PWGHF/D2H/TableProducer/dataCreatorCharmResoToD0Reduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ struct HfDataCreatorCharmResoToD0Reduced {
173173
fitter.setWeightedFinalPCA(false);
174174

175175
// init HF event selection helper
176-
hfEvSel.init(registry, zorroSummary);
176+
hfEvSel.init(registry, &zorroSummary);
177177

178178
const auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
179179
for (const DeviceSpec& device : workflows.devices) {

PWGHF/D2H/TableProducer/dataCreatorCharmResoToDplusReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ struct HfDataCreatorCharmResoToDplusReduced {
172172
fitter.setWeightedFinalPCA(false);
173173

174174
// init HF event selection helper
175-
hfEvSel.init(registry, zorroSummary);
175+
hfEvSel.init(registry, &zorroSummary);
176176

177177
const auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
178178
for (const DeviceSpec& device : workflows.devices) {

PWGHF/D2H/TableProducer/dataCreatorCharmResoToDstarReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct HfDataCreatorCharmResoToDstarReduced {
171171
fitter.setWeightedFinalPCA(false);
172172

173173
// init HF event selection helper
174-
hfEvSel.init(registry, zorroSummary);
174+
hfEvSel.init(registry, &zorroSummary);
175175

176176
const auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
177177
for (const DeviceSpec& device : workflows.devices) {

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ struct HfDataCreatorJpsiHadReduced {
337337
}
338338

339339
// init HF event selection helper
340-
hfEvSel.init(registry, zorroSummary);
340+
hfEvSel.init(registry, &zorroSummary);
341341
if (doprocessJpsiKMc || doprocessJpsiPhiMc) {
342342
const auto& workflows = initContext.services().get<RunningWorkflowInfo const>();
343343
for (const DeviceSpec& device : workflows.devices) {

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,7 @@ struct HfTaskCharmPolarisation {
719719
}
720720

721721
if (doprocessResolEventPlane) {
722-
int dummyVariable;
723-
hfEvSel.init(registry, dummyVariable);
722+
hfEvSel.init(registry);
724723
ccdb->setURL("http://alice-ccdb.cern.ch");
725724
ccdb->setCaching(true);
726725
ccdb->setLocalObjectValidityChecking();

PWGHF/D2H/Tasks/taskFlowCharmHadrons.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ struct HfTaskFlowCharmHadrons {
302302
registry.add("spReso/hSparseReso", "THn for resolution with occupancy", HistType::kTHnSparseF, axesReso);
303303
}
304304

305-
int dummyVariable;
306-
hfEvSel.init(registry, dummyVariable);
305+
hfEvSel.init(registry);
307306
ccdb->setURL(ccdbUrl);
308307
ccdb->setCaching(true);
309308
ccdb->setLocalObjectValidityChecking();

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ struct HfCandidateCreator2Prong {
187187
hCandidates = registry.add<TH1>("hCandidates", "candidates counter", {HistType::kTH1D, {axisCands}});
188188

189189
// init HF event selection helper
190-
hfEvSel.init(registry, zorroSummary);
190+
hfEvSel.init(registry, &zorroSummary);
191191

192192
if (std::accumulate(doprocessDF.begin(), doprocessDF.end(), 0) == 1) {
193193
registry.fill(HIST("hVertexerType"), aod::hf_cand::VertexerType::DCAFitter);

PWGHF/TableProducer/candidateCreator3Prong.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ struct HfCandidateCreator3Prong {
221221
hCandidates = registry.add<TH1>("hCandidates", "candidates counter", {HistType::kTH1D, {axisCands}});
222222

223223
// init HF event selection helper
224-
hfEvSel.init(registry, zorroSummary);
224+
hfEvSel.init(registry, &zorroSummary);
225225

226226
// Configure DCAFitterN
227227
// df.setBz(bz);

PWGHF/TableProducer/candidateCreatorCascade.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct HfCandidateCreatorCascade {
141141
hCandidates = registry.add<TH1>("hCandidates", "candidates counter", {HistType::kTH1D, {axisCands}});
142142

143143
// init HF event selection helper
144-
hfEvSel.init(registry, zorroSummary);
144+
hfEvSel.init(registry, &zorroSummary);
145145

146146
massP = MassProton;
147147
massK0s = MassK0Short;

0 commit comments

Comments
 (0)