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 "base/SubChain.h"
15#include "global/RecoResults.h"
16#include "kfp/KfpV0Finder.h"
18#include "kfp/KfpV0FinderQa.h"
19
20namespace cbm::algo
21{
22 namespace qa
23 {
24 class Manager;
25 }
26} // namespace cbm::algo
27
28namespace cbm::algo
29{
32 class V0FinderChain : public SubChain {
33 public:
35
37 V0FinderChain() = default;
38
41 V0FinderChain(const std::unique_ptr<qa::Manager>& qaManager);
42
44 V0FinderChain(const V0FinderChain&) = delete;
45
48
50 ~V0FinderChain() = default;
51
54
57
59 void Finalize();
60
63
67
69 void Init();
70
72 EventOutput ProcessEvent(const RecoResults& recoEvent);
73
74 private:
78 std::unique_ptr<kfp::V0FinderQa> fpFinderQa{nullptr};
80 };
81} // 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.
A chain for the V0 finder.
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 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.
void Init()
Initializes the instance (called in the beginning of the run)
kfp::V0FinderMonitorData_t GetMonitor()
Gets a monitor.
std::unique_ptr< kfp::V0FinderQa > fpFinderQa
QA module.
A V0-finding algorithm.
Definition KfpV0Finder.h:25
std::vector< T, PODAllocator< T > > PODVector
PODVector is a std::vector that doesn't initialize its elements.
Definition PODVector.h:17