@@ -80,11 +80,6 @@ struct HfCandidateCreatorXicc {
8080 o2::vertexing::DCAFitterN<2 > df2; // 2-prong vertex fitter to build the Xicc vertex
8181 HfHelper hfHelper;
8282
83- double massPi{0 .};
84- double massK{0 .};
85- double massXic{0 .};
86- double massXicc{0 .};
87-
8883 Filter filterSelectCandidates = (aod::hf_sel_candidate_xic::isSelXicToPKPi >= selectionFlagXic || aod::hf_sel_candidate_xic::isSelXicToPiKP >= selectionFlagXic);
8984
9085 OutputObj<TH1F> hMassXic{TH1F (" hMassXic" , " xic candidates;inv. mass (#pi K #pi) (GeV/#it{c}^{2});entries" , 500 , 1.6 , 2.6 )};
@@ -93,10 +88,6 @@ struct HfCandidateCreatorXicc {
9388
9489 void init (InitContext const &)
9590 {
96- massPi = MassPiPlus;
97- massK = MassKPlus;
98- massXic = MassXiCPlus;
99-
10091 df3.setBz (bz);
10192 df3.setPropagateToPCA (propagateToPCA);
10293 df3.setMaxR (maxR);
@@ -232,17 +223,15 @@ struct HfCandidateCreatorXiccMc {
232223 aod::TracksWMc const &,
233224 aod::McParticles const & mcParticles)
234225 {
235- int indexRec = -1 ;
236226 int8_t sign = 0 ;
237- int8_t flag = 0 ;
238- int8_t origin = 0 ;
239- int8_t debug = 0 ;
227+ int8_t flag;
228+ int8_t origin;
240229
241230 // Match reconstructed candidates.
242231 for (const auto & candidate : candidates) {
232+ int8_t debug = 0 ;
243233 flag = 0 ;
244234 origin = 0 ;
245- debug = 0 ;
246235 auto xicCand = candidate.prong0 ();
247236 auto arrayDaughters = std::array{xicCand.prong0_as <aod::TracksWMc>(),
248237 xicCand.prong1_as <aod::TracksWMc>(),
@@ -252,7 +241,7 @@ struct HfCandidateCreatorXiccMc {
252241 xicCand.prong1_as <aod::TracksWMc>(),
253242 xicCand.prong2_as <aod::TracksWMc>()};
254243 // Ξcc±± → p± K∓ π± π±
255- indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughters, Pdg::kXiCCPlusPlus , std::array{+kProton , -kKPlus , +kPiPlus , +kPiPlus }, true , &sign, 2 );
244+ auto indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughters, Pdg::kXiCCPlusPlus , std::array{+kProton , -kKPlus , +kPiPlus , +kPiPlus }, true , &sign, 2 );
256245 if (indexRec > -1 ) {
257246 // Ξc± → p± K∓ π±
258247 indexRec = RecoDecay::getMatchedMCRec (mcParticles, arrayDaughtersXic, Pdg::kXiCPlus , std::array{+kProton , -kKPlus , +kPiPlus }, true , &sign, 1 );
0 commit comments