@@ -425,10 +425,8 @@ struct cascadeFlow {
425425 // return false;
426426 // }
427427
428- if (isFillHisto)
429- histos.fill (HIST (" hNEvents" ), 8.5 );
430-
431428 if (isFillHisto) {
429+ histos.fill (HIST (" hNEvents" ), 8.5 );
432430 histos.fill (HIST (" hEventNchCorrelation" ), collision.multNTracksPVeta1 (), collision.multNTracksGlobal ());
433431 histos.fill (HIST (" hEventPVcontributorsVsCentrality" ), collision.centFT0C (), collision.multNTracksPVeta1 ());
434432 histos.fill (HIST (" hEventGlobalTracksVsCentrality" ), collision.centFT0C (), collision.multNTracksGlobal ());
@@ -568,13 +566,12 @@ struct cascadeFlow {
568566
569567 int currentRunNumber = -999 ;
570568 int lastRunNumber = -999 ;
571- TProfile3D* shiftprofile;
572- TProfile3D* shiftprofileFT0C;
573- TProfile3D* shiftprofileFV0A;
574- TProfile3D* shiftprofileFT0A;
575- TProfile3D* shiftprofileTPCL;
576- TProfile3D* shiftprofileTPCR;
577- std::string fullCCDBShiftCorrPath;
569+ TProfile3D* shiftprofile = nullptr ;
570+ TProfile3D* shiftprofileFT0C = nullptr ;
571+ TProfile3D* shiftprofileFV0A = nullptr ;
572+ TProfile3D* shiftprofileFT0A = nullptr ;
573+ TProfile3D* shiftprofileTPCL = nullptr ;
574+ TProfile3D* shiftprofileTPCR = nullptr ;
578575 std::string fullCCDBShiftCorrPathFT0C;
579576 std::string fullCCDBShiftCorrPathFV0A;
580577 std::string fullCCDBShiftCorrPathFT0A;
@@ -640,16 +637,16 @@ struct cascadeFlow {
640637 }
641638
642639 // objects to use for acceptance correction
643- TH2F * hAcceptanceXi;
644- TH2F * hAcceptanceOmega;
645- TH2F * hAcceptanceLambda;
646- TH2F * hAcceptancePrimaryLambda;
640+ TH2F * hAcceptanceXi = nullptr ;
641+ TH2F * hAcceptanceOmega = nullptr ;
642+ TH2F * hAcceptanceLambda = nullptr ;
643+ TH2F * hAcceptancePrimaryLambda = nullptr ;
647644
648645 // objects to use for resolution correction
649- TH1F * hReso;
646+ TH1F * hReso = nullptr ;
650647
651648 // objects to use for centrality weight
652- TH1F * hCentWeight;
649+ TH1F * hCentWeight = nullptr ;
653650
654651 HistogramRegistry histos{" histos" , {}, OutputObjHandlingPolicy::AnalysisObject, false , true };
655652 HistogramRegistry histosMCGen{" histosMCGen" , {}, OutputObjHandlingPolicy::AnalysisObject, false , true };
@@ -1480,7 +1477,7 @@ struct cascadeFlow {
14801477 // polarization variables
14811478 double masses[2 ]{o2::constants::physics::MassXiMinus, o2::constants::physics::MassOmegaMinus};
14821479 ROOT ::Math::PxPyPzMVector cascadeVector[2 ], lambdaVector, protonVector;
1483- float cosThetaStarLambda[2 ], cosThetaStarProton;
1480+ double cosThetaStarLambda[2 ], cosThetaStarProton;
14841481
14851482 double massLambda = casc.mLambda ();
14861483 if (fillingConfigs.isFillNominalMass )
@@ -1805,7 +1802,7 @@ struct cascadeFlow {
18051802 // polarization variables
18061803 double masses[nParticles]{o2::constants::physics::MassXiMinus, o2::constants::physics::MassOmegaMinus};
18071804 ROOT ::Math::PxPyPzMVector cascadeVector[nParticles], lambdaVector, protonVector;
1808- float cosThetaStarLambda[nParticles], cosThetaStarProton;
1805+ double cosThetaStarLambda[nParticles], cosThetaStarProton;
18091806
18101807 double massLambda = casc.mLambda ();
18111808 if (fillingConfigs.isFillNominalMass )
@@ -2134,7 +2131,6 @@ struct cascadeFlow {
21342131 centWeight = hCentWeight->GetBinContent (centBin);
21352132 }
21362133
2137- std::vector<float > bdtScore[nParticles];
21382134 for (auto const & v0 : V0s) {
21392135
21402136 // / Add some minimal cuts for single track variables (min number of TPC clusters)
0 commit comments