@@ -3533,7 +3533,7 @@ struct HfTrackIndexSkimCreatorLfCascades {
35333533 // pt
35343534 if (config.ptMinXicplusLfCasc > 0 .f ) {
35353535 auto pt = RecoDecay::pt (pVecCand);
3536- if (pt <= config.ptMinXicplusLfCasc ) {
3536+ if (pt < config.ptMinXicplusLfCasc ) {
35373537 return false ;
35383538 }
35393539 }
@@ -3824,7 +3824,7 @@ struct HfTrackIndexSkimCreatorLfCascades {
38243824 // Use only bachelor tracks for vertex reconstruction because the Xi track has large uncertainties.
38253825 int nVtxFrom3ProngFitterXiHyp = 0 ;
38263826 try {
3827- auto trackParCovCharmBachelor2 = getTrackParCov (trackCharmBachelor2);
3827+ const auto trackParCovCharmBachelor2 = getTrackParCov (trackCharmBachelor2);
38283828 nVtxFrom3ProngFitterXiHyp = df2.process (trackParCovCharmBachelor1, trackParCovCharmBachelor2);
38293829 } catch (...) {
38303830 if (config.fillHistograms ) {
@@ -3845,10 +3845,10 @@ struct HfTrackIndexSkimCreatorLfCascades {
38453845 // get bachelor momenta at the Xic vertex
38463846 df2.getTrack (0 ).getPxPyPzGlo (pVec1);
38473847 df2.getTrack (1 ).getPxPyPzGlo (pVec2);
3848- auto pVecCand = RecoDecay::pVec (pVec1, pVec2, pVec3);
3849- auto ptCand = RecoDecay::pt (pVecCand);
3850- std::array<float , 3 > primaryVertex{collision.posX (), collision.posY (), collision.posZ ()}; // primary vertex
3851- const auto & secondaryVertex = df2.getPCACandidate (); // secondary vertex
3848+ const auto pVecCand = RecoDecay::pVec (pVec1, pVec2, pVec3);
3849+ const auto ptCand = RecoDecay::pt (pVecCand);
3850+ const std::array<float , 3 > primaryVertex{collision.posX (), collision.posY (), collision.posZ ()}; // primary vertex
3851+ const auto & secondaryVertex = df2.getPCACandidate (); // secondary vertex
38523852
38533853 registry.fill (HIST (" hRejpTStatusXicPlusToXiPiPi" ), 0 );
38543854 if (ptCand >= config.ptMinXicplusLfCasc ) {
@@ -3861,8 +3861,8 @@ struct HfTrackIndexSkimCreatorLfCascades {
38613861
38623862 // fill histograms
38633863 if (config.fillHistograms ) {
3864- std::array<std::array<float , 3 >, 3 > arr3Mom = {pVec1, pVec2, pVec3};
3865- auto mass3Prong = RecoDecay::m (arr3Mom, arrMass3Prong[hf_cand_casc_lf::DecayType3Prong::XicplusToXiPiPi]);
3864+ const std::array<std::array<float , 3 >, 3 > arr3Mom = {pVec1, pVec2, pVec3};
3865+ const auto mass3Prong = RecoDecay::m (arr3Mom, arrMass3Prong[hf_cand_casc_lf::DecayType3Prong::XicplusToXiPiPi]);
38663866 registry.fill (HIST (" hMassXicPlusToXiPiPi" ), mass3Prong);
38673867 registry.fill (HIST (" hPtCutsXicPlusToXiPiPi" ), ptCand);
38683868 }
0 commit comments