Skip to content

Commit 9c5a12c

Browse files
committed
Add extra info on used PVs in the checkV0. Enable debugging by default
1 parent 9e20ed6 commit 9c5a12c

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

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}};
@@ -650,15 +651,18 @@ bool SVertexer::checkV0(const TrackCand& seedP, const TrackCand& seedN, int iP,
650651
watchHit = checkLbl(watchLb0) && checkLbl(watchLb1) && (watchLb0.getEventID() == watchLb1.getEventID() && std::abs(watchLb0.getTrackID() - watchLb1.getTrackID()) == 1);
651652
if (watchHit) {
652653
auto vlist = seedP.vBracket.getOverlap(seedN.vBracket); // indices of vertices shared by both seeds
654+
std::string vlistStr{};
653655
for (int iv = vlist.getMin(); iv <= vlist.getMax(); iv++) {
654656
int vtMCID = mRecoCont->getPrimaryVertexMCLabel(iv).getEventID();
655657
watchHitVtxOK = vtMCID == watchLb0.getEventID();
658+
vlistStr += fmt::format(" {}", iv);
656659
if (watchHitVtxOK) {
657-
break;
660+
vlistStr += "+";
661+
// break;
658662
}
659663
}
660664
if (watchHitVtxOK) {
661-
watchPairRep = fmt::format("watched labels {} of {} and {} of {}, MCVtx={}", watchLb0.asString(), seedP.gid.asString(), watchLb1.asString(), seedN.gid.asString(), watchHitVtxOK);
665+
watchPairRep = fmt::format("watched labels {} of {} and {} of {}, MCVtx={} in {}", watchLb0.asString(), seedP.gid.asString(), watchLb1.asString(), seedN.gid.asString(), watchHitVtxOK, vlistStr);
662666
LOGP(info, "Checking {}", watchPairRep);
663667
}
664668
}

0 commit comments

Comments
 (0)