@@ -195,7 +195,7 @@ struct HfCorrelatorLcScHadronsSelection {
195195 }
196196
197197 template <typename TCollision>
198- bool eventSelV0 (TCollision collision)
198+ bool eventSelV0 (TCollision const & collision)
199199 {
200200 if (!collision.sel8 ()) {
201201 return 0 ;
@@ -530,6 +530,8 @@ struct HfCorrelatorLcScHadrons {
530530 registry.add (" hV0LambdaMcRec" , " McRec V0 Lambda candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}" , {HistType::kTH3F , {{axisMassV0}, {axisPtV0}, {axisPtHadron}}});
531531 registry.add (" hV0LambdaReflMcRec" , " McRec V0 Lambda reflected candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}" , {HistType::kTH3F , {{axisMassV0}, {axisPtV0}, {axisPtHadron}}});
532532 registry.add (" hV0LambdaPiKRejMcRec" , " McRec V0 Lambda candidates with #pi K rejection;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}" , {HistType::kTH3F , {{axisMassV0}, {axisPtV0}, {axisPtHadron}}});
533+ registry.add (" hV0PrimLambdaMcRec" , " McRec V0 Lambda candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}" , {HistType::kTH3F , {{axisMassV0}, {axisPtV0}, {axisPtHadron}}});
534+ registry.add (" hV0PrimLambdaReflMcRec" , " McRec V0 Lambda reflected candidates;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}" , {HistType::kTH3F , {{axisMassV0}, {axisPtV0}, {axisPtHadron}}});
533535 registry.add (" hV0LambdaReflPiKRejMcRec" , " McRec V0 Lambda reflected candidates with #pi K rejection;inv. mass (p #pi) (GeV/#it{c}^{2});GeV/#it{c};GeV/#it{c}" , {HistType::kTH3F , {{axisMassV0}, {axisPtV0}, {axisPtHadron}}});
534536 registry.add (" hV0PtPrimLambdaMcGen" , " Mcgen V0 Lambda candidates;GeV/#it{c}" , {HistType::kTH1F , {{axisPtV0}}});
535537
@@ -595,7 +597,7 @@ struct HfCorrelatorLcScHadrons {
595597 }
596598
597599 template <typename Tracktype, typename V0Type>
598- bool isSelectedV0Daughter (Tracktype const & track, V0Type v0, int pid)
600+ bool isSelectedV0Daughter (Tracktype const & track, V0Type const & v0, int pid)
599601 {
600602 if (std::abs (track.eta ()) > cfgCharmCand.etaTrackMax ) {
601603 return false ;
@@ -1151,8 +1153,9 @@ struct HfCorrelatorLcScHadrons {
11511153 entryLcHadronInvMass (massCandHadron, ptCombined);
11521154 entryPairCandCharge (signCand);
11531155 if constexpr (LambdaPart == 0 ) {
1154- if (trkPidFill)
1156+ if (trkPidFill) {
11551157 entryCandHadronPairTrkPID (assoc.tpcNSigmaPr (), assoc.tpcNSigmaKa (), assoc.tpcNSigmaPi (), assoc.tofNSigmaPr (), assoc.tofNSigmaKa (), assoc.tofNSigmaPi ());
1158+ }
11561159 }
11571160 if constexpr (IsMcRec) {
11581161 if (assoc.has_mcParticle ()) {
@@ -1851,8 +1854,8 @@ struct HfCorrelatorLcScHadrons {
18511854 if (cfgCharmCand.pidTrkApplied && (std::abs (particleAssoc.pdgCode ()) != kProton )) {
18521855 continue ; // proton PID
18531856 }
1854- int8_t const chargeLc = pdg->GetParticle (candidate.pdgCode ())->Charge (); // Retrieve charge
1855- int8_t const chargeAssoc = pdg->GetParticle (particleAssoc.pdgCode ())->Charge (); // Retrieve charge
1857+ int8_t const chargeLc = static_cast < int8_t >( pdg->GetParticle (candidate.pdgCode ())->Charge () ); // Retrieve charge
1858+ int8_t const chargeAssoc = static_cast < int8_t >( pdg->GetParticle (particleAssoc.pdgCode ())->Charge () ); // Retrieve charge
18561859 float cent = 100.0 ; // will be updated later
18571860
18581861 int trackOrigin = RecoDecay::getCharmHadronOrigin (mcParticles, particleAssoc, true );
0 commit comments