Skip to content

Commit e60e93d

Browse files
committed
PWGDQ:Fix Megalinter related
1 parent 9b5efbe commit e60e93d

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ struct AnalysisEventSelection {
338338

339339
std::map<int64_t, bool> fSelMap; // key: reduced event global index, value: event selection decision
340340
std::map<uint64_t, std::vector<int64_t>> fBCCollMap; // key: global BC, value: vector of reduced event global indices
341-
int fCurrentRun = nullptr;
341+
int fCurrentRun = 0;
342342

343343
void init(o2::framework::InitContext& context)
344344
{
@@ -601,7 +601,7 @@ struct AnalysisTrackSelection {
601601
std::vector<TString> fHistNamesReco;
602602
std::vector<TString> fHistNamesMCMatched;
603603

604-
int fCurrentRun = nullptr; // current run (needed to detect run changes for loading CCDB parameters)
604+
int fCurrentRun = 0; // current run (needed to detect run changes for loading CCDB parameters)
605605

606606
std::map<int64_t, std::vector<int64_t>> fNAssocsInBunch; // key: track global index, value: vector of global index for events associated in-bunch (events that have in-bunch pileup or splitting)
607607
std::map<int64_t, std::vector<int64_t>> fNAssocsOutOfBunch; // key: track global index, value: vector of global index for events associated out-of-bunch (events that have no in-bunch pileup)
@@ -939,8 +939,8 @@ struct AnalysisPrefilterSelection {
939939

940940
std::map<uint32_t, uint32_t> fPrefilterMap;
941941
AnalysisCompositeCut* fPairCut = nullptr;
942-
uint32_t fPrefilterMask = nullptr;
943-
int fPrefilterCutBit = nullptr;
942+
uint32_t fPrefilterMask = 0;
943+
int fPrefilterCutBit = 0;
944944

945945
Preslice<aod::TrackAssoc> trackAssocsPerCollision = aod::track_association::collisionId;
946946

@@ -1206,14 +1206,14 @@ struct AnalysisSameEventPairing {
12061206
std::vector<AnalysisCut*> fMCGenAccCuts;
12071207
bool fUseMCGenAccCut = false;
12081208

1209-
uint32_t fTrackFilterMask = nullptr; // mask for the track cuts required in this task to be applied on the barrel cuts produced upstream
1210-
uint32_t fMuonFilterMask = nullptr; // mask for the muon cuts required in this task to be applied on the muon cuts produced upstream
1211-
int fNCutsBarrel = nullptr;
1212-
int fNCutsMuon = nullptr;
1213-
int fNPairCuts = nullptr;
1209+
uint32_t fTrackFilterMask = 0; // mask for the track cuts required in this task to be applied on the barrel cuts produced upstream
1210+
uint32_t fMuonFilterMask = 0; // mask for the muon cuts required in this task to be applied on the muon cuts produced upstream
1211+
int fNCutsBarrel = 0;
1212+
int fNCutsMuon = 0;
1213+
int fNPairCuts = 0;
12141214
bool fHasTwoProngGenMCsignals = false;
12151215

1216-
bool fEnableBarrelHistos = nullptr;
1216+
bool fEnableBarrelHistos = false;
12171217
// bool fEnableMuonHistos;
12181218

12191219
Preslice<soa::Join<aod::TrackAssoc, aod::BarrelTrackCuts, aod::Prefilter>> trackAssocsPerCollision = aod::track_association::collisionId;
@@ -2337,13 +2337,13 @@ struct AnalysisDileptonTrack {
23372337
Configurable<std::string> fConfigMCGenSignalHadronJSON{"cfgMCGenSignalHadronJSON", "", "generator level hadron signal (JSON format), used for MC level combinatorics"};
23382338
} fConfigMCOptions;
23392339

2340-
int fCurrentRun = nullptr; // needed to detect if the run changed and trigger update of calibrations etc.
2341-
int fNCuts = nullptr;
2342-
int fNLegCuts = nullptr;
2343-
int fNPairCuts = nullptr;
2344-
int fNCommonTrackCuts = nullptr;
2340+
int fCurrentRun = 0; // needed to detect if the run changed and trigger update of calibrations etc.
2341+
int fNCuts = 0;
2342+
int fNLegCuts = 0;
2343+
int fNPairCuts = 0;
2344+
int fNCommonTrackCuts = 0;
23452345
std::map<int, int> fCommonTrackCutMap;
2346-
uint32_t fTrackCutBitMap = nullptr; // track cut bit mask to be used in the selection of tracks associated with dileptons
2346+
uint32_t fTrackCutBitMap = 0; // track cut bit mask to be used in the selection of tracks associated with dileptons
23472347
// vector for single-lepton and track cut names for easy access when calling FillHistogramList()
23482348
std::vector<TString> fTrackCutNames;
23492349
std::vector<TString> fLegCutNames;
@@ -2360,8 +2360,8 @@ struct AnalysisDileptonTrack {
23602360
// Filter filterMuon = aod::dqanalysisflags::isMuonSelected > static_cast<uint32_t>(0);
23612361

23622362
// use two values array to avoid mixing up the quantities
2363-
float* fValuesDilepton = nullptr;
2364-
float* fValuesHadron = nullptr;
2363+
float* fValuesDilepton = 0.0;
2364+
float* fValuesHadron = 0.0;
23652365
HistogramManager* fHistMan = nullptr;
23662366

23672367
std::vector<MCSignal*> fRecMCSignals;

0 commit comments

Comments
 (0)