Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions PWGDQ/Core/AnalysisCut.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <Rtypes.h>

#include <cstdint>
#include <memory>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "Common/Core/PID/PIDTOFParamService.h"
#include "Common/Core/TableHelper.h"
#include "Common/Core/trackUtilities.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/CollisionAssociationTables.h"
#include "Common/DataModel/EventSelection.h"
#include "Common/DataModel/McCollisionExtra.h"
Expand Down Expand Up @@ -59,12 +60,13 @@

#include <RtypesCore.h>

#include <array>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <iostream>

Check failure on line 69 in PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <iterator>
#include <map>
#include <memory>
Expand Down Expand Up @@ -294,7 +296,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 299 in PWGDQ/Tasks/dqEfficiency_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 +331,7 @@

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

Check failure on line 334 in PWGDQ/Tasks/dqEfficiency_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 @@ -374,13 +376,13 @@
fCCDB->setLocalObjectValidityChecking();
fCCDB->setCreatedNotAfter(fConfigNoLaterThan.value);
fCCDBApi.init(fConfigCcdbUrl.value);
cout << "AnalysisEventSelection::init() completed" << endl;

Check failure on line 379 in PWGDQ/Tasks/dqEfficiency_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, typename TEventsMC>
void runEventSelection(TEvents const& events, BCsWithTimestamps const& bcs, TEventsMC const& mcEvents)
{
cout << "AnalysisEventSelection::runEventSelection() called with " << events.size() << " events and " << bcs.size() << " BCs" << endl;

Check failure on line 385 in PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
if (bcs.size() > 0 && bcs.begin().runNumber() != fCurrentRun) {
std::map<std::string, std::string> metadataRCT, header;
header = fCCDBApi.retrieveHeaders(Form("RCT/Info/RunInformation/%i", bcs.begin().runNumber()), metadataRCT, -1);
Expand All @@ -389,7 +391,7 @@
VarManager::SetSORandEOR(sor, eor);
}

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

Check failure on line 394 in PWGDQ/Tasks/dqEfficiency_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 @@ -402,7 +404,7 @@
fBCCollMap.clear();
// int iEvent = 0;

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

Check failure on line 407 in PWGDQ/Tasks/dqEfficiency_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 @@ -450,13 +452,13 @@
}
}

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

Check failure on line 455 in PWGDQ/Tasks/dqEfficiency_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 publishSelections(TEvents const& events)
{
cout << "AnalysisEventSelection::publishSelections() called" << endl;

Check failure on line 461 in PWGDQ/Tasks/dqEfficiency_withAssoc_direct.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

Use O2 logging (LOG, LOGF, LOGP).
std::map<int64_t, bool> collisionSplittingMap; // key: event global index, value: whether pileup event is a possible splitting

// Reset the fValues array and fill event observables
Expand Down Expand Up @@ -530,7 +532,7 @@
}
eventSel(evSel);
}
cout << "AnalysisEventSelection::publishSelections() completed" << endl;

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

View workflow job for this annotation

GitHub Actions / O2 linter

[logging]

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

void processDirect(MyEvents const& events, BCsWithTimestamps const& bcs, soa::Join<aod::McCollisions, aod::McCollsExtra, aod::MultMCExtras> const& mcEvents)
Expand Down
1 change: 1 addition & 0 deletions PWGDQ/Tasks/dqEnergyCorrelator_direct.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

#include <RtypesCore.h>

#include <algorithm>
#include <array>
#include <chrono>
#include <cstddef>
Expand Down
6 changes: 2 additions & 4 deletions PWGDQ/Tasks/qaMatching.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <CCDB/BasicCCDBManager.h>
#include <CCDB/CcdbApi.h>
#include <CommonConstants/LHCConstants.h>
#include <CommonConstants/MathConstants.h>
#include <CommonConstants/PhysicsConstants.h>
#include <DataFormatsParameters/GRPMagField.h>
#include <DetectorsBase/GeometryManager.h>
Expand Down Expand Up @@ -57,17 +58,14 @@
#include <TH1.h>
#include <TH2.h>
#include <TH3.h>
#include <TMath.h>

#include <RtypesCore.h>
#include <TPDGCode.h>

#include <algorithm>
#include <array>
#include <chrono>
#include <cmath>
#include <cstddef>
#include <cstdint>
#include <format>
#include <functional>
#include <map>
#include <memory>
Expand Down
Loading