Skip to content

Commit 4fcf97d

Browse files
author
Preet Pati
committed
Megalinter error fixes
1 parent dd91479 commit 4fcf97d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/corrFit.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ struct CorrFit {
209209
// FT0 geometry
210210
o2::ft0::Geometry ft0Det;
211211
static constexpr uint64_t Ft0IndexA = 96;
212-
std::vector<o2::detectors::AlignParam>* offsetFT0;
212+
std::vector<o2::detectors::AlignParam>* offsetFT0 = nullptr;
213213
std::vector<float> cstFT0RelGain{};
214214

215215
// Corrections
@@ -914,7 +914,7 @@ struct CorrFit {
914914
if (mEfficiency == nullptr) {
915915
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgEfficiency.value.c_str());
916916
}
917-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiency.value.c_str(), (void*)mEfficiency);
917+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiency.value.c_str(), static_cast<void*>(mEfficiency));
918918
}
919919
if (cfgEfficiencyNch.value.empty() == false) {
920920
if (cfgLocalEfficiencyNch) {
@@ -927,14 +927,14 @@ struct CorrFit {
927927
if (!mEfficiencyNch) {
928928
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgEfficiencyNch.value.c_str());
929929
}
930-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiencyNch.value.c_str(), (void*)mEfficiencyNch);
930+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiencyNch.value.c_str(), static_cast<void*>(mEfficiencyNch));
931931
}
932932
if (cfgCentralityWeight.value.empty() == false) {
933933
mCentralityWeight = ccdb->getForTimeStamp<TH1D>(cfgCentralityWeight, timestamp);
934934
if (mCentralityWeight == nullptr) {
935935
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgCentralityWeight.value.c_str());
936936
}
937-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgCentralityWeight.value.c_str(), (void*)mCentralityWeight);
937+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgCentralityWeight.value.c_str(), static_cast<void*>(mCentralityWeight));
938938
}
939939
correctionsLoaded = true;
940940
}

PWGCF/TwoParticleCorrelations/Tasks/corrReso.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ struct CorrReso {
205205
// FT0 geometry
206206
o2::ft0::Geometry ft0Det;
207207
static constexpr uint64_t Ft0IndexA = 96;
208-
std::vector<o2::detectors::AlignParam>* offsetFT0;
208+
std::vector<o2::detectors::AlignParam>* offsetFT0 = nullptr;
209209
std::vector<float> cstFT0RelGain{};
210210

211211
// Corrections
@@ -944,7 +944,7 @@ struct CorrReso {
944944
if (mEfficiency == nullptr) {
945945
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgEfficiency.value.c_str());
946946
}
947-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiency.value.c_str(), (void*)mEfficiency);
947+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiency.value.c_str(), static_cast<void*>(mEfficiency));
948948
}
949949
if (cfgEfficiencyNch.value.empty() == false) {
950950
if (cfgLocalEfficiencyNch) {
@@ -957,14 +957,14 @@ struct CorrReso {
957957
if (!mEfficiencyNch) {
958958
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgEfficiencyNch.value.c_str());
959959
}
960-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiencyNch.value.c_str(), (void*)mEfficiencyNch);
960+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgEfficiencyNch.value.c_str(), static_cast<void*>(mEfficiencyNch));
961961
}
962962
if (cfgCentralityWeight.value.empty() == false) {
963963
mCentralityWeight = ccdb->getForTimeStamp<TH1D>(cfgCentralityWeight, timestamp);
964964
if (mCentralityWeight == nullptr) {
965965
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgCentralityWeight.value.c_str());
966966
}
967-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgCentralityWeight.value.c_str(), (void*)mCentralityWeight);
967+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgCentralityWeight.value.c_str(), static_cast<void*>(mCentralityWeight));
968968
}
969969
correctionsLoaded = true;
970970
}

0 commit comments

Comments
 (0)