@@ -417,7 +417,7 @@ struct cascadeFlow {
417417 return false ;
418418 }
419419
420- if (isFillHisto){
420+ if (isFillHisto) {
421421 histos.fill (HIST (" hNEvents" ), 7.5 );
422422 histos.fill (HIST (" hNEvents" ), 8.5 );
423423 histos.fill (HIST (" hEventNchCorrelation" ), collision.multNTracksPVeta1 (), collision.multNTracksGlobal ());
@@ -1393,7 +1393,7 @@ struct cascadeFlow {
13931393 bool isCascCandidate = 0 ;
13941394 isCascCandidate = IsCascAccepted (casc, negExtra, posExtra, bachExtra, counter);
13951395 histos.fill (HIST (" hCascade" ), counter);
1396- histos.fill (HIST (" hCascadeDauSel" ), ( int ) isCascCandidate);
1396+ histos.fill (HIST (" hCascadeDauSel" ), static_cast < int >( isCascCandidate) );
13971397 if (!isCascCandidate)
13981398 continue ;
13991399
@@ -1724,7 +1724,7 @@ struct cascadeFlow {
17241724 bool isCascCandidate = 0 ;
17251725 isCascCandidate = IsCascAccepted (casc, negExtra, posExtra, bachExtra, counter);
17261726 histos.fill (HIST (" hCascade" ), counter);
1727- histos.fill (HIST (" hCascadeDauSel" ), ( int ) isCascCandidate);
1727+ histos.fill (HIST (" hCascadeDauSel" ), static_cast < int >( isCascCandidate) );
17281728 if (!isCascCandidate)
17291729 continue ;
17301730
@@ -2170,11 +2170,11 @@ struct cascadeFlow {
21702170 histos.fill (HIST (" hLambdaCandidate" ), 3 );
21712171 continue ; // in case of ambiguity between Lambda and AntiLambda, I skip the particle; checked to be zero in range 1.105 - 1.125
21722172 }
2173- if (v0.mLambda () > V0Configs.MinMassLambda && v0.mLambda () < V0Configs.MaxMassLambda )
2173+ if (v0.mLambda () > V0Configs.MinMassLambda && v0.mLambda () < V0Configs.MaxMassLambda ) {
21742174 chargeIndex = 0 ;
2175- else if (v0.mAntiLambda () > V0Configs.MinMassLambda && v0.mAntiLambda () < V0Configs.MaxMassLambda )
2175+ } else if (v0.mAntiLambda () > V0Configs.MinMassLambda && v0.mAntiLambda () < V0Configs.MaxMassLambda ) {
21762176 chargeIndex = 1 ;
2177- else {
2177+ } else {
21782178 chargeIndex = 2 ; // these are bkg candidates
21792179 histos.fill (HIST (" hLambdaCandidate" ), 4 );
21802180 }
@@ -2199,7 +2199,7 @@ struct cascadeFlow {
21992199 if (fillingConfigs.isFillNominalMass )
22002200 massLambda = o2::constants::physics::MassLambda;
22012201
2202- float cosThetaStarProton[nCharges];
2202+ double cosThetaStarProton[nCharges] = { 0 } ;
22032203 ROOT ::Math::PxPyPzMVector lambdaVector, protonVector[nCharges];
22042204 lambdaVector.SetCoordinates (v0.px (), v0.py (), v0.pz (), massLambda);
22052205 ROOT ::Math::Boost lambdaBoost{lambdaVector.BoostToCM ()};
@@ -2380,7 +2380,7 @@ struct cascadeFlow {
23802380 bool isCascCandidate = 0 ;
23812381 isCascCandidate = IsCascAccepted (casc, negExtra, posExtra, bachExtra, counter);
23822382 histos.fill (HIST (" hCascade" ), counter);
2383- histos.fill (HIST (" hCascadeDauSel" ), ( int ) isCascCandidate);
2383+ histos.fill (HIST (" hCascadeDauSel" ), static_cast < int >( isCascCandidate) );
23842384 if (!isCascCandidate)
23852385 continue ;
23862386
@@ -2539,7 +2539,7 @@ struct cascadeFlow {
25392539 bool isCascCandidate = 0 ;
25402540 isCascCandidate = IsCascAccepted (casc, negExtra, posExtra, bachExtra, counter);
25412541 histos.fill (HIST (" hCascade" ), counter);
2542- histos.fill (HIST (" hCascadeDauSel" ), ( int ) isCascCandidate);
2542+ histos.fill (HIST (" hCascadeDauSel" ), static_cast < int >( isCascCandidate) );
25432543 if (!isCascCandidate)
25442544 continue ;
25452545
0 commit comments