|
CbmRoot
|
A manager for the input-output data of the CA tracking algorithm. More...
#include <CaDataManager.h>
Public Member Functions | |
| DataManager ()=default | |
| Default constructor. | |
| ~DataManager ()=default | |
| Destructor. | |
| DataManager (const DataManager &other)=delete | |
| Copy constructor. | |
| DataManager (DataManager &&other)=delete | |
| Move constructor. | |
| DataManager & | operator= (const DataManager &other)=delete |
| Copy assignment operator. | |
| DataManager & | operator= (DataManager &&other)=delete |
| Move assignment operator. | |
| int | GetNofHits () |
| Gets number of hits stored. | |
| void | ReadInputData (const std::string &fileName) |
| Reads input data object from boost-serialized binary file. | |
| void | ReserveNhits (HitIndex_t nHits) |
| Reserve number of hits. | |
| void | ResetInputData (HitIndex_t nHits=0) noexcept |
| Resets the input data block. | |
| void | PushBackHit (const Hit &hit, int64_t streamId) |
| Pushes back a hit (with a data stream info) | |
| void | PushBackHit (const Hit &hit) |
| Pushes back a hit. | |
| void | SetNhitKeys (int nKeys) |
| Sets the number of hit keys. | |
| InputData && | TakeInputData () |
| Takes (moves) the instance of the input data object. | |
| void | WriteInputData (const std::string &fileName) const |
| Writes input data object to boost-serialized binary file. | |
Private Member Functions | |
| void | InitData () |
| Initializes data object. | |
| template<int Level> | |
| bool | CheckInputData () const |
Private Attributes | |
| InputData | fInputData {} |
| Object of input data. | |
| int64_t | fLastStreamId {-1} |
| data stream Id of the last hit added | |
A manager for the input-output data of the CA tracking algorithm.
Definition at line 20 of file CaDataManager.h.
|
default |
Default constructor.
Referenced by DataManager(), DataManager(), operator=(), and operator=().
|
default |
Destructor.
|
delete |
Copy constructor.
References DataManager().
|
delete |
Move constructor.
References DataManager().
|
inlineprivate |
Provides quick QA for input data
| Level | The level of the checks. The values of the parameter:
|
Definition at line 121 of file CaDataManager.h.
References fInputData.
Referenced by WriteInputData().
|
inline |
Gets number of hits stored.
Definition at line 42 of file CaDataManager.h.
References fInputData.
|
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.
References fInputData.
Referenced by TakeInputData().
|
delete |
Copy assignment operator.
References DataManager().
|
delete |
Move assignment operator.
References DataManager().
|
inline |
Pushes back a hit.
| hit | An ca::Hit object |
Definition at line 73 of file CaDataManager.h.
References fInputData.
|
inline |
Pushes back a hit (with a data stream info)
| hit | An ca::Hit object |
| streamId | Index of a data stream |
Definition at line 60 of file CaDataManager.h.
References fInputData, fLastStreamId, and PushBackHit().
Referenced by PushBackHit().
| void DataManager::ReadInputData | ( | const std::string & | fileName | ) |
Reads input data object from boost-serialized binary file.
| fileName | Name of input file |
Definition at line 39 of file CaDataManager.cxx.
References fInputData, and ResetInputData().
|
inline |
Reserve number of hits.
| nHits | Number of hits to be stored |
Definition at line 51 of file CaDataManager.h.
References fInputData.
|
noexcept |
Resets the input data block.
| nHits | Number of hits to reserve |
Definition at line 63 of file CaDataManager.cxx.
References fInputData, and fLastStreamId.
Referenced by ReadInputData().
|
inline |
Sets the number of hit keys.
| nKeys | Number of hit keys |
Definition at line 77 of file CaDataManager.h.
References fInputData.
| InputData && DataManager::TakeInputData | ( | ) |
Takes (moves) the instance of the input data object.
Definition at line 22 of file CaDataManager.cxx.
References fInputData, and InitData().
| void DataManager::WriteInputData | ( | const std::string & | fileName | ) | const |
Writes input data object to boost-serialized binary file.
| fileName | Name of input file |
Definition at line 100 of file CaDataManager.cxx.
References CheckInputData(), fInputData, and cbm::algo::ca::constants::control::InputDataQaLevel.
|
private |
Object of input data.
Definition at line 107 of file CaDataManager.h.
Referenced by CheckInputData(), GetNofHits(), InitData(), PushBackHit(), PushBackHit(), ReadInputData(), ReserveNhits(), ResetInputData(), SetNhitKeys(), TakeInputData(), and WriteInputData().
|
private |
data stream Id of the last hit added
Definition at line 108 of file CaDataManager.h.
Referenced by PushBackHit(), and ResetInputData().