Skip to content

Commit d32caba

Browse files
torkjellsdatterIda Torkjellsdatter Storehaugalibuild
authored
[PWGDQ] tableReader_withAssoc: added log messages to intialization to debug HL issue (#11308)
Co-authored-by: Ida Torkjellsdatter Storehaug <idats@eduroam-193-157-176-65.wlan.uio.no> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 2d7b2c5 commit d32caba

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ void PrintBitMap(TMap map, int nbits)
231231

232232
// Analysis task that produces event decisions (analysis cut, in bunch pileup and split collision check) and the Hash table used in event mixing
233233
struct AnalysisEventSelection {
234+
234235
Produces<aod::EventCuts> eventSel;
235236
Produces<aod::MixingHashes> hash;
236237
OutputObj<THashList> fOutputList{"output"};
@@ -267,6 +268,8 @@ struct AnalysisEventSelection {
267268

268269
void init(o2::framework::InitContext& context)
269270
{
271+
LOG(info) << "Starting initialization of AnalysisEventSelection (idstoreh)";
272+
270273
bool isAnyProcessEnabled = context.mOptions.get<bool>("processSkimmed") || context.mOptions.get<bool>("processSkimmedWithZdc") || context.mOptions.get<bool>("processSkimmedWithMultExtra") || context.mOptions.get<bool>("processSkimmedWithMultExtraZdc");
271274
bool isDummyEnabled = context.mOptions.get<bool>("processDummy");
272275

@@ -331,6 +334,7 @@ struct AnalysisEventSelection {
331334
fCCDB->setLocalObjectValidityChecking();
332335
fCCDB->setCreatedNotAfter(fConfigNoLaterThan.value);
333336
fCCDBApi.init(fConfigCcdbUrl.value);
337+
LOG(info) << "Initialization of AnalysisEventSelection finished (idstoreh)";
334338
}
335339

336340
template <uint32_t TEventFillMap, typename TEvents>
@@ -551,6 +555,7 @@ struct AnalysisTrackSelection {
551555

552556
void init(o2::framework::InitContext& context)
553557
{
558+
LOG(info) << "Starting initialization of AnalysisTrackSelection (idstoreh)";
554559
if (context.mOptions.get<bool>("processDummy")) {
555560
return;
556561
}
@@ -600,6 +605,7 @@ struct AnalysisTrackSelection {
600605
fCCDB->setLocalObjectValidityChecking();
601606
fCCDB->setCreatedNotAfter(fConfigNoLaterThan.value);
602607
fCCDBApi.init(fConfigCcdbUrl.value);
608+
LOG(info) << "Initialization of AnalysisTrackSelection finished (idstoreh)";
603609
}
604610

605611
template <uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TEvents, typename TTracks>
@@ -796,6 +802,7 @@ struct AnalysisMuonSelection {
796802

797803
void init(o2::framework::InitContext& context)
798804
{
805+
LOG(info) << "Starting initialization of AnalysisMuonSelection (idstoreh)";
799806
if (context.mOptions.get<bool>("processDummy")) {
800807
return;
801808
}
@@ -847,6 +854,7 @@ struct AnalysisMuonSelection {
847854
if (!o2::base::GeometryManager::isGeometryLoaded()) {
848855
fCCDB->get<TGeoManager>(fConfigGeoPath);
849856
}
857+
LOG(info) << "Initialization of AnalysisMuonSelection finished (idstoreh)";
850858
}
851859

852860
template <uint32_t TEventFillMap, uint32_t TMuonFillMap, typename TEvents, typename TMuons>
@@ -997,6 +1005,7 @@ struct AnalysisPrefilterSelection {
9971005

9981006
void init(o2::framework::InitContext& context)
9991007
{
1008+
LOG(info) << "Starting initialization of AnalysisPrefilterSelection (idstoreh)";
10001009
if (context.mOptions.get<bool>("processDummy")) {
10011010
return;
10021011
}
@@ -1070,6 +1079,7 @@ struct AnalysisPrefilterSelection {
10701079
VarManager::SetUseVars(AnalysisCut::fgUsedVars); // provide the list of required variables so that VarManager knows what to fill
10711080
VarManager::SetupTwoProngDCAFitter(5.0f, true, 200.0f, 4.0f, 1.0e-3f, 0.9f, true); // TODO: get these parameters from Configurables
10721081
// VarManager::SetupTwoProngFwdDCAFitter(5.0f, true, 200.0f, 1.0e-3f, 0.9f, true);
1082+
LOG(info) << "Initialization of AnalysisPrefilterSelection finished (idstoreh)";
10731083
}
10741084

10751085
template <uint32_t TTrackFillMap, typename TTracks>
@@ -1247,6 +1257,7 @@ struct AnalysisSameEventPairing {
12471257

12481258
void init(o2::framework::InitContext& context)
12491259
{
1260+
LOG(info) << "Starting initialization of AnalysisSameEventPairing (idstoreh)";
12501261
fEnableBarrelHistos = context.mOptions.get<bool>("processAllSkimmed") || context.mOptions.get<bool>("processBarrelOnlySkimmed") || context.mOptions.get<bool>("processBarrelOnlyWithCollSkimmed") || context.mOptions.get<bool>("processBarrelOnlySkimmedNoCov") || context.mOptions.get<bool>("processBarrelOnlySkimmedNoCovWithMultExtra");
12511262
fEnableBarrelMixingHistos = context.mOptions.get<bool>("processMixingAllSkimmed") || context.mOptions.get<bool>("processMixingBarrelSkimmed");
12521263
fEnableMuonHistos = context.mOptions.get<bool>("processAllSkimmed") || context.mOptions.get<bool>("processMuonOnlySkimmed") || context.mOptions.get<bool>("processMuonOnlySkimmedMultExtra") || context.mOptions.get<bool>("processMixingMuonSkimmed");
@@ -1344,6 +1355,7 @@ struct AnalysisSameEventPairing {
13441355
}
13451356
}
13461357
}
1358+
LOG(info) << "Initialization of AnalysisSameEventPairing 1 (idstoreh)";
13471359

13481360
// get the muon track selection cuts
13491361
getTaskOptionValue<string>(context, "analysis-muon-selection", "cfgMuonCuts", tempCuts, false);
@@ -1425,6 +1437,8 @@ struct AnalysisSameEventPairing {
14251437
}
14261438
}
14271439

1440+
LOG(info) << "Initialization of AnalysisSameEventPairing 2 (idstoreh)";
1441+
14281442
fCurrentRun = 0;
14291443

14301444
fCCDB->setURL(fConfigCCDB.url.value);
@@ -1486,6 +1500,7 @@ struct AnalysisSameEventPairing {
14861500
VarManager::SetUseVars(fHistMan->GetUsedVars()); // provide the list of required variables so that VarManager knows what to fill
14871501
fOutputList.setObject(fHistMan->GetMainHistogramList());
14881502
}
1503+
LOG(info) << "Finished initialization of AnalysisSameEventPairing (idstoreh)";
14891504
}
14901505

14911506
void initParamsFromCCDB(uint64_t timestamp, int runNumber, bool withTwoProngFitter = true)
@@ -2214,6 +2229,7 @@ struct AnalysisAsymmetricPairing {
22142229

22152230
void init(o2::framework::InitContext& context)
22162231
{
2232+
LOG(info) << "Initialization of AnalysisAsymmetricPairing started (idstoreh)";
22172233
if (context.mOptions.get<bool>("processDummy")) {
22182234
return;
22192235
}
@@ -2442,6 +2458,7 @@ struct AnalysisAsymmetricPairing {
24422458
dqhistograms::AddHistogramsFromJSON(fHistMan, fConfigAddJSONHistograms.value.c_str()); // ad-hoc histograms via JSON
24432459
VarManager::SetUseVars(fHistMan->GetUsedVars()); // provide the list of required variables so that VarManager knows what to fill
24442460
fOutputList.setObject(fHistMan->GetMainHistogramList());
2461+
LOG(info) << "Initialization of AnalysisAsymmetricPairing finished (idstoreh)";
24452462
}
24462463

24472464
void initParamsFromCCDB(uint64_t timestamp, bool isTriplets)
@@ -2919,6 +2936,7 @@ struct AnalysisDileptonTrack {
29192936

29202937
void init(o2::framework::InitContext& context)
29212938
{
2939+
LOG(info) << "Initialization of AnalysisDileptonTrack started (idstoreh)";
29222940
bool isBarrel = context.mOptions.get<bool>("processBarrelSkimmed");
29232941
bool isBarrelME = context.mOptions.get<bool>("processBarrelMixedEvent");
29242942
bool isBarrelAsymmetric = context.mOptions.get<bool>("processDstarToD0Pi");
@@ -2944,6 +2962,7 @@ struct AnalysisDileptonTrack {
29442962

29452963
// For each track/muon selection used to produce dileptons, create a separate histogram directory using the
29462964
// name of the track/muon cut.
2965+
LOG(info) << "Initialization of AnalysisDileptonTrack 1 (idstoreh)";
29472966
if (isBarrel || isMuon || isBarrelAsymmetric) {
29482967
// Get the list of single track and muon cuts computed in the dedicated tasks upstream
29492968
// We need this to know the order in which they were computed, and also to make sure that in this task we do not ask
@@ -2982,7 +3001,7 @@ struct AnalysisDileptonTrack {
29823001
for (int icut = 0; icut < cfgTrackSelection_objArrayTrackCuts->GetEntries(); icut++) {
29833002
fTrackCutNames.push_back(cfgTrackSelection_objArrayTrackCuts->At(icut)->GetName());
29843003
}
2985-
3004+
LOG(info) << "Initialization of AnalysisDileptonTrack 2 (idstoreh)";
29863005
// get the list of associated track cuts to be combined with the dileptons and
29873006
// check that these were computed upstream and create a bit mask
29883007
TObjArray* cfgDileptonTrack_objArrayTrackCuts = nullptr;
@@ -3022,7 +3041,7 @@ struct AnalysisDileptonTrack {
30223041
getTaskOptionValue<string>(context, "analysis-asymmetric-pairing", "cfgPairCuts", cfgPairing_PairCuts, false);
30233042
getTaskOptionValue<string>(context, "analysis-asymmetric-pairing", "cfgCommonTrackCuts", cfgPairing_CommonTrackCuts, false);
30243043
}
3025-
3044+
LOG(info) << "Initialization of AnalysisDileptonTrack 3 (idstoreh)";
30263045
if (cfgPairing_TrackCuts.empty()) {
30273046
LOG(fatal) << "There are no dilepton cuts specified in the upstream in the same-event-pairing or asymmetric-pairing";
30283047
}
@@ -3041,7 +3060,7 @@ struct AnalysisDileptonTrack {
30413060
}
30423061
}
30433062
} // end if (common cuts)
3044-
3063+
LOG(info) << "Initialization of AnalysisDileptonTrack 4 (idstoreh)";
30453064
// Get also the pair cuts specified via the JSON parameters
30463065
if (isBarrelAsymmetric) {
30473066
getTaskOptionValue<string>(context, "analysis-asymmetric-pairing", "cfgPairCutsJSON", cfgPairing_PairCutsJSON, false);
@@ -3068,7 +3087,7 @@ struct AnalysisDileptonTrack {
30683087
} else {
30693088
fNLegCuts = fNCuts;
30703089
}
3071-
3090+
LOG(info) << "Initialization of AnalysisDileptonTrack 5 (idstoreh)";
30723091
// loop over single lepton cuts
30733092
for (int icut = 0; icut < fNLegCuts; ++icut) {
30743093

@@ -3133,6 +3152,7 @@ struct AnalysisDileptonTrack {
31333152

31343153
VarManager::SetUseVars(fHistMan->GetUsedVars());
31353154
fOutputList.setObject(fHistMan->GetMainHistogramList());
3155+
LOG(info) << "Initialization of AnalysisDileptonTrack finished (idstoreh)";
31363156
}
31373157

31383158
// init parameters from CCDB

0 commit comments

Comments
 (0)