CbmRoot
Loading...
Searching...
No Matches
cbm::algo::ca::InputData Class Reference

#include <CaInputData.h>

Collaboration diagram for cbm::algo::ca::InputData:
[legend]

Public Member Functions

 InputData ()
 Default constructor.
 
 ~InputData ()=default
 Destructor.
 
 InputData (const InputData &other)
 Copy constructor.
 
 InputData (InputData &&) noexcept
 Move constructor.
 
InputDataoperator= (const InputData &other)
 Copy assignment operator.
 
InputDataoperator= (InputData &&other) noexcept
 Move assignment operator.
 
HitIndex_t GetSampleSize () const
 Gets hits sample size.
 
int GetNdataStreams () const
 Gets number of data streams.
 
const HitGetHit (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< HitfvHits {"InputData::fHits"}
 Sample of input hits.
 
Vector< HitIndex_tfvStreamStartIndices {"InputData::fStreamStartIndices"}
 Index of the first hit in the sorted hits vector for a given data stream.
 
Vector< HitIndex_tfvStreamStopIndices {"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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ InputData() [1/3]

InputData::InputData ( )

Default constructor.

Definition at line 16 of file CaInputData.cxx.

Referenced by operator=().

◆ ~InputData()

cbm::algo::ca::InputData::~InputData ( )
default

Destructor.

◆ InputData() [2/3]

InputData::InputData ( const InputData & other)

Copy constructor.

Definition at line 20 of file CaInputData.cxx.

◆ InputData() [3/3]

InputData::InputData ( InputData && other)
noexcept

Move constructor.

Definition at line 30 of file CaInputData.cxx.

Member Function Documentation

◆ GetHit()

const Hit & cbm::algo::ca::InputData::GetHit ( HitIndex_t index) const
inline

◆ GetHits()

const Vector< Hit > & cbm::algo::ca::InputData::GetHits ( ) const
inline

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().

◆ GetNdataStreams()

int cbm::algo::ca::InputData::GetNdataStreams ( ) const
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().

◆ GetNhitKeys()

int cbm::algo::ca::InputData::GetNhitKeys ( ) const
inline

◆ GetNhits()

HitIndex_t cbm::algo::ca::InputData::GetNhits ( ) const
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().

◆ GetSampleSize()

HitIndex_t cbm::algo::ca::InputData::GetSampleSize ( ) const
inline

Gets hits sample size.

Definition at line 48 of file CaInputData.h.

References fvHits.

◆ GetStreamNhits()

HitIndex_t cbm::algo::ca::InputData::GetStreamNhits ( int iStream) const
inline

Gets n hits for the data stream.

Parameters
iStreamIndex of the data stream

Definition at line 76 of file CaInputData.h.

References fvStreamStartIndices, and fvStreamStopIndices.

Referenced by cbm::algo::ca::TrackFinder::FindTracks().

◆ GetStreamStartIndex()

HitIndex_t cbm::algo::ca::InputData::GetStreamStartIndex ( int iStream) const
inline

Gets index of the first hit in the sorted hits vector.

Parameters
iStreamIndex 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().

◆ GetStreamStopIndex()

HitIndex_t cbm::algo::ca::InputData::GetStreamStopIndex ( int iStream) const
inline

Gets index of (the last + 1) hit in the sorted hits vector.

Parameters
iStreamIndex of the data stream

Definition at line 72 of file CaInputData.h.

References fvStreamStopIndices.

Referenced by cbm::algo::ca::TrackFinder::FindTracksThread().

◆ operator=() [1/2]

InputData & InputData::operator= ( const InputData & other)

Copy assignment operator.

Definition at line 34 of file CaInputData.cxx.

References InputData().

◆ operator=() [2/2]

InputData & InputData::operator= ( InputData && other)
noexcept

Move assignment operator.

Definition at line 44 of file CaInputData.cxx.

◆ serialize()

template<class Archive >
void cbm::algo::ca::InputData::serialize ( Archive & ar,
const unsigned int  )
inlineprivate

Data serialization method.

Definition at line 88 of file CaInputData.h.

References fNhitKeys, fvHits, fvStreamStartIndices, and fvStreamStopIndices.

◆ Swap()

void cbm::algo::ca::InputData::Swap ( InputData & other)
inlineprivatenoexcept

Swap method.

Definition at line 118 of file CaInputData.h.

Referenced by cbm::algo::ca::DataManager::ResetInputData().

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 27 of file CaInputData.h.

◆ DataManager

friend class DataManager
friend

Class which fills the InputData object for each event or time slice.

Definition at line 26 of file CaInputData.h.

Member Data Documentation

◆ fNhitKeys

int cbm::algo::ca::InputData::fNhitKeys = -1
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().

◆ fvHits

◆ fvStreamStartIndices

Vector<HitIndex_t> cbm::algo::ca::InputData::fvStreamStartIndices {"InputData::fStreamStartIndices"}
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().

◆ fvStreamStopIndices

Vector<HitIndex_t> cbm::algo::ca::InputData::fvStreamStopIndices {"InputData::fStreamStopIndices"}
private

The documentation for this class was generated from the following files: