Skip to content

Commit 2748ad4

Browse files
committed
Fix initialisations
1 parent 7966939 commit 2748ad4

32 files changed

+50
-50
lines changed

PWGHF/D2H/TableProducer/candidateCreatorBToJpsiReduced.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ struct HfCandidateCreatorBToJpsiReduced {
259259
trackParCovLf0.propagateToDCA(primaryVertex, bz, &dcaKaon);
260260

261261
// get uncertainty of the decay length
262-
double phi, theta;
262+
double phi{}, theta{};
263263
// getPointDirection modifies phi and theta
264264
getPointDirection(std::array{collision.posX(), collision.posY(), collision.posZ()}, secondaryVertexBplus, phi, theta);
265265
auto errorDecayLength = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, theta) + getRotatedCovMatrixXX(covMatrixPCA, phi, theta));
@@ -332,7 +332,7 @@ struct HfCandidateCreatorBToJpsiReduced {
332332
trackParCovLf1.propagateToDCA(primaryVertex, bz, &dcaTrackLf1);
333333

334334
// get uncertainty of the decay length
335-
double phi, theta;
335+
double phi{}, theta{};
336336
// getPointDirection modifies phi and theta
337337
getPointDirection(std::array{collision.posX(), collision.posY(), collision.posZ()}, secondaryVertexBs, phi, theta);
338338
auto errorDecayLength = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, theta) + getRotatedCovMatrixXX(covMatrixPCA, phi, theta));

PWGHF/D2H/TableProducer/candidateCreatorBplusReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ struct HfCandidateCreatorBplusReduced {
184184
trackParCovPi.propagateToDCA(primaryVertex, bz, &dcaPion);
185185

186186
// get uncertainty of the decay length
187-
double phi, theta;
187+
double phi{}, theta{};
188188
// getPointDirection modifies phi and theta
189189
getPointDirection(std::array{collision.posX(), collision.posY(), collision.posZ()}, secondaryVertexBplus, phi, theta);
190190
auto errorDecayLength = std::sqrt(getRotatedCovMatrixXX(covMatrixPV, phi, theta) + getRotatedCovMatrixXX(covMatrixPCA, phi, theta));

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ struct HfDataCreatorCharmHadPiReduced {
209209
o2::hf_evsel::HfEventSelectionMc hfEvSelMc;
210210

211211
// CCDB service
212-
Service<o2::ccdb::BasicCCDBManager> ccdb;
212+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
213213
o2::base::Propagator::MatCorrType noMatCorr = o2::base::Propagator::MatCorrType::USEMatCorrNONE;
214214
int runNumber{};
215215

PWGHF/D2H/TableProducer/dataCreatorCharmResoToD0Reduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct HfDataCreatorCharmResoToD0Reduced {
102102

103103
// CCDB service
104104
o2::ccdb::CcdbApi ccdbApi;
105-
Service<o2::ccdb::BasicCCDBManager> ccdb;
105+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
106106
double bz{0.};
107107
int runNumber{0}; // needed to detect if the run changed and trigger update of calibrations etc.
108108

PWGHF/D2H/TableProducer/dataCreatorCharmResoToDplusReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct HfDataCreatorCharmResoToDplusReduced {
102102

103103
// CCDB service
104104
o2::ccdb::CcdbApi ccdbApi;
105-
Service<o2::ccdb::BasicCCDBManager> ccdb;
105+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
106106
double bz{0.};
107107
int runNumber{0}; // needed to detect if the run changed and trigger update of calibrations etc.
108108

PWGHF/D2H/TableProducer/dataCreatorCharmResoToDstarReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct HfDataCreatorCharmResoToDstarReduced {
101101

102102
// CCDB service
103103
o2::ccdb::CcdbApi ccdbApi;
104-
Service<o2::ccdb::BasicCCDBManager> ccdb;
104+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
105105
double bz{0.};
106106
int runNumber{0}; // needed to detect if the run changed and trigger update of calibrations etc.
107107

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct HfDataCreatorJpsiHadReduced {
192192
TrackSelectorEl selectorElectron;
193193

194194
// CCDB service
195-
Service<o2::ccdb::BasicCCDBManager> ccdb;
195+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
196196
// O2DatabasePDG service
197197
Service<o2::framework::O2DatabasePDG> pdg;
198198

PWGHF/D2H/Tasks/taskCharmPolarisation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ struct HfTaskCharmPolarisation {
222222
SliceCache cache;
223223
EventPlaneHelper epHelper; // event plane helper
224224
HfEventSelection hfEvSel; // event selection and monitoring
225-
o2::framework::Service<o2::ccdb::BasicCCDBManager> ccdb;
225+
o2::framework::Service<o2::ccdb::BasicCCDBManager> ccdb{};
226226

227227
using CollisionsWithMcLabels = soa::SmallGroups<soa::Join<aod::Collisions, aod::McCollisionLabels>>;
228228
using CollisionsWithMcLabelsAndCent = soa::SmallGroups<soa::Join<aod::Collisions, aod::McCollisionLabels, aod::CentFT0Ms, aod::CentFT0Cs>>;

PWGHF/D2H/Tasks/taskD0.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct HfTaskD0 {
104104
ctpRateFetcher mRateFetcher;
105105

106106
SliceCache cache;
107-
Service<o2::ccdb::BasicCCDBManager> ccdb;
107+
Service<o2::ccdb::BasicCCDBManager> ccdb{};
108108

109109
using D0Candidates = soa::Filtered<soa::Join<aod::HfCand2Prong, aod::HfSelD0>>;
110110
using D0CandidatesMc = soa::Filtered<soa::Join<aod::HfCand2Prong, aod::HfSelD0, aod::HfCand2ProngMcRec>>;

PWGHF/D2H/Tasks/taskDirectedFlowCharmHadrons.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct HfTaskDirectedFlowCharmHadrons {
7474
EventPlaneHelper epHelper;
7575
SliceCache cache;
7676
HfEventSelection hfEvSel; // event selection and monitoring
77-
o2::framework::Service<o2::ccdb::BasicCCDBManager> ccdb;
77+
o2::framework::Service<o2::ccdb::BasicCCDBManager> ccdb{};
7878

7979
using CandDplusDataWMl = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelDplusToPiKPi, aod::HfMlDplusToPiKPi>>;
8080
using CandDplusData = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelDplusToPiKPi>>;

0 commit comments

Comments
 (0)