CbmRoot
Loading...
Searching...
No Matches
KfpV0FinderMonitor.h
Go to the documentation of this file.
1/* Copyright (C) 2025 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#pragma once
11
12#include "CaMonitor.h"
13
14namespace cbm::algo::kfp
15{
41
44 /* clang-format off */
57 /* clang-format on */
58
61
64 class V0FinderMonitor : public ca::Monitor<ECounter, ETimer> {
65 public:
67 V0FinderMonitor() : ca::Monitor<ECounter, ETimer>("V0 finder monitor")
68 {
70 SetCounterName(ECounter::TracksSelected, "pre-selected tracks");
71 SetCounterName(ECounter::TracksInfiniteParam, "tracks satisfying PID selection");
72 SetCounterName(ECounter::TracksWoTofHits, "tracks w/o TOF hits");
73 SetCounterName(ECounter::TracksWNegativeTofHitTime, "tracks w/ negative TOF time");
74 SetCounterName(ECounter::TracksWoStsHits, "tracks w/o STS hits");
75 SetCounterName(ECounter::TracksWoPid, "tracks w/o PID");
76 SetCounterName(ECounter::TracksWoMomentum, "tracks w/o momentum");
78 SetCounterName(ECounter::PionsDca, "raw pion candidates");
79 SetCounterName(ECounter::ProtonsDca, "raw proton candidates");
80 SetCounterName(ECounter::PrimaryDca, "number of primary particles");
81 SetCounterName(ECounter::Pions, "pion candidates");
82 SetCounterName(ECounter::Protons, "proton candidates");
85 SetCounterName(ECounter::EventsLambdaCand, "events passed to KFP");
86 SetCounterName(ECounter::KfpEventsLambdaCand, "events w/ lambda candidates");
88
89 SetTimerName(ETimer::ProcessEvent, "event processing");
90 SetTimerName(ETimer::CollectT0, "t0 container preparation");
91 SetTimerName(ETimer::CollectDca, "DCA container preparation");
92 SetTimerName(ETimer::FindV0Candidates, "V0-candidates finding");
93 SetTimerName(ETimer::PrepareContainers, "Container initialization");
94 SetTimerName(ETimer::PreselectTracks, "Track preselection");
95 SetTimerName(ETimer::InitKfp, "KFParticleFinder initialization");
96 SetTimerName(ETimer::ExecKfp, "KFParticleFinder execution");
97
99 }
100
101 private:
103 template<typename Archive>
104 void serialize(Archive& ar, const unsigned int /*version*/)
105 {
106 ar& boost::serialization::base_object<ca::Monitor<ECounter, ETimer>>(*this);
107 }
108 };
109
110} // namespace cbm::algo::kfp
CA Tracking monitor class.
A monitor for the V0Finder.
Monitor class for the CA tracking.
Definition CaMonitor.h:35
void SetCounterName(ECounter key, std::string_view name)
Definition CaMonitor.h:115
void SetTimerName(ETimer key, std::string_view name)
Definition CaMonitor.h:127
void SetRatioKeys(const std::vector< ECounter > &vKeys)
Definition CaMonitor.h:111
V0FinderMonitor()
Default constructor.
void serialize(Archive &ar, const unsigned int)
friend class boost::serialization::access
TODO: SZh 8.11.2022: add selection of parameterisation.
Definition CaBranch.h:14
ECounter
Counter keys for the V0FinderMonitor.
@ Protons
Number of proton-candidates.
@ PionsDca
Number of raw pion-candidates.
@ Pions
Number of pion-candidates.
@ KfpEventsLambdaCand
Events with lambda-candidates in KF-particle.
@ PrimaryDca
Number of raw proton-candidates.
@ TracksWUnphysicalBeta
Tracks with beta > 1.
@ TracksWoStsHits
Tracks, which have no STS hits.
@ TracksInfiniteParam
Tracks, which have infinite parameters.
@ EventsTotal
Total number of events.
@ TracksWoPid
Tracks, which has undefined PID.
@ ProtonsDca
Number of raw proton-candidates.
@ TracksWoMomentum
Tracks, which has no momentum.
@ TracksSelected
Tracks, which satisfy topology PID applicability.
@ TracksWoTofHits
Tracks, which have no TOF hits.
@ EventsLambdaCand
Events with at least one pion and one proton candidate.
@ TracksWNegativeTofHitTime
Tracks, the last TOF hit of which has a negative time (it's time is less then the t0)
@ EventsWoTzero
Number of events with undefined t-zero.
@ KfpLambdaCandidates
Number of lambda-candidates.
@ TracksTotal
Total number of tracks.
ETimer
Timer keys for the V0FinderMonitor.
@ ExecKfp
Run KFParticleFinder inside the event.
@ FindV0Candidates
V0-finder procedure for a given t0.
@ PrepareContainers
Prepare data containers.
@ ProcessEvent
Processing of a single event.
@ PreselectTracks
Track preselection.
@ CollectT0
Collecting T0s.
@ CollectDca
Estimating DCAs.
@ InitKfp
Init KFParticleFinder inside the event.