Skip to content

Commit

Permalink
endmarkers
Browse files Browse the repository at this point in the history
  • Loading branch information
f3sch committed Nov 9, 2023
1 parent 35f30a6 commit 3219243
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Detectors/Vertexing/include/DetectorsVertexing/SVertexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 10 additions & 3 deletions Detectors/Vertexing/src/SVertexer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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);
Expand Down Expand Up @@ -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~~~~~~~~~~~~~");
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 3219243

Please sign in to comment.