Skip to content

Commit 8946987

Browse files
Fixed O2liter errors
1 parent 26ac15b commit 8946987

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

PWGDQ/Tasks/tableReader_withAssoc_direct.cxx

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,12 @@
5757
#include <TString.h>
5858

5959
#include <algorithm>
60-
#include <iostream>
6160
#include <map>
6261
#include <memory>
6362
#include <string>
6463
#include <utility>
6564
#include <vector>
6665

67-
using std::cout;
68-
using std::endl;
6966
using std::string;
7067

7168
using namespace o2;
@@ -240,14 +237,6 @@ constexpr static uint32_t gkMuonFillMapWithCov = VarManager::ObjTypes::Muon | Va
240237
// Global function used to define needed histogram classes
241238
void DefineHistograms(HistogramManager* histMan, TString histClasses, const char* histGroups); // defines histograms for all tasks
242239

243-
template <typename TMap>
244-
void PrintBitMap(TMap map, int nbits)
245-
{
246-
for (int i = 0; i < nbits; i++) {
247-
cout << ((map & (TMap(1) << i)) > 0 ? "1" : "0");
248-
}
249-
}
250-
251240
// Enum containing the ordering of statistics histograms to be written in the QA file
252241
enum ZorroStatHist {
253242
kStatsZorroInfo = 0,
@@ -329,7 +318,6 @@ struct AnalysisEventSelection {
329318

330319
void init(o2::framework::InitContext& context)
331320
{
332-
cout << "AnalysisEventSelection::init() called" << endl;
333321
if (context.mOptions.get<bool>("processDummy")) {
334322
return;
335323
}
@@ -409,13 +397,11 @@ struct AnalysisEventSelection {
409397
rctChecker.init(fConfigRCT.fConfigRCTLabel);
410398
}
411399

412-
cout << "AnalysisEventSelection::init() completed" << endl;
413400
}
414401

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

420406
if (bcs.size() > 0 && fCurrentRun != bcs.begin().runNumber()) {
421407
if (fConfigPostCalibTPC.fConfigComputeTPCpostCalib) {
@@ -468,7 +454,6 @@ struct AnalysisEventSelection {
468454
fCurrentRun = bcs.begin().runNumber();
469455
} // end updating the CCDB quantities at change of run
470456

471-
cout << "Filling TimeFrame statistics histograms" << endl;
472457
VarManager::ResetValues(0, VarManager::kNEventWiseVariables);
473458
VarManager::FillTimeFrame(bcs);
474459
VarManager::FillTimeFrame(events);
@@ -479,7 +464,6 @@ struct AnalysisEventSelection {
479464
fSelMap.clear();
480465
fBCCollMap.clear();
481466

482-
cout << "Starting event loop for event selection" << endl;
483467
for (auto& event : events) {
484468
auto bc = event.template bc_as<BCsWithTimestamps>();
485469

@@ -532,7 +516,6 @@ struct AnalysisEventSelection {
532516
}
533517
}
534518

535-
cout << "AnalysisEventSelection::runEventSelection() completed" << endl;
536519
}
537520

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

546528
if (bcs.size() > 0 && fCurrentRun != bcs.begin().runNumber()) {
547529
if (fConfigPostCalibTPC.fConfigComputeTPCpostCalib) {
@@ -591,7 +573,6 @@ struct AnalysisEventSelection {
591573
fCurrentRun = bcs.begin().runNumber();
592574
} // end updating the CCDB quantities at change of run
593575

594-
cout << "Filling TimeFrame statistics histograms" << endl;
595576
VarManager::ResetValues(0, VarManager::kNEventWiseVariables);
596577
VarManager::FillTimeFrame(bcs);
597578
VarManager::FillTimeFrame(events);
@@ -602,7 +583,6 @@ struct AnalysisEventSelection {
602583
fSelMap.clear();
603584
fBCCollMap.clear();
604585

605-
cout << "Starting event loop for event selection with DqFilter" << endl;
606586
for (auto& event : events) {
607587
// Skip events that did not pass any filterPP selection.
608588
// The bit position depends on filterPP config (fNBarrelCuts + fNMuonCuts + emu_index),
@@ -662,13 +642,11 @@ struct AnalysisEventSelection {
662642
}
663643
}
664644

665-
cout << "AnalysisEventSelection::runEventSelectionWithFilter() completed" << endl;
666645
}
667646

668647
template <uint32_t TEventFillMap, typename TEvents>
669648
void publishSelections(TEvents const& events)
670649
{
671-
cout << "AnalysisEventSelection::publishSelections() called" << endl;
672650
std::map<int64_t, bool> collisionSplittingMap; // key: event global index, value: whether pileup event is a possible splitting
673651

674652
// Reset the fValues array and fill event observables
@@ -743,23 +721,18 @@ struct AnalysisEventSelection {
743721
}
744722
eventSel(evSel);
745723
}
746-
cout << "AnalysisEventSelection::publishSelections() completed" << endl;
747724
}
748725

749726
void processDirect(MyEvents const& events, BCsWithTimestamps const& bcs)
750727
{
751-
cout << "AnalysisEventSelection::processDirect() called" << endl;
752728
runEventSelection<gkEventFillMapWithMults>(events, bcs);
753729
publishSelections<gkEventFillMapWithMults>(events);
754-
cout << "AnalysisEventSelection::processDirect() completed" << endl;
755730
}
756731

757732
void processDirectWithFilter(MyEventsWithDqFilter const& events, BCsWithTimestamps const& bcs)
758733
{
759-
cout << "AnalysisEventSelection::processDirectWithFilter() called" << endl;
760734
runEventSelectionWithFilter<gkEventFillMapWithMults>(events, bcs);
761735
publishSelections<gkEventFillMapWithMults>(events);
762-
cout << "AnalysisEventSelection::processDirectWithFilter() completed" << endl;
763736
}
764737

765738
void processDummy(aod::Collisions&) {}
@@ -801,7 +774,6 @@ struct AnalysisTrackSelection {
801774

802775
void init(o2::framework::InitContext& context)
803776
{
804-
cout << "AnalysisTrackSelection::init() called" << endl;
805777
if (context.mOptions.get<bool>("processDummy"))
806778
return;
807779

@@ -858,13 +830,11 @@ struct AnalysisTrackSelection {
858830
fCCDB->setCreatedNotAfter(fConfigNoLaterThan.value);
859831
fTofResponse->initSetup(fCCDB, context);
860832

861-
cout << "AnalysisTrackSelection::init() completed" << endl;
862833
}
863834

864835
template <uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TEvents, typename TTracks>
865836
void runTrackSelection(TrackAssoc const& assocs, BCsWithTimestamps const& bcs, TEvents const& events, TTracks const& tracks)
866837
{
867-
cout << "AnalysisTrackSelection::runTrackSelection() called" << endl;
868838
// determine if TEvents table contains aod::Collisions
869839
// bool hasCollisions = std::is_same<typename TEvents::BaseType, aod::Collisions>::value;
870840

@@ -900,7 +870,6 @@ struct AnalysisTrackSelection {
900870
trackSel.reserve(assocs.size());
901871
trackAmbiguities.reserve(tracks.size());
902872

903-
cout << "Starting loop over track associations" << endl;
904873

905874
for (auto& assoc : assocs) {
906875
auto event = assoc.template collision_as<TEvents>();
@@ -1006,24 +975,19 @@ struct AnalysisTrackSelection {
1006975
}
1007976
}
1008977

1009-
cout << "AnalysisTrackSelection::runTrackSelection() completed" << endl;
1010978
}
1011979

1012980
void processWithCov(TrackAssoc const& assocs, BCsWithTimestamps const& bcs, MyEventsSelected const& events, MyBarrelTracksWithCov const& tracks)
1013981
{
1014-
cout << "AnalysisTrackSelection::processWithCov() called" << endl;
1015982
runTrackSelection<gkEventFillMapWithMults, gkTrackFillMapWithCov>(assocs, bcs, events, tracks);
1016-
cout << "AnalysisTrackSelection::processWithCov() completed" << endl;
1017983
}
1018984

1019985
void processWithCovTOFService(TrackAssoc const& assocs, BCsWithTimestamps const& bcs, MyEventsSelected const& events, MyBarrelTracksWithCovNoTOF const& tracks)
1020986
{
1021-
cout << "AnalysisTrackSelection::processWithCovTOFService() called" << endl;
1022987
fTofResponse->processSetup(bcs.iteratorAt(0));
1023988
auto tracksWithTOFservice = soa::Attach<MyBarrelTracksWithCovNoTOF, o2::aod::TOFNSigmaDynEl, o2::aod::TOFNSigmaDynPi,
1024989
o2::aod::TOFNSigmaDynKa, o2::aod::TOFNSigmaDynPr>(tracks);
1025990
runTrackSelection<gkEventFillMapWithMults, gkTrackFillMapWithCovNoTOF>(assocs, bcs, events, tracksWithTOFservice);
1026-
cout << "AnalysisTrackSelection::processWithCovTOFService() completed" << endl;
1027991
}
1028992

1029993
void processDummy(MyEvents&) {}
@@ -1052,7 +1016,6 @@ struct AnalysisPrefilterSelection {
10521016

10531017
void init(o2::framework::InitContext& context)
10541018
{
1055-
cout << "AnalysisPrefilterSelection::init() called" << endl;
10561019
if (context.mOptions.get<bool>("processDummy")) {
10571020
return;
10581021
}
@@ -1127,7 +1090,6 @@ struct AnalysisPrefilterSelection {
11271090

11281091
VarManager::SetupTwoProngDCAFitter(5.0f, true, 200.0f, 4.0f, 1.0e-3f, 0.9f, true); // TODO: get these parameters from Configurables
11291092
VarManager::SetupTwoProngFwdDCAFitter(5.0f, true, 200.0f, 1.0e-3f, 0.9f, true);
1130-
cout << "AnalysisPrefilterSelection::init() completed" << endl;
11311093
}
11321094

11331095
template <typename T>
@@ -1178,7 +1140,6 @@ struct AnalysisPrefilterSelection {
11781140

11791141
void processBarrel(MyEvents const& events, soa::Join<aod::TrackAssoc, aod::BarrelTrackCuts> const& assocs, MyBarrelTracksWithCov const& tracks)
11801142
{
1181-
cout << "AnalysisPrefilterSelection::processBarrel() called" << endl;
11821143
fPrefilterMap.clear();
11831144

11841145
for (auto& event : events) {
@@ -1212,7 +1173,6 @@ struct AnalysisPrefilterSelection {
12121173
}
12131174
}
12141175
}
1215-
cout << "AnalysisPrefilterSelection::processBarrel() completed" << endl;
12161176
}
12171177

12181178
void processDummy(MyEvents&)
@@ -1515,7 +1475,6 @@ struct AnalysisSameEventPairing {
15151475

15161476
void init(o2::framework::InitContext& context)
15171477
{
1518-
cout << "AnalysisSameEventPairing::init() called" << endl;
15191478
if (context.mOptions.get<bool>("processDummy")) {
15201479
return;
15211480
}
@@ -1706,12 +1665,10 @@ struct AnalysisSameEventPairing {
17061665
VarManager::SetUseVars(fHistMan->GetUsedVars()); // provide the list of required variables so that VarManager knows what to fill
17071666
fOutputList.setObject(fHistMan->GetMainHistogramList());
17081667

1709-
cout << "AnalysisSameEventPairing::init() completed" << endl;
17101668
}
17111669

17121670
void initParamsFromCCDB(uint64_t timestamp, bool withTwoProngFitter = true)
17131671
{
1714-
cout << "AnalysisSameEventPairing::initParamsFromCCDB() called for timestamp " << timestamp << endl;
17151672
if (fConfigOptions.useRemoteField.value) {
17161673
o2::parameters::GRPMagField* grpmag = fCCDB->getForTimeStamp<o2::parameters::GRPMagField>(fConfigCCDB.grpMagPath, timestamp);
17171674
o2::base::MatLayerCylSet* lut = o2::base::MatLayerCylSet::rectifyPtrFromFile(fCCDB->get<o2::base::MatLayerCylSet>(fConfigCCDB.lutPath));
@@ -1745,7 +1702,6 @@ struct AnalysisSameEventPairing {
17451702
VarManager::SetupTwoProngDCAFitter(fConfigOptions.magField.value, true, 200.0f, 4.0f, 1.0e-3f, 0.9f, fConfigOptions.useAbsDCA.value); // needed because take in varmanager Bz from fgFitterTwoProngBarrel for PhiV calculations
17461703
}
17471704
}
1748-
cout << "AnalysisSameEventPairing::initParamsFromCCDB() completed" << endl;
17491705
}
17501706

17511707
template <typename Events, typename TTracks, typename Tracks>
@@ -1803,7 +1759,6 @@ struct AnalysisSameEventPairing {
18031759
template <bool TTwoProngFitter, int TPairType, uint32_t TEventFillMap, uint32_t TTrackFillMap, typename TEvents, typename TTracks>
18041760
void runSameEventPairing(TEvents const& events, BCsWithTimestamps const& bcs, Preslice<soa::Join<aod::TrackAssoc, aod::BarrelTrackCuts, aod::Prefilter>>& preslice, soa::Join<aod::TrackAssoc, aod::BarrelTrackCuts, aod::Prefilter> const& assocs, TTracks const& tracks)
18051761
{
1806-
cout << "AnalysisSameEventPairing::runSameEventPairing() called" << endl;
18071762
if (events.size() == 0) {
18081763
LOG(warning) << "No events in this TF, going to the next one ...";
18091764
return;
@@ -1986,7 +1941,6 @@ struct AnalysisSameEventPairing {
19861941
} // end loop over pairs of track associations
19871942
} // end loop over events
19881943

1989-
cout << "AnalysisSameEventPairing::runSameEventPairing() completed" << endl;
19901944
}
19911945

19921946
// Template function for electron-muon same-event pairing (barrel x muon, full index policy)
@@ -2108,9 +2062,7 @@ struct AnalysisSameEventPairing {
21082062
soa::Join<aod::TrackAssoc, aod::BarrelTrackCuts, aod::Prefilter> const& barrelAssocs,
21092063
MyBarrelTracksWithCovWithAmbiguities const& barrelTracks)
21102064
{
2111-
cout << "AnalysisSameEventPairing::processBarrelOnly() called" << endl;
21122065
runSameEventPairing<true, VarManager::kDecayToEE, gkEventFillMapWithMults, gkTrackFillMapWithCov>(events, bcs, trackAssocsPerCollision, barrelAssocs, barrelTracks);
2113-
cout << "AnalysisSameEventPairing::processBarrelOnly() completed" << endl;
21142066
}
21152067

21162068
void processElectronMuonDirect(
@@ -2277,7 +2229,6 @@ struct AnalysisDileptonTrack {
22772229
soa::Join<aod::TrackAssoc, aod::BarrelTrackCuts> const& assocs,
22782230
MyBarrelTracksWithCov const& tracks, soa::Filtered<MyDielectronCandidates> const& dileptons)
22792231
{
2280-
std::cout << "AnalysisDileptonTrack::processBarrel() called" << std::endl;
22812232
22822233
if (events.size() == 0) return;
22832234
@@ -2299,7 +2250,6 @@ struct AnalysisDileptonTrack {
22992250
event, bcs, groupedBarrelAssocs, tracks, groupedDielectrons);
23002251
}
23012252
2302-
std::cout << "AnalysisDileptonTrack::processBarrel() completed" << std::endl;
23032253
}
23042254
23052255
void processDummy(MyEvents&) {

0 commit comments

Comments
 (0)