@@ -58,7 +58,6 @@ struct Alice3HfTask3Prong {
5858 Configurable<std::string> ccdbPathGrp{" ccdbPathGrp" , " GLO/GRP/GRP" , " Path of the grp file (Run 2)" };
5959 Configurable<std::string> ccdbPathGrpMag{" ccdbPathGrpMag" , " GLO/Config/GRPMagField" , " CCDB path of the GRPMagField object (Run 3)" };
6060
61- HfHelperAlice3 hfHelper;
6261 SliceCache cache;
6362 Service<o2::ccdb::BasicCCDBManager> ccdb;
6463
@@ -271,7 +270,7 @@ struct Alice3HfTask3Prong {
271270 for (const auto & candidate : candidates) {
272271 registry.fill (HIST (" MC/rec/hCandidateCounter" ), 1 .);
273272 // / rapidity selection
274- if (yCandRecoMax >= 0 . && std::abs (hfHelper. getCandY <CharmHad>(candidate)) > yCandRecoMax) {
273+ if (yCandRecoMax >= 0 . && std::abs (HfHelperAlice3:: getCandY<CharmHad>(candidate)) > yCandRecoMax) {
275274 continue ;
276275 }
277276 registry.fill (HIST (" MC/rec/hCandidateCounter" ), 2 .);
@@ -311,7 +310,7 @@ struct Alice3HfTask3Prong {
311310
312311 if (candidate.isSelMassHypo0 ()) {
313312 registry.fill (HIST (" hSelectionStatus" ), 0 ., pt);
314- double mass = hfHelper. getCandMass <CharmHad, false >(candidate);
313+ double mass = HfHelperAlice3:: getCandMass<CharmHad, false >(candidate);
315314 // / Fill histograms
316315 fillHistogramsRecSig<CharmHad, SignalClasses::Signal>(candidate, mass, false );
317316 if (originType == RecoDecay::OriginType::Prompt) {
@@ -334,7 +333,7 @@ struct Alice3HfTask3Prong {
334333 if (fillSwapMassHypo) {
335334 if (candidate.isSelMassHypo1 ()) {
336335 registry.fill (HIST (" hSelectionStatus" ), 1 ., pt);
337- double mass = hfHelper. getCandMass <CharmHad, true >(candidate);
336+ double mass = HfHelperAlice3:: getCandMass<CharmHad, true >(candidate);
338337 // / Fill histograms
339338 fillHistogramsRecSig<CharmHad, SignalClasses::Signal>(candidate, mass, true );
340339 if (originType == RecoDecay::OriginType::Prompt) {
@@ -357,12 +356,12 @@ struct Alice3HfTask3Prong {
357356 }
358357 } else { // Background
359358 if (candidate.isSelMassHypo0 ()) {
360- double mass = hfHelper. getCandMass <CharmHad, false >(candidate);
359+ double mass = HfHelperAlice3:: getCandMass<CharmHad, false >(candidate);
361360 fillHistogramsRecSig<CharmHad, SignalClasses::Bkg>(candidate, mass, false );
362361 }
363362 if (fillSwapMassHypo) {
364363 if (candidate.isSelMassHypo1 ()) {
365- double mass = hfHelper. getCandMass <CharmHad, true >(candidate);
364+ double mass = HfHelperAlice3:: getCandMass<CharmHad, true >(candidate);
366365 fillHistogramsRecSig<CharmHad, SignalClasses::Bkg>(candidate, mass, true );
367366 }
368367 }
@@ -385,10 +384,10 @@ struct Alice3HfTask3Prong {
385384 static constexpr auto histoSuffix = HIST (" Gen" ) + HIST (SignalSuffixes[SignalType]);
386385 registry.fill (histoPrefix + HIST (" hPt" ) + histoSuffix, particle.pt ());
387386 registry.fill (histoPrefix + HIST (" hEta" ) + histoSuffix, particle.eta ());
388- registry.fill (histoPrefix + HIST (" hY" ) + histoSuffix, hfHelper. getCandY <CharmHad>(particle));
387+ registry.fill (histoPrefix + HIST (" hY" ) + histoSuffix, HfHelperAlice3:: getCandY<CharmHad>(particle));
389388 registry.fill (histoPrefix + HIST (" hPhi" ) + histoSuffix, particle.phi ());
390389 registry.fill (histoPrefix + HIST (" hEtaVsPt" ) + histoSuffix, particle.eta (), particle.pt ());
391- registry.fill (histoPrefix + HIST (" hYVsPt" ) + histoSuffix, hfHelper. getCandY <CharmHad>(particle), particle.pt ());
390+ registry.fill (histoPrefix + HIST (" hYVsPt" ) + histoSuffix, HfHelperAlice3:: getCandY<CharmHad>(particle), particle.pt ());
392391 registry.fill (histoPrefix + HIST (" hPhiVsPt" ) + histoSuffix, particle.phi (), particle.pt ());
393392 if (particle.has_daughters ()) {
394393 const auto firstDauIdx = particle.daughtersIds ().front ();
@@ -424,7 +423,7 @@ struct Alice3HfTask3Prong {
424423 // MC gen.
425424 for (const auto & particle : mcParticles) {
426425 if (std::abs (particle.flagMcGen ()) == selectedPdg) {
427- double yGen = hfHelper. getCandY <CharmHad>(particle);
426+ double yGen = HfHelperAlice3:: getCandY<CharmHad>(particle);
428427 if (yCandGenMax >= 0 . && std::abs (yGen) > yCandGenMax) {
429428 continue ;
430429 }
0 commit comments