CbmRoot
Loading...
Searching...
No Matches
RecoEventSelectorMonitor.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
14#include <boost/serialization/base_object.hpp>
15
17{
32
35 /* clang-format off */
46 /* clang-format on */
47
50
53 class Monitor : public ca::Monitor<ECounter, ETimer> {
54 public:
56 Monitor() : ca::Monitor<ECounter, ETimer>("Event-selector Monitor")
57 {
58 SetCounterName(ECounter::Timeslices, "processed timeslices");
60 SetCounterName(ECounter::EventsNeStsHits, "events discarded by N STS hits");
61 SetCounterName(ECounter::EventsNeTofHits, "events discarded by N TOF hits");
62 SetCounterName(ECounter::EventsNeBmonHits, "events discarded by N BMon hits");
63 SetCounterName(ECounter::EventsNeTracks, "events discarded by N tracks");
64 SetCounterName(ECounter::LambdaCandidates, "potential lambda candidates");
65 SetCounterName(ECounter::EventsSelected, "selected events");
66
67 SetTimerName(ETimer::EventReconstruction, "event reconstruction");
68 SetTimerName(ETimer::BmonHitFinder, "hit finding in Bmon");
69 SetTimerName(ETimer::StsHitFinder, "hit finding in STS");
70 SetTimerName(ETimer::TofHitFinder, "hit finding in TOF");
71 SetTimerName(ETimer::TrdHitFinder, "hit finding in TRD");
72 SetTimerName(ETimer::TrackFinder, "track finding");
73 SetTimerName(ETimer::V0Finder, "V0 finding");
74
76 }
77
78 private:
80 template<typename Archive>
81 void serialize(Archive& ar, const unsigned int /*version*/)
82 {
83 ar& boost::serialization::base_object<ca::Monitor<ECounter, ETimer>>(*this);
84 }
85 };
86
87} // namespace cbm::algo::evselect
CA Tracking monitor class.
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
A monitor for the event selector.
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
ETimer
Timer keys for the event selector monitor.
ECounter
Counter keys for the event selector monitor.
@ EventsNeStsHits
Events with not enough STS hits.
@ LambdaCandidates
Number of lambda-candidates, returned by KFParticleFinder.
@ EventsTotal
Total number of events processed.
@ EventsSelected
Number of selected events.
@ EventsNeTofHits
Events with enough STS hits, but not enough TOF hits.
@ Timeslices
number of processed timeslices
@ EventsNeBmonHits
Events with not enough BMon hits.
@ EventsNeTracks
Events with enough hits, but not enough tracks.