CbmRoot
|
#include <CaInputData.h>
Public Member Functions | |
InputData () | |
Default constructor. | |
~InputData ()=default | |
Destructor. | |
InputData (const InputData &other) | |
Copy constructor. | |
InputData (InputData &&) noexcept | |
Move constructor. | |
InputData & | operator= (const InputData &other) |
Copy assignment operator. | |
InputData & | operator= (InputData &&other) noexcept |
Move assignment operator. | |
HitIndex_t | GetSampleSize () const |
Gets hits sample size. | |
int | GetNdataStreams () const |
Gets number of data streams. | |
const Hit & | GetHit (HitIndex_t index) const |
Gets reference to hit by its index. | |
const Vector< Hit > & | GetHits () const |
Gets reference to hits vector. | |
HitIndex_t | GetNhits () const |
Gets number of hits in the hits vector. | |
int | GetNhitKeys () const |
Gets total number of stored keys. | |
HitIndex_t | GetStreamStartIndex (int iStream) const |
Gets index of the first hit in the sorted hits vector. | |
HitIndex_t | GetStreamStopIndex (int iStream) const |
Gets index of (the last + 1) hit in the sorted hits vector. | |
HitIndex_t | GetStreamNhits (int iStream) const |
Gets n hits for the data stream. | |
Private Member Functions | |
void | Swap (InputData &other) noexcept |
Swap method. | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Data serialization method. | |
Private Attributes | |
Vector< Hit > | fvHits {"InputData::fHits"} |
Sample of input hits. | |
Vector< HitIndex_t > | fvStreamStartIndices {"InputData::fStreamStartIndices"} |
Index of the first hit in the sorted hits vector for a given data stream. | |
Vector< HitIndex_t > | fvStreamStopIndices {"InputData::fStreamStopIndices"} |
int | fNhitKeys = -1 |
Number of hit keys used for rejecting fake STS hits. | |
Friends | |
class | DataManager |
Class which fills the InputData object for each event or time slice. | |
class | boost::serialization::access |
Class InputData represents a block of the input data to the L1 tracking algorithm per event or time slice. Filling of the InputData is carried out with L1IODataManager class
Definition at line 24 of file CaInputData.h.
InputData::InputData | ( | ) |
|
default |
Destructor.
InputData::InputData | ( | const InputData & | other | ) |
Copy constructor.
Definition at line 20 of file CaInputData.cxx.
|
noexcept |
Move constructor.
Definition at line 30 of file CaInputData.cxx.
|
inline |
Gets reference to hit by its index.
index | Index of hit in the hits sample |
Definition at line 55 of file CaInputData.h.
References fvHits.
Referenced by CbmL1::EfficienciesPerformance(), cbm::algo::ca::CloneMerger::Exec(), cbm::algo::ca::Qa::Exec(), cbm::algo::ca::TrackFinder::FindTracks(), cbm::algo::ca::TrackFinder::FindTracksThread(), cbm::algo::ca::TrackFitter::FitCaTracks(), cbm::algo::TrackingChain::PrepareOutput(), and CbmL1::Reconstruct().
Gets reference to hits vector.
Definition at line 58 of file CaInputData.h.
References fvHits.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::Qa::Exec(), and CbmL1::Reconstruct().
|
inline |
Gets number of data streams.
Definition at line 51 of file CaInputData.h.
References fvStreamStartIndices.
Referenced by cbm::algo::ca::TrackFinder::FindTracks(), and cbm::algo::ca::TrackFinder::FindTracksThread().
|
inline |
Gets total number of stored keys.
Definition at line 64 of file CaInputData.h.
References fNhitKeys.
Referenced by cbm::algo::ca::Qa::FillHitDistributionsForHitSet(), cbm::algo::ca::TrackFinder::FindTracks(), and cbm::algo::ca::TrackFinder::FindTracksThread().
|
inline |
Gets number of hits in the hits vector.
Definition at line 61 of file CaInputData.h.
References fvHits.
Referenced by cbm::algo::ca::Qa::Exec(), cbm::algo::ca::TrackFinder::FindTracks(), cbm::algo::ca::TrackFinder::FindTracksThread(), and CbmL1::HistoPerformance().
|
inline |
|
inline |
Gets n hits for the data stream.
iStream | Index of the data stream |
Definition at line 76 of file CaInputData.h.
References fvStreamStartIndices, and fvStreamStopIndices.
Referenced by cbm::algo::ca::TrackFinder::FindTracks().
|
inline |
Gets index of the first hit in the sorted hits vector.
iStream | Index of the data stream |
Definition at line 68 of file CaInputData.h.
References fvStreamStartIndices.
Referenced by cbm::algo::ca::TrackFinder::FindTracks(), and cbm::algo::ca::TrackFinder::FindTracksThread().
|
inline |
Gets index of (the last + 1) hit in the sorted hits vector.
iStream | Index of the data stream |
Definition at line 72 of file CaInputData.h.
References fvStreamStopIndices.
Referenced by cbm::algo::ca::TrackFinder::FindTracksThread().
Move assignment operator.
Definition at line 44 of file CaInputData.cxx.
|
inlineprivate |
Data serialization method.
Definition at line 88 of file CaInputData.h.
References fNhitKeys, fvHits, fvStreamStartIndices, and fvStreamStopIndices.
|
inlineprivatenoexcept |
Swap method.
Definition at line 118 of file CaInputData.h.
Referenced by cbm::algo::ca::DataManager::ResetInputData().
|
friend |
Definition at line 27 of file CaInputData.h.
|
friend |
Class which fills the InputData object for each event or time slice.
Definition at line 26 of file CaInputData.h.
|
private |
Number of hit keys used for rejecting fake STS hits.
Definition at line 108 of file CaInputData.h.
Referenced by cbm::algo::ca::DataManager::CheckInputData(), GetNhitKeys(), serialize(), and cbm::algo::ca::DataManager::SetNhitKeys().
Sample of input hits.
Definition at line 101 of file CaInputData.h.
Referenced by cbm::algo::ca::DataManager::CheckInputData(), GetHit(), GetHits(), GetNhits(), cbm::algo::ca::DataManager::GetNofHits(), GetSampleSize(), cbm::algo::ca::DataManager::InitData(), cbm::algo::ca::DataManager::PushBackHit(), cbm::algo::ca::DataManager::ReserveNhits(), and serialize().
|
private |
Index of the first hit in the sorted hits vector for a given data stream.
Definition at line 104 of file CaInputData.h.
Referenced by GetNdataStreams(), GetStreamNhits(), GetStreamStartIndex(), cbm::algo::ca::DataManager::InitData(), cbm::algo::ca::DataManager::PushBackHit(), and serialize().
|
private |
Definition at line 105 of file CaInputData.h.
Referenced by GetStreamNhits(), GetStreamStopIndex(), cbm::algo::ca::DataManager::InitData(), and serialize().