Skip to content

Commit 5ab6f0e

Browse files
committed
Add extra info on used PVs in the checkV0. Enable debugging by default
1 parent d2aea48 commit 5ab6f0e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Detectors/Vertexing/include/DetectorsVertexing/SVertexer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef O2_S_VERTEXER_H
1616
#define O2_S_VERTEXER_H
1717

18-
// #define _DBGMC_SVERTEXER_
18+
#define _DBGMC_SVERTEXER_
1919

2020
#include "gsl/span"
2121
#include "DataFormatsCalibration/MeanVertexObject.h"

Detectors/Vertexing/src/SVertexer.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ void SVertexer::init()
265265
// std::vector<std::pair<int, int>> vTEID = {{trID0, evID0},{trID1, evID1} ...}.
266266
// It is expected trID0 and trID1 are the labels of MC prongs
267267
// #include "sv_labels_to_watch.inc"
268+
#include "/data0/pp/LHC24af_550916MC1/tf8/dec22.txt"
268269
//
269270
// or just add locally something like
270271
// std::vector<std::pair<int, int>> vTEID = {{930, 63}};
@@ -648,15 +649,18 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP,
648649
watchHit = checkLbl(watchLb0) && checkLbl(watchLb1) && (watchLb0.getEventID() == watchLb1.getEventID() && std::abs(watchLb0.getTrackID() - watchLb1.getTrackID()) == 1);
649650
if (watchHit) {
650651
auto vlist = seedP.vBracket.getOverlap(seedN.vBracket); // indices of vertices shared by both seeds
652+
std::string vlistStr{};
651653
for (int iv = vlist.getMin(); iv <= vlist.getMax(); iv++) {
652654
int vtMCID = mRecoCont->getPrimaryVertexMCLabel(iv).getEventID();
653655
watchHitVtxOK = vtMCID == watchLb0.getEventID();
656+
vlistStr += fmt::format(" {}", iv);
654657
if (watchHitVtxOK) {
655-
break;
658+
vlistStr += "+";
659+
// break;
656660
}
657661
}
658662
if (watchHitVtxOK) {
659-
watchPairRep = fmt::format("watched labels {} of {} and {} of {}, MCVtx={}", watchLb0.asString(), seedP.gid.asString(), watchLb1.asString(), seedN.gid.asString(), watchHitVtxOK);
663+
watchPairRep = fmt::format("watched labels {} of {} and {} of {}, MCVtx={} in {}", watchLb0.asString(), seedP.gid.asString(), watchLb1.asString(), seedN.gid.asString(), watchHitVtxOK, vlistStr);
660664
LOGP(info, "Checking {}", watchPairRep);
661665
}
662666
}

0 commit comments

Comments
 (0)