Skip to content

Commit 0125504

Browse files
authored
Removing debug printouts in tableMakerMC_withassoc (#6678)
1 parent 1fd9d06 commit 0125504

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

PWGDQ/TableProducer/tableMakerMC_withAssoc.cxx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ struct TableMakerMC {
190190

191191
void init(o2::framework::InitContext& context)
192192
{
193-
LOG(info) << "init IN";
194193
DefineCuts();
195194

196195
VarManager::SetDefaultVarNames();
@@ -318,7 +317,6 @@ struct TableMakerMC {
318317
// skim MC collisions
319318
// NOTE: So far, all MC collisions are skimmed. In case there will be filtering based on MC collisions,
320319
// one has to do a mapping of the old vs new indices so that the skimmed labels are properly updated.
321-
LOG(info) << "skimMCCollisions IN";
322320
VarManager::ResetValues(0, VarManager::kNVars);
323321

324322
for (auto& mcCollision : mcCollisions) {
@@ -328,7 +326,6 @@ struct TableMakerMC {
328326
eventMC(mcCollision.generatorsID(), mcCollision.posX(), mcCollision.posY(), mcCollision.posZ(),
329327
mcCollision.t(), mcCollision.weight(), mcCollision.impactParameter());
330328
}
331-
LOG(info) << "skimMCCollisions lastIndex :: " << eventMC.lastIndex();
332329
}
333330

334331
void skimMCParticles(aod::McParticles const& mcTracks, aod::McCollisions const&)
@@ -338,8 +335,6 @@ struct TableMakerMC {
338335
fLabelsMapReversed.clear();
339336
fMCFlags.clear();
340337

341-
LOG(info) << "skimMCParticles IN";
342-
343338
uint16_t mcflags = 0;
344339
int trackCounter = 0;
345340

@@ -384,7 +379,6 @@ struct TableMakerMC {
384379
}
385380
}
386381
} // end loop over mc stack
387-
LOG(info) << "skimMCParticles added particles :: " << fLabelsMap.size();
388382
}
389383

390384
template <uint32_t TEventFillMap, typename TEvents>
@@ -405,8 +399,6 @@ struct TableMakerMC {
405399
int multTracksPV = -1.0;
406400
float centFT0C = -1.0;
407401

408-
LOG(info) << "skimCollisions IN";
409-
410402
for (const auto& collision : collisions) {
411403

412404
for (int i = 0; i < o2::aod::evsel::kNsel; i++) {
@@ -487,8 +479,6 @@ struct TableMakerMC {
487479

488480
fCollIndexMap[collision.globalIndex()] = event.lastIndex();
489481
}
490-
491-
LOG(info) << "skimCollisions event.lastIndex() :: " << event.lastIndex();
492482
}
493483

494484
template <uint32_t TTrackFillMap, typename TEvent, typename TTracks>
@@ -504,8 +494,6 @@ struct TableMakerMC {
504494
uint16_t mcflags = 0;
505495
int trackCounter = fLabelsMap.size();
506496

507-
LOG(info) << "skimTracks IN";
508-
509497
for (const auto& assoc : assocs) {
510498
auto track = assoc.template track_as<TTracks>();
511499

@@ -627,17 +615,13 @@ struct TableMakerMC {
627615
// write the skimmed collision - track association
628616
trackBarrelAssoc(fCollIndexMap[collision.globalIndex()], fTrackIndexMap[track.globalIndex()]);
629617
} // end loop over associations
630-
631-
LOG(info) << "skimTracks track.lastIndex() / trackAssoc.lastIndex() :: " << trackBasic.lastIndex() << " / " << trackBarrelAssoc.lastIndex();
632618
} // end skimTracks
633619

634620
template <uint32_t TMFTFillMap, typename TEvent>
635621
void skimMFT(TEvent const& collision, MFTTracks const& mfts, MFTTrackAssoc const& mftAssocs)
636622
{
637623
// Skim MFT tracks
638624
// So far no cuts are applied here
639-
LOG(info) << "skimMFT IN";
640-
641625
for (const auto& assoc : mftAssocs) {
642626
auto track = assoc.template mfttrack_as<MFTTracks>();
643627

@@ -657,8 +641,6 @@ struct TableMakerMC {
657641
}
658642
mftAssoc(fCollIndexMap[collision.globalIndex()], fMftIndexMap[track.globalIndex()]);
659643
}
660-
661-
LOG(info) << "skimMFT mftTrack.lastIndex()/mftAssoc.lastIndex() :: " << mftTrack.lastIndex() << " / " << mftAssoc.lastIndex();
662644
}
663645

664646
template <uint32_t TMuonFillMap, typename TEvent, typename TMuons>
@@ -668,8 +650,6 @@ struct TableMakerMC {
668650
// Loop over the collision-track associations, recompute track properties depending on the collision assigned, and apply track cuts for selection
669651
// Muons are written only once, even if they constribute to more than one association,
670652
// which means that in the case of multiple associations, the track parameters are wrong and should be computed again at analysis time.
671-
LOG(info) << "skimMuons IN";
672-
673653
uint8_t trackFilteringTag = uint8_t(0);
674654
uint8_t trackTempFilterMap = uint8_t(0);
675655
fFwdTrackIndexMapReversed.clear();
@@ -806,7 +786,6 @@ struct TableMakerMC {
806786
muonLabels(-1, 0, 0);
807787
}
808788
} // end loop over selected muons
809-
LOG(info) << "skimMuons muonBasic.lastIndex()/muonAssoc.lastIndex() :: " << muonBasic.lastIndex() << " / " << muonAssoc.lastIndex();
810789
} // end skimMuons
811790

812791
template <uint32_t TEventFillMap, uint32_t TTrackFillMap, uint32_t TMuonFillMap, uint32_t TMFTFillMap, typename TEvents, typename TTracks,
@@ -816,8 +795,6 @@ struct TableMakerMC {
816795
TTrackAssoc const& trackAssocs, TFwdTrackAssoc const& fwdTrackAssocs, TMFTTrackAssoc const& mftAssocs,
817796
aod::McCollisions const& mcCollisions, aod::McParticles const& mcParticles)
818797
{
819-
LOG(info) << "fullSkimming IN";
820-
821798
if (bcs.size() > 0 && fCurrentRun != bcs.begin().runNumber()) {
822799
if (fIsRun2 == true) {
823800
grpmagrun2 = fCCDB->getForTimeStamp<o2::parameters::GRPObject>(grpmagPathRun2, bcs.begin().timestamp());
@@ -831,7 +808,6 @@ struct TableMakerMC {
831808
}
832809
}
833810
fCurrentRun = bcs.begin().runNumber();
834-
LOG(info) << "fullSkimming CCDB read";
835811
}
836812

837813
// skim MC Collisions
@@ -1042,7 +1018,6 @@ struct TableMakerMC {
10421018
aod::TrackAssoc const& trackAssocs, aod::FwdTrackAssoc const& fwdTrackAssocs, aod::MFTTrackAssoc const& mftAssocs,
10431019
aod::McCollisions const& mcCollisions, aod::McParticles const& mcParticles)
10441020
{
1045-
LOG(info) << "processPP IN";
10461021
fullSkimming<gkEventFillMapWithMults, gkTrackFillMapWithCov, gkMuonFillMapWithCov, gkMFTFillMap>(collisions, bcs, tracksBarrel, tracksMuon, mftTracks, trackAssocs, fwdTrackAssocs, mftAssocs, mcCollisions, mcParticles);
10471022
}
10481023

0 commit comments

Comments
 (0)