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

Class SearchWindowMap parameterisation for hit search windows in the CA tracking. More...

#include <CaSearchWindowMap.h>

Classes

struct  BinData
 
struct  SearchWindow
 

Public Member Functions

 SearchWindowMap ()=default
 Default constructor.
 
 ~SearchWindowMap ()=default
 Destructor.
 
void SetRange (float xMin, float xMax, int xNbins, float yMin, float yMax, int yNbins)
 Constructor.
 
void Clear ()
 Clear the map.
 
void Update (float x, float y, float dx, float dy, float ms)
 Update the map.
 
int GetBin (float x, float y) const
 Get bin index.
 
SearchWindow GetSearchWindow (float x, float y) const
 
std::tuple< SearchWindow, float > GetSearchWindowAndMs (float x, float y) const
 
std::string ToString () const
 String representation of the contents.
 
template<class Archive>
void serialize (Archive &ar, const unsigned int)
 

Public Attributes

float fXmin {0.f}
 X min.
 
float fXmax {0.f}
 X max.
 
int fXnBins {0}
 Number of bins in X.
 
float fYmin {0.f}
 Y min.
 
float fYmax {0.f}
 Y max.
 
int fYnBins {0}
 Number of bins in Y.
 
int fNbins {0}
 Total number of bins.
 
std::vector< BinDatafBins {}
 Bin data.
 

Friends

class boost::serialization::access
 Serialization function.
 

Detailed Description

Class SearchWindowMap parameterisation for hit search windows in the CA tracking.

Definition at line 24 of file CaSearchWindowMap.h.

Constructor & Destructor Documentation

◆ SearchWindowMap()

cbm::algo::ca::SearchWindowMap::SearchWindowMap ( )
default

Default constructor.

◆ ~SearchWindowMap()

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

Destructor.

Member Function Documentation

◆ Clear()

void cbm::algo::ca::SearchWindowMap::Clear ( )
inline

Clear the map.

Definition at line 58 of file CaSearchWindowMap.h.

References fBins.

◆ GetBin()

int cbm::algo::ca::SearchWindowMap::GetBin ( float x,
float y ) const
inline

Get bin index.

Definition at line 76 of file CaSearchWindowMap.h.

References fXmax, fXmin, fXnBins, fYmax, fYmin, fYnBins, x, and y.

Referenced by GetSearchWindow(), GetSearchWindowAndMs(), and Update().

◆ GetSearchWindow()

SearchWindow cbm::algo::ca::SearchWindowMap::GetSearchWindow ( float x,
float y ) const
inline

Definition at line 86 of file CaSearchWindowMap.h.

References fBins, GetBin(), x, and y.

◆ GetSearchWindowAndMs()

std::tuple< SearchWindow, float > cbm::algo::ca::SearchWindowMap::GetSearchWindowAndMs ( float x,
float y ) const
inline

Definition at line 92 of file CaSearchWindowMap.h.

References fBins, GetBin(), x, and y.

◆ serialize()

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

Definition at line 131 of file CaSearchWindowMap.h.

References fBins, fNbins, fXmax, fXmin, fXnBins, fYmax, fYmin, and fYnBins.

◆ SetRange()

void cbm::algo::ca::SearchWindowMap::SetRange ( float xMin,
float xMax,
int xNbins,
float yMin,
float yMax,
int yNbins )
inline

Constructor.

Definition at line 44 of file CaSearchWindowMap.h.

References fBins, fNbins, fXmax, fXmin, fXnBins, fYmax, fYmin, and fYnBins.

◆ ToString()

std::string SearchWindowMap::ToString ( ) const

String representation of the contents.

Definition at line 24 of file CaSearchWindowMap.cxx.

References fBins, fXmax, fXmin, fXnBins, fYmax, fYmin, and fYnBins.

◆ Update()

void cbm::algo::ca::SearchWindowMap::Update ( float x,
float y,
float dx,
float dy,
float ms )
inline

Update the map.

Definition at line 67 of file CaSearchWindowMap.h.

References fBins, GetBin(), x, and y.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization function.

Definition at line 129 of file CaSearchWindowMap.h.

References boost::serialization::access.

Referenced by boost::serialization::access.

Member Data Documentation

◆ fBins

std::vector<BinData> cbm::algo::ca::SearchWindowMap::fBins {}

Bin data.

Definition at line 126 of file CaSearchWindowMap.h.

Referenced by Clear(), GetSearchWindow(), GetSearchWindowAndMs(), serialize(), SetRange(), ToString(), and Update().

◆ fNbins

int cbm::algo::ca::SearchWindowMap::fNbins {0}

Total number of bins.

Definition at line 125 of file CaSearchWindowMap.h.

Referenced by serialize(), and SetRange().

◆ fXmax

float cbm::algo::ca::SearchWindowMap::fXmax {0.f}

X max.

Definition at line 120 of file CaSearchWindowMap.h.

Referenced by GetBin(), serialize(), SetRange(), and ToString().

◆ fXmin

float cbm::algo::ca::SearchWindowMap::fXmin {0.f}

X min.

Definition at line 119 of file CaSearchWindowMap.h.

Referenced by GetBin(), serialize(), SetRange(), and ToString().

◆ fXnBins

int cbm::algo::ca::SearchWindowMap::fXnBins {0}

Number of bins in X.

Definition at line 121 of file CaSearchWindowMap.h.

Referenced by GetBin(), serialize(), SetRange(), and ToString().

◆ fYmax

float cbm::algo::ca::SearchWindowMap::fYmax {0.f}

Y max.

Definition at line 123 of file CaSearchWindowMap.h.

Referenced by GetBin(), serialize(), SetRange(), and ToString().

◆ fYmin

float cbm::algo::ca::SearchWindowMap::fYmin {0.f}

Y min.

Definition at line 122 of file CaSearchWindowMap.h.

Referenced by GetBin(), serialize(), SetRange(), and ToString().

◆ fYnBins

int cbm::algo::ca::SearchWindowMap::fYnBins {0}

Number of bins in Y.

Definition at line 124 of file CaSearchWindowMap.h.

Referenced by GetBin(), serialize(), SetRange(), and ToString().


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