@@ -59,9 +59,9 @@ struct HfTaskCd {
5959 HfHelper hfHelper;
6060 SliceCache cache;
6161
62- using Collisions = soa::Join<aod::Collisions, aod::EvSels>;
63- using CollisionsWithFT0C = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs>;
64- using CollisionsWithFT0M = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms>;
62+ using CollisionsWEvSel = soa::Join<aod::Collisions, aod::EvSels>;
63+ using CollisionsWithEvSelFT0C = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Cs>;
64+ using CollisionsWithEvSelFT0M = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms>;
6565
6666 using CdCandidates = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelCd>>;
6767
@@ -112,34 +112,33 @@ struct HfTaskCd {
112112 if ((std::accumulate (doprocess.begin (), doprocess.end (), 0 )) != 1 ) {
113113 LOGP (fatal, " no or more than one process function enabled! Please check your configuration!" );
114114 }
115- auto vbins = binsPt;
116115 // / mass candidate
117- registry.add (" Data/hMassVsPtVsNPvContributors" , " 3-prong candidates;inv. mass (de K #pi) (GeV/#it{c}^{2}); p_{T}; Number of PV contributors" , {HistType::kTH3F , {{600 , 1.98 , 2.58 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }, {5000 , 0 ., 10000 .}}});
118- registry.add (" Data/hMassVsPt" , " 3-prong candidates;inv. mass (de K #pi) (GeV/#it{c}^{2}); p_{T}" , {HistType::kTH2F , {{600 , 1.98 , 2.58 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
116+ registry.add (" Data/hMassVsPtVsNPvContributors" , " 3-prong candidates;inv. mass (de K #pi) (GeV/#it{c}^{2}); p_{T}; Number of PV contributors" , {HistType::kTH3F , {{400 , 2.4 , 4.4 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }, {500 , 0 ., 5000 .}}});
117+ registry.add (" Data/hMassVsPt" , " 3-prong candidates;inv. mass (de K #pi) (GeV/#it{c}^{2}); p_{T}" , {HistType::kTH2F , {{400 , 2.4 , 4.4 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
119118 // / DCAxy to prim. vertex prongs
120- registry.add (" Data/hd0VsPtProng0" , " 3-prong candidates;prong 0 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
121- registry.add (" Data/hd0VsPtProng1" , " 3-prong candidates;prong 1 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
122- registry.add (" Data/hd0VsPtProng2" , " 3-prong candidates;prong 2 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
119+ registry.add (" Data/hd0VsPtProng0" , " 3-prong candidates;prong 0 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
120+ registry.add (" Data/hd0VsPtProng1" , " 3-prong candidates;prong 1 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
121+ registry.add (" Data/hd0VsPtProng2" , " 3-prong candidates;prong 2 DCAxy to prim. vertex (cm);entries" , {HistType::kTH2F , {{600 , -0.4 , 0.4 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
123122 // / decay length candidate
124- registry.add (" Data/hDecLengthVsPt" , " 3-prong candidates;decay length (cm);entries" , {HistType::kTH2F , {{400 , 0 ., 1 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
123+ registry.add (" Data/hDecLengthVsPt" , " 3-prong candidates;decay length (cm);entries" , {HistType::kTH2F , {{400 , 0 ., 1 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
125124 // / decay length xy candidate
126- registry.add (" Data/hDecLengthxyVsPt" , " 3-prong candidates;decay length xy(cm);entries" , {HistType::kTH2F , {{400 , 0 ., 1 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
125+ registry.add (" Data/hDecLengthxyVsPt" , " 3-prong candidates;decay length xy(cm);entries" , {HistType::kTH2F , {{400 , 0 ., 1 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
127126 // / cosine of pointing angle
128- registry.add (" Data/hCPAVsPt" , " 3-prong candidates;cosine of pointing angle;entries" , {HistType::kTH2F , {{110 , -1.1 , 1.1 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
127+ registry.add (" Data/hCPAVsPt" , " 3-prong candidates;cosine of pointing angle;entries" , {HistType::kTH2F , {{110 , -1.1 , 1.1 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
129128 // / cosine of pointing angle xy
130- registry.add (" Data/hCPAxyVsPt" , " 3-prong candidates;cosine of pointing angle xy;entries" , {HistType::kTH2F , {{110 , -1.1 , 1.1 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
129+ registry.add (" Data/hCPAxyVsPt" , " 3-prong candidates;cosine of pointing angle xy;entries" , {HistType::kTH2F , {{110 , -1.1 , 1.1 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
131130 // / Chi 2 PCA to sec. vertex
132- registry.add (" Data/hDca2VsPt" , " 3-prong candidates;prong Chi2PCA to sec. vertex (cm);entries" , {HistType::kTH2F , {{400 , 0 ., 20 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
131+ registry.add (" Data/hDca2VsPt" , " 3-prong candidates;prong Chi2PCA to sec. vertex (cm);entries" , {HistType::kTH2F , {{400 , 0 ., 20 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
133132 // / eta
134- registry.add (" Data/hEtaVsPt" , " 3-prong candidates;candidate #it{#eta};entries" , {HistType::kTH2F , {{100 , -2 ., 2 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
133+ registry.add (" Data/hEtaVsPt" , " 3-prong candidates;candidate #it{#eta};entries" , {HistType::kTH2F , {{100 , -2 ., 2 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
135134 // / phi
136- registry.add (" Data/hPhiVsPt" , " 3-prong candidates;candidate #it{#Phi};entries" , {HistType::kTH2F , {{100 , 0 ., 6.3 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
135+ registry.add (" Data/hPhiVsPt" , " 3-prong candidates;candidate #it{#Phi};entries" , {HistType::kTH2F , {{100 , 0 ., 6.3 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
137136 // / selection status
138- registry.add (" hSelectionStatus" , " 3-prong candidates;selection status;entries" , {HistType::kTH2F , {{5 , -0.5 , 4.5 }, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
137+ registry.add (" hSelectionStatus" , " 3-prong candidates;selection status;entries" , {HistType::kTH2F , {{5 , -0.5 , 4.5 }, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
139138 // / impact parameter error
140- registry.add (" Data/hImpParErrProng0" , " 3-prong candidates;prong 0 impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
141- registry.add (" Data/hImpParErrProng1" , " 3-prong candidates;prong 1 impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
142- registry.add (" Data/hImpParErrProng2" , " 3-prong candidates;prong 2 impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 .}, {vbins , " #it{p}_{T} (GeV/#it{c})" }}});
139+ registry.add (" Data/hImpParErrProng0" , " 3-prong candidates;prong 0 impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
140+ registry.add (" Data/hImpParErrProng1" , " 3-prong candidates;prong 1 impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
141+ registry.add (" Data/hImpParErrProng2" , " 3-prong candidates;prong 2 impact parameter error (cm);entries" , {HistType::kTH2F , {{100 , -1 ., 1 .}, {binsPt , " #it{p}_{T} (GeV/#it{c})" }}});
143142
144143 if (fillTHn) {
145144 const AxisSpec thnAxisMass{thnConfigAxisMass, " inv. mass (de K #pi) (GeV/#it{c}^{2})" };
@@ -152,7 +151,7 @@ struct HfTaskCd {
152151 const AxisSpec thnAxisCPA{thnConfigAxisCPA, " cosine of pointing angle" };
153152 const AxisSpec thnAxisCentrality{thnConfigAxisCentrality, " centrality (FT0C)" };
154153
155- auto axesStd = std::vector{thnAxisMass, thnAxisPt, thnAxisPtProng0, thnAxisPtProng1, thnAxisPtProng2, thnAxisChi2PCA, thnAxisDecLength, thnAxisCPA, thnAxisCentrality};
154+ std::vector axesStd {thnAxisMass, thnAxisPt, thnAxisPtProng0, thnAxisPtProng1, thnAxisPtProng2, thnAxisChi2PCA, thnAxisDecLength, thnAxisCPA, thnAxisCentrality};
156155 registry.add (" hnCdVars" , " THn for Reconstructed Cd candidates for data" , HistType::kTHnSparseF , axesStd);
157156 }
158157 }
@@ -247,23 +246,23 @@ struct HfTaskCd {
247246 }
248247 }
249248
250- void processDataStd (Collisions const & collisions,
249+ void processDataStd (CollisionsWEvSel const & collisions,
251250 CdCandidates const & selectedCdCandidates,
252251 aod::Tracks const &)
253252 {
254253 runAnalysisPerCollisionData (collisions, selectedCdCandidates);
255254 }
256255 PROCESS_SWITCH (HfTaskCd, processDataStd, " Process Data with the standard method" , true );
257256
258- void processDataStdWithFT0C (CollisionsWithFT0C const & collisions,
257+ void processDataStdWithFT0C (CollisionsWithEvSelFT0C const & collisions,
259258 CdCandidates const & selectedCdCandidates,
260259 aod::Tracks const &)
261260 {
262261 runAnalysisPerCollisionData (collisions, selectedCdCandidates);
263262 }
264263 PROCESS_SWITCH (HfTaskCd, processDataStdWithFT0C, " Process real data with the standard method and with FT0C centrality" , false );
265264
266- void processDataStdWithFT0M (CollisionsWithFT0M const & collisions,
265+ void processDataStdWithFT0M (CollisionsWithEvSelFT0M const & collisions,
267266 CdCandidates const & selectedCdCandidates,
268267 aod::Tracks const &)
269268 {
0 commit comments