CbmRoot
Loading...
Searching...
No Matches
KfpV0FinderChain.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 "CbmEventTriggers.h"
13#include "PODVector.h"
14#include "algo/base/SubChain.h"
19
20namespace cbm::algo
21{
22 struct ParFiles;
23
24 namespace qa
25 {
26 class Manager;
27 }
28
29 namespace kfp
30 {
31 class V0FinderConfig;
32 }
33} // namespace cbm::algo
34
35namespace cbm::algo
36{
39 class V0FinderChain : public SubChain {
40 public:
42
44 V0FinderChain() = default;
45
48 V0FinderChain(const std::unique_ptr<qa::Manager>& qaManager);
49
51 V0FinderChain(const V0FinderChain&) = delete;
52
55
57 ~V0FinderChain() = default;
58
61
64
66 void Finalize();
67
70
74
77 void Init(const kfp::V0FinderConfig& config);
78
80 EventOutput ProcessEvent(const RecoResults& recoEvent);
81
82 private:
86 std::unique_ptr<kfp::V0FinderQa> fpFinderQa{nullptr};
88 };
89} // namespace cbm::algo
A structure to store different triggers in parallel to the CbmEvent (implementation)
A monitor for the V0Finder.
A V0 finding algorithm QA.
A V0 finding algorithm.
A structure for reconstructed results: digi-events, hits and tracks.
Class to store different triggers for a given event.
V0FinderChain & operator=(const V0FinderChain &)=delete
Copy assignment operator.
V0FinderChain()=default
Default constructor.
V0FinderChain & operator=(V0FinderChain &&)=delete
Move assignment operator.
CbmEventTriggers EventOutput
EventOutput ProcessEvent(const RecoResults &recoEvent)
Processes an event, returns a collection of fired triggers.
~V0FinderChain()=default
Destructor.
void Init(const kfp::V0FinderConfig &config)
Initializes the instance (called in the beginning of the run)
void Finalize()
Finalizes the instance (called in the end of the run)
PODVector< uint32_t > fBmonDefinedAddresses
Available addresses of BMON.
kfp::V0FinderMonitor fMonitorRun
Monitor per run.
kfp::V0FinderMonitorData_t fMonitorTimeslice
Monitor per timeslice.
kfp::V0Finder fFinder
Instance of the V0-finding algorithm.
V0FinderChain(const V0FinderChain &)=delete
Copy constructor.
V0FinderChain(V0FinderChain &&)=delete
Move constructor.
void SetBmonDefinedAddresses(const PODVector< uint32_t > &addresses)
Sets BMON diamond addresses array.
kfp::V0FinderMonitorData_t GetMonitor()
Gets a monitor.
std::unique_ptr< kfp::V0FinderQa > fpFinderQa
QA module.
A V0-finding algorithm.
Definition KfpV0Finder.h:25
A central class to manage the histogram storage and sending to the histogram server.
Definition QaManager.h:20
ca::MonitorData< ECounter, ETimer > V0FinderMonitorData_t
Specification of ca::MonitorData for the V0Finder.
std::vector< T, PODAllocator< T > > PODVector
PODVector is a std::vector that doesn't initialize its elements.
Definition PODVector.h:17
Class to hold the paths to the parameter files for the different detectors.
Definition ParFiles.h:21