1515// /
1616// / \author Alessandro De Falco <alessandro.de.falco@ca.infn.it>, Cagliari University
1717
18- #include < utility>
19- #include < vector>
18+ #include " PWGHF/Core/HfHelper.h"
19+ #include " PWGHF/DataModel/CandidateReconstructionTables.h"
20+ #include " PWGHF/DataModel/CandidateSelectionTables.h"
21+
22+ #include " ALICE3/DataModel/ECAL.h"
23+ #include " Common/Core/trackUtilities.h"
2024
2125#include " CommonConstants/PhysicsConstants.h"
2226#include " DCAFitter/DCAFitterN.h"
2327#include " Framework/AnalysisTask.h"
2428#include " ReconstructionDataFormats/DCA.h"
2529#include " ReconstructionDataFormats/V0.h"
2630
27- #include " ALICE3/DataModel/ECAL.h"
28- #include " Common/Core/trackUtilities.h"
29-
30- #include " PWGHF/Core/HfHelper.h"
31- #include " PWGHF/DataModel/CandidateReconstructionTables.h"
32- #include " PWGHF/DataModel/CandidateSelectionTables.h"
31+ #include < utility>
32+ #include < vector>
3333
3434using namespace o2 ;
3535using namespace o2 ::analysis;
@@ -67,7 +67,6 @@ struct HfCandidateCreatorChic {
6767 Configurable<double > yCandMax{" yCandMax" , -1 ., " max. cand. rapidity" };
6868
6969 o2::vertexing::DCAFitterN<2 > df2; // 2-prong vertex fitter (to rebuild Jpsi vertex)
70- HfHelper hfHelper;
7170
7271 double massJpsi{0 .};
7372 double massJpsiGamma{0 .};
@@ -109,14 +108,14 @@ struct HfCandidateCreatorChic {
109108 if (!(jpsiCand.hfflag () & 1 << hf_cand_2prong::DecayType::JpsiToEE) && !(jpsiCand.hfflag () & 1 << hf_cand_2prong::DecayType::JpsiToMuMu)) {
110109 continue ;
111110 }
112- if (yCandMax >= 0 . && std::abs (hfHelper. yJpsi (jpsiCand)) > yCandMax) {
111+ if (yCandMax >= 0 . && std::abs (HfHelper:: yJpsi (jpsiCand)) > yCandMax) {
113112 continue ;
114113 }
115114 if (jpsiCand.isSelJpsiToEE () > 0 ) {
116- hMassJpsiToEE->Fill (hfHelper. invMassJpsiToEE (jpsiCand));
115+ hMassJpsiToEE->Fill (HfHelper:: invMassJpsiToEE (jpsiCand));
117116 }
118117 if (jpsiCand.isSelJpsiToMuMu () > 0 ) {
119- hMassJpsiToMuMu->Fill (hfHelper. invMassJpsiToMuMu (jpsiCand));
118+ hMassJpsiToMuMu->Fill (HfHelper:: invMassJpsiToMuMu (jpsiCand));
120119 }
121120 hPtJpsi->Fill (jpsiCand.pt ());
122121 hCPAJpsi->Fill (jpsiCand.cpa ());
@@ -189,7 +188,7 @@ struct HfCandidateCreatorChic {
189188 impactParameter0.getY (), 0 .f , // impactParameter1.getY(),
190189 std::sqrt (impactParameter0.getSigmaY2 ()), 0 .f , // std::sqrt(impactParameter1.getSigmaY2()),
191190 jpsiCand.globalIndex (), ecal.globalIndex (),
192- hfFlag, hfHelper. invMassJpsiToMuMu (jpsiCand));
191+ hfFlag, HfHelper:: invMassJpsiToMuMu (jpsiCand));
193192
194193 // calculate invariant mass
195194 auto arrayMomenta = std::array{pvecJpsi, pvecGamma};
@@ -201,9 +200,9 @@ struct HfCandidateCreatorChic {
201200 hMassChicToJpsiToMuMuGamma->Fill (massJpsiGamma);
202201 }
203202 } // ecal loop
204- } // Jpsi loop
205- } // process
206- }; // struct
203+ } // Jpsi loop
204+ } // process
205+ }; // struct
207206
208207// / Extends the base table with expression columns.
209208struct HfCandidateCreatorChicExpressions {
@@ -217,8 +216,6 @@ struct HfCandidateCreatorChicMc {
217216 Produces<aod::HfCandChicMcRec> rowMcMatchRec;
218217 Produces<aod::HfCandChicMcGen> rowMcMatchGen;
219218
220- HfHelper hfHelper;
221-
222219 OutputObj<TH1F> hMassJpsiToMuMuMatched{TH1F (" hMassChicToJpsiToMuMuMatched" , " 2-prong candidates;inv. mass (J/#psi (#rightarrow #mu+ #mu-)) (GeV/#it{c}^{2});entries" , 500 , 0 ., 5 .)};
223220 OutputObj<TH1F> hMassEMatched{TH1F (" hMassEMatched" , " 2-prong candidates;inv. mass (J/#psi (#rightarrow #mu+ #mu-)) (GeV/#it{c}^{2});entries" , 500 , 0 ., 5 .)};
224221 OutputObj<TH1F> hEphotonMatched{TH1F (" hEphotonMatched" , " 2-prong candidates;inv. mass (J/#psi (#rightarrow #mu+ #mu-)) (GeV/#it{c}^{2});entries" , 500 , 0 ., 5 .)};
@@ -249,7 +246,7 @@ struct HfCandidateCreatorChicMc {
249246 // chi_c → J/ψ gamma
250247 indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayJpsiDaughters, Pdg::kJPsi , std::array{+kMuonPlus , -kMuonPlus }, true );
251248 if (indexRec > -1 ) {
252- hMassJpsiToMuMuMatched->Fill (hfHelper. invMassJpsiToMuMu (candidate.prong0 ()));
249+ hMassJpsiToMuMuMatched->Fill (HfHelper:: invMassJpsiToMuMu (candidate.prong0 ()));
253250
254251 int indexMother = RecoDecay::getMother (mcParticles, mcParticles.rawIteratorAt (indexRec), Pdg::kChiC1 );
255252 int indexMotherGamma = RecoDecay::getMother (mcParticles, mcParticles.rawIteratorAt (candidate.prong1 ().mcparticleId ()), Pdg::kChiC1 );
@@ -262,7 +259,7 @@ struct HfCandidateCreatorChicMc {
262259 RecoDecay::getDaughters (particleMother, &arrAllDaughtersIndex, std::array{static_cast <int >(kGamma ), static_cast <int >(Pdg::kJPsi )}, 1 );
263260 if (arrAllDaughtersIndex.size () == 2 ) {
264261 flag = 1 << hf_cand_chic::DecayType::ChicToJpsiToMuMuGamma;
265- hMassChicToJpsiToMuMuGammaMatched->Fill (hfHelper. invMassChicToJpsiGamma (candidate));
262+ hMassChicToJpsiToMuMuGammaMatched->Fill (HfHelper:: invMassChicToJpsiGamma (candidate));
266263 }
267264 }
268265 }
@@ -299,8 +296,8 @@ struct HfCandidateCreatorChicMc {
299296
300297 rowMcMatchGen (flag, origin, channel);
301298 } // candidate loop
302- } // process
303- }; // struct
299+ } // process
300+ }; // struct
304301
305302WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
306303{
0 commit comments