diff --git a/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx b/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx index 5cb6f07889c..ccc59bc755f 100644 --- a/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx +++ b/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.cxx @@ -52,6 +52,7 @@ #include #include #include +#include #include #include // IWYU pragma: keep (do not replace with Math/Vector4Dfwd.h) @@ -62,6 +63,8 @@ #include #include +#include + #include #include #include @@ -681,9 +684,8 @@ struct PhotonConversionBuilder { phiv = o2::aod::pwgem::dilepton::utils::pairutil::getPhivPair(kfp_track_posProp.GetPx(), kfp_track_posProp.GetPy(), kfp_track_posProp.GetPz(), kfp_track_eleProp.GetPx(), kfp_track_eleProp.GetPy(), kfp_track_eleProp.GetPz(), pos.sign(), ele.sign(), d_bz); psipair = o2::aod::pwgem::dilepton::utils::pairutil::getPsiPair(kfp_track_posProp.GetPx(), kfp_track_posProp.GetPy(), kfp_track_posProp.GetPz(), kfp_track_eleProp.GetPx(), kfp_track_eleProp.GetPy(), kfp_track_eleProp.GetPz()); break; - } else { - LOG(debug) << "Propagation to offset" << offsetR << " cm failed for " << (pPropagatedSuccess ? "negative" : "positive") << " track. Trying smaller offset."; } + LOG(debug) << "Propagation to offset" << offsetR << " cm failed for " << (pPropagatedSuccess ? "negative" : "positive") << " track. Trying smaller offset."; } if (modeTrackPropagation == TrackPropMode::kBoth) { registry.fill(HIST("V0/hPhivPropagationCompare"), phiv, phivFast); diff --git a/PWGEM/PhotonMeson/Utils/PCMUtilities.h b/PWGEM/PhotonMeson/Utils/PCMUtilities.h index b2134c297f6..326a1b2a79a 100644 --- a/PWGEM/PhotonMeson/Utils/PCMUtilities.h +++ b/PWGEM/PhotonMeson/Utils/PCMUtilities.h @@ -30,6 +30,8 @@ #include // IWYU pragma: keep (do not replace with Math/Vector2Dfwd.h) #include +#include + #include #include @@ -113,7 +115,7 @@ template std::array CalculateDCAFast(const o2::track::TrackParametrizationWithError& trk, const o2::math_utils::Point3D& vtx, const float magField) { - std::array dca; + std::array dca{}; // obtain circle from track in x-y plane const o2::track::TrackAuxPar helixPos(trk, magField); @@ -175,7 +177,7 @@ inline std::array getPropMomentumFromTrackHelix(const float s, const T const auto phi = RecoDecay::constrainAngle(track.phi() + dphi + addPhi); // Calculate px,y,z at the new propagated vertex - std::array trackP; + std::array trackP{}; trackP[0] = std::cos(phi) * track.pt(); trackP[1] = std::sin(phi) * track.pt(); trackP[2] = track.tgl() * track.pt();