Skip to content

Commit 40f22ce

Browse files
committed
print info on I/O table sizes
1 parent 7daa5b1 commit 40f22ce

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ struct TreeWriterTpcV0 {
422422
aod::pidits::ITSNSigmaEl, aod::pidits::ITSNSigmaPi,
423423
aod::pidits::ITSNSigmaKa, aod::pidits::ITSNSigmaPr>(myTracks);
424424

425+
int nV0Entries{0};
426+
int nCascEntries{0};
427+
425428
for (const auto& collision : collisions) {
426429
if (!isEventSelected(collision, applyEvSel)) {
427430
continue;
@@ -481,7 +484,9 @@ struct TreeWriterTpcV0 {
481484
evaluateOccupancyVariables(dauTrack, occValues);
482485
}
483486
fillSkimmedV0Table<IsCorrectedDeDx, ModeId>(mother, dauTrack, trackQAInstance, existTrkQA, collision, daughter.tpcNSigma, daughter.tofNSigma, daughter.itsNSigma, daughter.tpcExpSignal, daughter.id, runnumber, daughter.dwnSmplFactor, hadronicRate, bcGlobalIndex, bcTimeFrameId, bcBcInTimeFrame, occValues, isGoodRctEvent);
487+
return true;
484488
}
489+
return false;
485490
};
486491

487492
/// Loop over v0 candidates
@@ -493,8 +498,12 @@ struct TreeWriterTpcV0 {
493498
const auto posTrack = v0.posTrack_as<TrksType>();
494499
const auto negTrack = v0.negTrack_as<TrksType>();
495500

496-
fillDaughterTrack(v0, posTrack, v0, true);
497-
fillDaughterTrack(v0, negTrack, v0, false);
501+
if (fillDaughterTrack(v0, posTrack, v0, true)) {
502+
++nV0Entries;
503+
}
504+
if (fillDaughterTrack(v0, negTrack, v0, false)) {
505+
++nV0Entries;
506+
}
498507
}
499508

500509
/// Loop over cascade candidates
@@ -506,9 +515,18 @@ struct TreeWriterTpcV0 {
506515
const auto bachTrack = casc.bachelor_as<TrksType>();
507516
// Omega and antiomega
508517
const auto isDaughterPositive = cascId == MotherAntiOmega ? true : false;
509-
fillDaughterTrack(casc, bachTrack, casc, isDaughterPositive);
518+
if (fillDaughterTrack(casc, bachTrack, casc, isDaughterPositive)) {
519+
++nCascEntries;
520+
}
510521
}
511522
}
523+
LOG(info) << "runV0() summary:";
524+
LOG(info) << "V0 table size = " << myV0s.size();
525+
LOG(info) << "Cascade table size = " << myCascs.size();
526+
LOG(info) << "nV0Entries = " << nV0Entries;
527+
LOG(info) << "nCascEntries = " << nCascEntries;
528+
LOG(info) << "nV0Entries / V0 table size = " << static_cast<double>(nV0Entries) / myV0s.size();
529+
LOG(info) << "nCascEntries / Cascade table size = " << static_cast<double>(nCascEntries) / myCascs.size();
512530
} /// runV0
513531

514532
void processStandard(Colls const& collisions,
@@ -875,6 +893,10 @@ struct TreeWriterTpcTof {
875893
}
876894
} /// Loop tracks
877895
}
896+
LOG(info) << "runTof() summary:";
897+
LOG(info) << "Track table size = " << myTracks.size();
898+
LOG(info) << "nTrackEntries = " << rowTPCTOFTree.lastIndex() + 1;
899+
LOG(info) << "nTrackEntries / Track table size = " << static_cast<double>((rowTPCTOFTree.lastIndex() + 1)) / myTracks.size();
878900
} /// runTof
879901

880902
void processStandard(Colls const& collisions,

0 commit comments

Comments
 (0)