20 class alignas(constants::misc::Alignment) DataManager {
62 fLastStreamId = streamId;
63 fInputData.fvStreamStartIndices.push_back(fInputData.fvHits.size());
65 fInputData.fvStreamStopIndices.push_back(fInputData.fvHits.size());
122 if constexpr (Level == 0) {
125 else if constexpr (Level > 0) {
128 LOG(warn) <<
"DataManager [check input]: Sample contains empty hits, tracking will not be executed";
134 LOG(error) <<
"DataManager [check input]: Incorrect number of keys passed (" <<
fInputData.
fNhitKeys
135 <<
"), tracking will not be executed";
142 if constexpr (Level > 1) {
145 if constexpr (Level > 2) {
Compile-time constants definition for the CA tracking algorithm.
A manager for the input-output data of the CA tracking algorithm.
DataManager(DataManager &&other)=delete
Move constructor.
void SetNhitKeys(int nKeys)
Sets the number of hit keys.
void ReserveNhits(HitIndex_t nHits)
Reserve number of hits.
void ReadInputData(const std::string &fileName)
Reads input data object from boost-serialized binary file.
DataManager & operator=(const DataManager &other)=delete
Copy assignment operator.
DataManager(const DataManager &other)=delete
Copy constructor.
DataManager()=default
Default constructor.
void WriteInputData(const std::string &fileName) const
Writes input data object to boost-serialized binary file.
DataManager & operator=(DataManager &&other)=delete
Move assignment operator.
void PushBackHit(const Hit &hit, int64_t streamId)
Pushes back a hit.
InputData && TakeInputData()
Takes (moves) the instance of the input data object.
InputData fInputData
Object of input data.
int64_t fLastStreamId
data stream Id of the last hit added
void InitData()
Initializes data object.
void ResetInputData(HitIndex_t nHits=0) noexcept
Resets the input data block.
int GetNofHits()
Gets number of hits stored.
bool CheckInputData() const
~DataManager()=default
Destructor.
bool SendInputData(InputData &destination)
Sends (moves) input data to an object (alternative method of data sending)
ca::Hit class describes a generic hit for the CA tracker
TODO: SZh 8.11.2022: add selection of parameterisation.
unsigned int HitIndex_t
Index of ca::Hit.