From 3219243cb760dd4a086bf93e7de7d347735f9226 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Thu, 9 Nov 2023 14:30:42 +0100 Subject: [PATCH] endmarkers --- .../include/DetectorsVertexing/SVertexer.h | 2 +- Detectors/Vertexing/src/SVertexer.cxx | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Detectors/Vertexing/include/DetectorsVertexing/SVertexer.h b/Detectors/Vertexing/include/DetectorsVertexing/SVertexer.h index e7d66901c6bf1..be427a8f606a2 100644 --- a/Detectors/Vertexing/include/DetectorsVertexing/SVertexer.h +++ b/Detectors/Vertexing/include/DetectorsVertexing/SVertexer.h @@ -157,7 +157,7 @@ class SVertexer void buildT2V(const o2::globaltracking::RecoContainer& recoTracks); void updateTimeDependentParams(); bool acceptTrack(GIndex gid, const o2::track::TrackParCov& trc); - bool processTPCTrack(const o2::tpc::TrackTPC& trTPC, GIndex gid, int vtxid); + bool processTPCTrack(const o2::tpc::TrackTPC& trTPC, GIndex gid, int vtxid, bool& status); float correctTPCTrack(o2::track::TrackParCov& trc, const o2::tpc::TrackTPC& tTPC, float tmus, float tmusErr) const; static uint64_t getPairIdx(GIndex id1, GIndex id2) diff --git a/Detectors/Vertexing/src/SVertexer.cxx b/Detectors/Vertexing/src/SVertexer.cxx index 512c7ddd3e5e6..ff06664ac8104 100644 --- a/Detectors/Vertexing/src/SVertexer.cxx +++ b/Detectors/Vertexing/src/SVertexer.cxx @@ -483,6 +483,7 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a if (mUseDebug) { writeDebugWithoutTiming(recoData); } + int cTPC{0}; for (int iv = 0; iv < nv; iv++) { const auto& vtref = vtxRefs[iv]; const auto& vtx = mPVertices[iv]; @@ -503,8 +504,12 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a } // unconstrained TPC tracks require special treatment: there is no point in checking DCA to mean vertex since it is not precise, // but we need to create a clone of TPC track constrained to this particular vertex time. - if (processTPCTrack(recoData.getTPCTrack(tvid), tvid, iv)) { - mCounterBuildT2V.inc(BUILDT2V::TPCSPROCESS, tvid, lbl, mD0V0Map, mD1V0Map, mMCParticle); + bool status = false; + if (processTPCTrack(recoData.getTPCTrack(tvid), tvid, iv, status)) { + if (status) { + mCounterBuildT2V.inc(BUILDT2V::TPCSPROCESS, tvid, lbl, mD0V0Map, mD1V0Map, mMCParticle); + ++cTPC; + } continue; } mCounterBuildT2V.inc(BUILDT2V::TPCFPROCESS, tvid, lbl, mD0V0Map, mD1V0Map, mMCParticle); @@ -573,6 +578,7 @@ void SVertexer::buildT2V(const o2::globaltracking::RecoContainer& recoData) // a LOG(info) << "Alignment of TrackCand: " << alignof(TrackCand) << " with size: " << sizeof(TrackCand); LOG(info) << "Collected " << mTracksPool[POS].size() << " positive and " << mTracksPool[NEG].size() << " negative seeds"; + LOG(info) << "Processed unconstrained TPC tracks " << cTPC; if (mUseDebug) { writeDebugWithTiming(recoData); LOGP(info, "~~~~~~~~~Before&After Timing information findable V0s~~~~~~~~~~~~~"); @@ -1242,7 +1248,7 @@ void SVertexer::setNThreads(int n) } //______________________________________________ -bool SVertexer::processTPCTrack(const o2::tpc::TrackTPC& trTPC, GIndex gid, int vtxid) +bool SVertexer::processTPCTrack(const o2::tpc::TrackTPC& trTPC, GIndex gid, int vtxid, bool& status) { if (mSVParams->mTPCTrackMaxX > 0. && trTPC.getX() > mSVParams->mTPCTrackMaxX) { return true; @@ -1271,6 +1277,7 @@ bool SVertexer::processTPCTrack(const o2::tpc::TrackTPC& trTPC, GIndex gid, int if (mUseDebug) { writeDebugV0Candidates(trTPC, gid, vtxid, trLoc); } + status = true; return true; }