Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions PWGDQ/Tasks/tableReader_withAssoc_direct.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#include <TString.h>

#include <algorithm>
#include <iostream>

Check failure on line 60 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <map>
#include <memory>
#include <string>
Expand Down Expand Up @@ -169,8 +169,8 @@
DECLARE_SOA_COLUMN(AmbiguousInBunchPairs, AmbiguousJpsiPairsInBunch, bool);
DECLARE_SOA_COLUMN(AmbiguousOutOfBunchPairs, AmbiguousJpsiPairsOutOfBunch, bool);
DECLARE_SOA_COLUMN(Corrassoc, corrassoc, bool);
DECLARE_SOA_BITMAP_COLUMN(IsMuonSelected, isMuonSelected, 32); //! Muon track decisions (joinable to FwdTrackAssoc)
DECLARE_SOA_COLUMN(MuonAmbiguityInBunch, muonAmbiguityInBunch, int8_t); //! Muon track in-bunch ambiguity
DECLARE_SOA_BITMAP_COLUMN(IsMuonSelected, isMuonSelected, 32); //! Muon track decisions (joinable to FwdTrackAssoc)
DECLARE_SOA_COLUMN(MuonAmbiguityInBunch, muonAmbiguityInBunch, int8_t); //! Muon track in-bunch ambiguity
DECLARE_SOA_COLUMN(MuonAmbiguityOutOfBunch, muonAmbiguityOutOfBunch, int8_t); //! Muon track out of bunch ambiguity
} // namespace dqanalysisflags

Expand All @@ -179,7 +179,7 @@
DECLARE_SOA_TABLE(BarrelTrackCuts, "AOD", "DQANATRKCUTS", dqanalysisflags::IsBarrelSelected);
DECLARE_SOA_TABLE(BarrelAmbiguities, "AOD", "DQBARRELAMB", dqanalysisflags::BarrelAmbiguityInBunch, dqanalysisflags::BarrelAmbiguityOutOfBunch);
DECLARE_SOA_TABLE(Prefilter, "AOD", "DQPREFILTER", dqanalysisflags::IsBarrelSelectedPrefilter);
DECLARE_SOA_TABLE(MuonTrackCuts, "AOD", "DQANAMUONCUTS", dqanalysisflags::IsMuonSelected); //! joinable to FwdTrackAssoc
DECLARE_SOA_TABLE(MuonTrackCuts, "AOD", "DQANAMUONCUTS", dqanalysisflags::IsMuonSelected); //! joinable to FwdTrackAssoc
DECLARE_SOA_TABLE(MuonAmbiguities, "AOD", "DQMUONAMB", dqanalysisflags::MuonAmbiguityInBunch, dqanalysisflags::MuonAmbiguityOutOfBunch); //! joinable to FwdTracks

DECLARE_SOA_TABLE(JPsieeCandidates, "AOD", "DQPSEUDOPROPER",
Expand Down Expand Up @@ -244,7 +244,7 @@
void PrintBitMap(TMap map, int nbits)
{
for (int i = 0; i < nbits; i++) {
cout << ((map & (TMap(1) << i)) > 0 ? "1" : "0");

Check failure on line 247 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
}
}

Expand Down Expand Up @@ -329,7 +329,7 @@

void init(o2::framework::InitContext& context)
{
cout << "AnalysisEventSelection::init() called" << endl;

Check failure on line 332 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
if (context.mOptions.get<bool>("processDummy")) {
return;
}
Expand Down Expand Up @@ -409,13 +409,13 @@
rctChecker.init(fConfigRCT.fConfigRCTLabel);
}

cout << "AnalysisEventSelection::init() completed" << endl;

Check failure on line 412 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
}

template <uint32_t TEventFillMap, typename TEvents>
void runEventSelection(TEvents const& events, BCsWithTimestamps const& bcs)
{
cout << "AnalysisEventSelection::runEventSelection() called with " << events.size() << " events and " << bcs.size() << " BCs" << endl;

Check failure on line 418 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).

if (bcs.size() > 0 && fCurrentRun != bcs.begin().runNumber()) {
if (fConfigPostCalibTPC.fConfigComputeTPCpostCalib) {
Expand Down Expand Up @@ -468,7 +468,7 @@
fCurrentRun = bcs.begin().runNumber();
} // end updating the CCDB quantities at change of run

cout << "Filling TimeFrame statistics histograms" << endl;

Check failure on line 471 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
VarManager::ResetValues(0, VarManager::kNEventWiseVariables);
VarManager::FillTimeFrame(bcs);
VarManager::FillTimeFrame(events);
Expand All @@ -479,7 +479,7 @@
fSelMap.clear();
fBCCollMap.clear();

cout << "Starting event loop for event selection" << endl;

Check failure on line 482 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
for (auto& event : events) {
auto bc = event.template bc_as<BCsWithTimestamps>();

Expand Down Expand Up @@ -532,7 +532,7 @@
}
}

cout << "AnalysisEventSelection::runEventSelection() completed" << endl;

Check failure on line 535 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
}

// Variant of runEventSelection that first checks the DqFilters EMu prefilter bit.
Expand All @@ -541,7 +541,7 @@
template <uint32_t TEventFillMap, typename TEvents>
void runEventSelectionWithFilter(TEvents const& events, BCsWithTimestamps const& bcs)
{
cout << "AnalysisEventSelection::runEventSelectionWithFilter() called with " << events.size() << " events and " << bcs.size() << " BCs" << endl;

Check failure on line 544 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).

if (bcs.size() > 0 && fCurrentRun != bcs.begin().runNumber()) {
if (fConfigPostCalibTPC.fConfigComputeTPCpostCalib) {
Expand Down Expand Up @@ -591,7 +591,7 @@
fCurrentRun = bcs.begin().runNumber();
} // end updating the CCDB quantities at change of run

cout << "Filling TimeFrame statistics histograms" << endl;

Check failure on line 594 in PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
VarManager::ResetValues(0, VarManager::kNEventWiseVariables);
VarManager::FillTimeFrame(bcs);
VarManager::FillTimeFrame(events);
Expand Down Expand Up @@ -1616,7 +1616,6 @@
}
}


// get the muon track selection cuts (from analysis-muon-selection task)
getTaskOptionValue<string>(context, "analysis-muon-selection", "cfgMuonCuts", tempCuts, false);
tempCutsStr = tempCuts;
Expand Down
Loading