@@ -48,7 +48,6 @@ using MyBigTracks = aod::BigTracks;
4848
4949// / Reconstruction of heavy-flavour cascade decay candidates
5050struct HFCandidateCreatorCascade {
51-
5251 Produces<aod::HfCandCascBase> rowCandidateBase;
5352
5453 Configurable<double > bZ{" bZ" , 5 ., " magnetic field" };
@@ -138,7 +137,7 @@ struct HFCandidateCreatorCascade {
138137
139138 const auto & secondaryVertex = df.getPCACandidate ();
140139 auto chi2PCA = df.getChi2AtPCACandidate ();
141- auto covMatrixPCA = df.calcPCACovMatrix (). Array ();
140+ auto covMatrixPCA = df.calcPCACovMatrixFlat ();
142141 hCovSVXX->Fill (covMatrixPCA[0 ]); // FIXME: Calculation of errorDecayLength(XY) gives wrong values without this line.
143142 // do I have to call "df.propagateTracksToVertex();"?
144143 auto trackParVarV0 = df.getTrack (0 );
@@ -240,11 +239,10 @@ struct HFCandidateCreatorCascadeMC {
240239 LOG (debug) << " \n " ;
241240 LOG (debug) << " Checking MC for candidate!" ;
242241 LOG (debug) << " Looking for K0s" ;
242+ #ifdef MY_DEBUG
243243 auto indexV0DaughPos = trackV0DaughPos.mcParticleId ();
244244 auto indexV0DaughNeg = trackV0DaughNeg.mcParticleId ();
245245 auto indexBach = bach.mcParticleId ();
246-
247- #ifdef MY_DEBUG
248246 bool isLc = isLcK0SpFunc (indexBach, indexV0DaughPos, indexV0DaughNeg, indexProton, indexK0Spos, indexK0Sneg);
249247 bool isK0SfromLc = isK0SfromLcFunc (indexV0DaughPos, indexV0DaughNeg, indexK0Spos, indexK0Sneg);
250248#endif
@@ -275,7 +273,7 @@ struct HFCandidateCreatorCascadeMC {
275273 // checking that the final daughters (decay depth = 3) are p, pi+, pi-
276274 RecoDecay::getDaughters (particlesMC, particle, &arrDaughLcIndex, arrDaughLcPDGRef, 3 ); // best would be to check the K0S daughters
277275 if (arrDaughLcIndex.size () == 3 ) {
278- for (auto iProng = 0 ; iProng < arrDaughLcIndex.size (); ++iProng) {
276+ for (uint iProng = 0 ; iProng < arrDaughLcIndex.size (); ++iProng) {
279277 auto daughI = particlesMC.iteratorAt (arrDaughLcIndex[iProng]);
280278 arrDaughLcPDG[iProng] = daughI.pdgCode ();
281279 }
0 commit comments