|
CbmRoot
|
Hit-finder steering class for BMON. More...
#include <Hitfind.h>
Public Types | |
| using | Output_t = std::tuple<PartitionedVector<Hit>, HitfindMonitorData, PODVector<int32_t>> |
| Output format. | |
Public Member Functions | |
| Hitfind (HitfindSetup setup, uint32_t nThreads=1) | |
| Constructor. | |
| Output_t | operator() (gsl::span< CbmBmonDigi > digisIn, uint32_t iThread=0) |
| Algorithm execution operator. | |
| size_t | GetDiamondIndex (uint32_t address) const |
| Returns an index of the diamond by the address. | |
| const PODVector< uint32_t > & | GetDiamondAddresses () const |
| Gets diamond addresses vector. | |
Private Attributes | |
| uint32_t | fNofThreads |
| Number of threads. | |
| uint32_t | fSelectionBitsOffset |
| Number of bits to ther right from the first bit in the selection mask. | |
| uint32_t | fSelectionBitmask |
| Selection bitmask. | |
| std::vector< std::vector< Clusterizer > > | fAlgo |
| Clusterizer algorithms [thread][diamond]. | |
| PODVector< uint32_t > | fDiamondAddress |
| Diamond address. | |
Hit-finder steering class for BMON.
Definition at line 33 of file bmon/Hitfind.h.
| using cbm::algo::bmon::Hitfind::Output_t = std::tuple<PartitionedVector<Hit>, HitfindMonitorData, PODVector<int32_t>> |
Output format.
Definition at line 36 of file bmon/Hitfind.h.
|
explicit |
Constructor.
| setup | Setup configuration |
| nThreads | Number of threads (for event-based mode) |
Definition at line 26 of file bmon/Hitfind.cxx.
References cbm::algo::bmon::HitfindSetup::diamonds, fAlgo, fDiamondAddress, fNofThreads, fSelectionBitmask, fSelectionBitsOffset, L_, and cbm::algo::bmon::HitfindSetup::selectionMask.
|
inline |
Gets diamond addresses vector.
Definition at line 53 of file bmon/Hitfind.h.
References fDiamondAddress.
|
inline |
Returns an index of the diamond by the address.
| address | A hardware address of the digi |
Definition at line 50 of file bmon/Hitfind.h.
References fSelectionBitmask, and fSelectionBitsOffset.
Referenced by operator()().
| Hitfind::Output_t Hitfind::operator() | ( | gsl::span< CbmBmonDigi > | digisIn, |
| uint32_t | iThread = 0 ) |
Algorithm execution operator.
| digiIn | A portion of digis in TS/event |
| iThread | Index of thread |
Definition at line 77 of file bmon/Hitfind.cxx.
References fAlgo, fDiamondAddress, GetDiamondIndex(), and hits.
|
private |
Clusterizer algorithms [thread][diamond].
Definition at line 60 of file bmon/Hitfind.h.
Referenced by Hitfind(), and operator()().
|
private |
Diamond address.
Definition at line 61 of file bmon/Hitfind.h.
Referenced by GetDiamondAddresses(), Hitfind(), and operator()().
|
private |
|
private |
Selection bitmask.
Definition at line 58 of file bmon/Hitfind.h.
Referenced by GetDiamondIndex(), and Hitfind().
|
private |
Number of bits to ther right from the first bit in the selection mask.
Definition at line 57 of file bmon/Hitfind.h.
Referenced by GetDiamondIndex(), and Hitfind().