A manager for the input-output data of the CA tracking algorithm.
More...
#include <CaDataManager.h>
A manager for the input-output data of the CA tracking algorithm.
Definition at line 20 of file CaDataManager.h.
◆ DataManager() [1/3]
| cbm::algo::ca::DataManager::DataManager |
( |
| ) |
|
|
default |
◆ DataManager() [2/3]
| cbm::algo::ca::DataManager::DataManager |
( |
const DataManager & | other | ) |
|
|
delete |
◆ DataManager() [3/3]
| cbm::algo::ca::DataManager::DataManager |
( |
DataManager && | other | ) |
|
|
delete |
◆ ~DataManager()
| cbm::algo::ca::DataManager::~DataManager |
( |
| ) |
|
|
default |
◆ CheckInputData()
template<int Level>
| bool cbm::algo::ca::DataManager::CheckInputData |
( |
| ) |
const |
|
inlineprivate |
Provides quick QA for input data
- Template Parameters
-
| Level | The level of the checks. The values of the parameter:
- 0: no checks will be done
- 1: only number of hits and strips as well as validity of hits first and last indexes will be checked
- 2: hits sorting is checked
- 3: every hit is checked for consistency
|
- Note
- The larger Level corresponds to more precise checks, but is followed by larger time penalty
Definition at line 121 of file CaDataManager.h.
◆ GetNofHits()
| int cbm::algo::ca::DataManager::GetNofHits |
( |
| ) |
|
|
inline |
Gets number of hits stored.
- Returns
- Number of hits
Definition at line 42 of file CaDataManager.h.
◆ InitData()
| void DataManager::InitData |
( |
| ) |
|
|
private |
Initializes data object.
Sorts hits by stations (complexity O(n)) and defines bordering hit index for station
Definition at line 75 of file CaDataManager.cxx.
◆ operator=() [1/2]
Copy assignment operator.
◆ operator=() [2/2]
Move assignment operator.
◆ PushBackHit() [1/2]
| void cbm::algo::ca::DataManager::PushBackHit |
( |
const Hit & | hit | ) |
|
|
inline |
◆ PushBackHit() [2/2]
| void cbm::algo::ca::DataManager::PushBackHit |
( |
const Hit & | hit, |
|
|
int64_t | streamId ) |
|
inline |
Pushes back a hit (with a data stream info)
- Parameters
-
| hit | An ca::Hit object |
| streamId | Index of a data stream |
Definition at line 60 of file CaDataManager.h.
◆ ReadInputData()
| void DataManager::ReadInputData |
( |
const std::string & | fileName | ) |
|
Reads input data object from boost-serialized binary file.
- Parameters
-
| fileName | Name of input file |
Definition at line 39 of file CaDataManager.cxx.
◆ ReserveNhits()
| void cbm::algo::ca::DataManager::ReserveNhits |
( |
HitIndex_t | nHits | ) |
|
|
inline |
Reserve number of hits.
- Parameters
-
| nHits | Number of hits to be stored |
- Note
- If one does not call this method, the underlying vector of hits will be filled with the time penalty
Definition at line 51 of file CaDataManager.h.
◆ ResetInputData()
| void DataManager::ResetInputData |
( |
HitIndex_t | nHits = 0 | ) |
|
|
noexcept |
Resets the input data block.
- Parameters
-
| nHits | Number of hits to reserve |
Definition at line 63 of file CaDataManager.cxx.
◆ SetNhitKeys()
| void cbm::algo::ca::DataManager::SetNhitKeys |
( |
int | nKeys | ) |
|
|
inline |
Sets the number of hit keys.
- Parameters
-
Definition at line 77 of file CaDataManager.h.
◆ TakeInputData()
Takes (moves) the instance of the input data object.
Definition at line 22 of file CaDataManager.cxx.
◆ WriteInputData()
| void DataManager::WriteInputData |
( |
const std::string & | fileName | ) |
const |
Writes input data object to boost-serialized binary file.
- Parameters
-
| fileName | Name of input file |
Definition at line 100 of file CaDataManager.cxx.
◆ fInputData
| InputData cbm::algo::ca::DataManager::fInputData {} |
|
private |
◆ fLastStreamId
| int64_t cbm::algo::ca::DataManager::fLastStreamId {-1} |
|
private |
The documentation for this class was generated from the following files: