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

Class L1SearchWindow defines a parameterisation of hits search window for CA tracking algorithm TODO: SZh 8.11.2022: add description. More...

#include <CaSearchWindow.h>

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

Public Member Functions

 SearchWindow (int stationID, int trackGrID)
 Constructor.
 
 SearchWindow ()=default
 Default constructor.
 
 ~SearchWindow ()=default
 Destructor.
 
 SearchWindow (const SearchWindow &other)=default
 Copy constructor.
 
SearchWindowoperator= (const SearchWindow &other)=default
 Copy assignment operator.
 
 SearchWindow (SearchWindow &&other) noexcept=default
 Move constructor.
 
SearchWindowoperator= (SearchWindow &&other)=default
 Move assignment operator.
 
float DxMaxVsX0 (float) const
 Parameterisation function for dx_max(x0)
 
float DxMinVsX0 (float) const
 Parameterisation function for dx_min(x0)
 
float DxMaxVsY0 (float) const
 Parameterisation function for dx_max(y0)
 
float DxMinVsY0 (float) const
 Parameterisation function for dx_min(y0)
 
float DyMaxVsX0 (float) const
 Parameterisation function for dy_max(x0)
 
float DyMinVsX0 (float) const
 Parameterisation function for dy_min(x0)
 
float DyMaxVsY0 (float) const
 Parameterisation function for dy_max(y0)
 
float DyMinVsY0 (float) const
 Parameterisation function for dy_min(y0)
 
int GetStationID () const
 Gets station id.
 
int GetTrackGroupID () const
 Gets track group id.
 
void SetTag (const char *name)
 Sets tag.
 
void SetParamDxMaxVsX0 (int id, float val)
 Sets parameters for dx_max(x0)
 
void SetParamDxMinVsX0 (int id, float val)
 Sets parameters for dx_min(x0)
 
void SetParamDxMaxVsY0 (int id, float val)
 Sets parameters for dx_max(y0)
 
void SetParamDxMinVsY0 (int id, float val)
 Sets parameters for dx_min(y0)
 
void SetParamDyMaxVsX0 (int id, float val)
 Sets parameters for dy_max(x0)
 
void SetParamDyMinVsX0 (int id, float val)
 Sets parameters for dy_min(x0)
 
void SetParamDyMaxVsY0 (int id, float val)
 Sets parameters for dy_max(y0)
 
void SetParamDyMinVsY0 (int id, float val)
 Sets parameters for dy_min(y0)
 
std::string ToString () const
 String representation of the contents.
 

Private Types

enum  EDependency {
  kDxMaxVsX0 , kDxMinVsX0 , kDxMaxVsY0 , kDxMinVsY0 ,
  kDyMaxVsX0 , kDyMinVsX0 , kDyMaxVsY0 , kDyMinVsY0
}
 Enumeration for dependencies stored. More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Private Attributes

std::array< float, kNdeps *kNparsfvParams = {0}
 Search window parameter array containing parameters from.
 
int fStationID = -1
 Global index of active tracking station.
 
int fTrackGroupID = -1
 Index of tracks group.
 
std::string fsTag = ""
 Tag, containing information on the tracks group (TODO: can be omitted?)
 

Static Private Attributes

static constexpr unsigned char kNpars = 1
 Max number of parameters for one dependency.
 
static constexpr unsigned char kNdeps = 8
 Number of the dependencies.
 

Friends

class boost::serialization::access
 Serialization function.
 

Detailed Description

Class L1SearchWindow defines a parameterisation of hits search window for CA tracking algorithm TODO: SZh 8.11.2022: add description.

Member Enumeration Documentation

◆ EDependency

Enumeration for dependencies stored.

Enumerator
kDxMaxVsX0 
kDxMinVsX0 
kDxMaxVsY0 
kDxMinVsY0 
kDyMaxVsX0 
kDyMinVsX0 
kDyMaxVsY0 
kDyMinVsY0 

Definition at line 137 of file CaSearchWindow.h.

Constructor & Destructor Documentation

◆ SearchWindow() [1/4]

SearchWindow::SearchWindow ( int stationID,
int trackGrID )

Constructor.

Parameters
stationIDGlobal index of active station
trackGrIDTrack group ID

Definition at line 15 of file CaSearchWindow.cxx.

References kNpars.

◆ SearchWindow() [2/4]

cbm::algo::ca::SearchWindow::SearchWindow ( )
default

Default constructor.

◆ ~SearchWindow()

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

Destructor.

◆ SearchWindow() [3/4]

cbm::algo::ca::SearchWindow::SearchWindow ( const SearchWindow & other)
default

Copy constructor.

◆ SearchWindow() [4/4]

cbm::algo::ca::SearchWindow::SearchWindow ( SearchWindow && other)
defaultnoexcept

Move constructor.

Member Function Documentation

◆ DxMaxVsX0()

float cbm::algo::ca::SearchWindow::DxMaxVsX0 ( float ) const
inline

Parameterisation function for dx_max(x0)

Definition at line 52 of file CaSearchWindow.h.

References fvParams, and kDxMaxVsX0.

◆ DxMaxVsY0()

float cbm::algo::ca::SearchWindow::DxMaxVsY0 ( float ) const
inline

Parameterisation function for dx_max(y0)

Definition at line 58 of file CaSearchWindow.h.

References fvParams, and kDxMaxVsY0.

◆ DxMinVsX0()

float cbm::algo::ca::SearchWindow::DxMinVsX0 ( float ) const
inline

Parameterisation function for dx_min(x0)

Definition at line 55 of file CaSearchWindow.h.

References fvParams, and kDxMinVsX0.

◆ DxMinVsY0()

float cbm::algo::ca::SearchWindow::DxMinVsY0 ( float ) const
inline

Parameterisation function for dx_min(y0)

Definition at line 61 of file CaSearchWindow.h.

References fvParams, and kDxMinVsY0.

◆ DyMaxVsX0()

float cbm::algo::ca::SearchWindow::DyMaxVsX0 ( float ) const
inline

Parameterisation function for dy_max(x0)

Definition at line 64 of file CaSearchWindow.h.

References fvParams, and kDyMaxVsX0.

◆ DyMaxVsY0()

float cbm::algo::ca::SearchWindow::DyMaxVsY0 ( float ) const
inline

Parameterisation function for dy_max(y0)

Definition at line 70 of file CaSearchWindow.h.

References fvParams, and kDyMaxVsY0.

◆ DyMinVsX0()

float cbm::algo::ca::SearchWindow::DyMinVsX0 ( float ) const
inline

Parameterisation function for dy_min(x0)

Definition at line 67 of file CaSearchWindow.h.

References fvParams, and kDyMinVsX0.

◆ DyMinVsY0()

float cbm::algo::ca::SearchWindow::DyMinVsY0 ( float ) const
inline

Parameterisation function for dy_min(y0)

Definition at line 73 of file CaSearchWindow.h.

References fvParams, and kDyMinVsY0.

◆ GetStationID()

int cbm::algo::ca::SearchWindow::GetStationID ( ) const
inline

Gets station id.

Definition at line 77 of file CaSearchWindow.h.

References fStationID.

Referenced by cbm::algo::ca::InitManager::ReadSearchWindows().

◆ GetTrackGroupID()

int cbm::algo::ca::SearchWindow::GetTrackGroupID ( ) const
inline

Gets track group id.

Definition at line 80 of file CaSearchWindow.h.

References fTrackGroupID.

Referenced by cbm::algo::ca::InitManager::ReadSearchWindows().

◆ operator=() [1/2]

SearchWindow & cbm::algo::ca::SearchWindow::operator= ( const SearchWindow & other)
default

Copy assignment operator.

◆ operator=() [2/2]

SearchWindow & cbm::algo::ca::SearchWindow::operator= ( SearchWindow && other)
default

Move assignment operator.

◆ serialize()

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

Definition at line 167 of file CaSearchWindow.h.

References fsTag, fStationID, fTrackGroupID, and fvParams.

◆ SetParamDxMaxVsX0()

void SearchWindow::SetParamDxMaxVsX0 ( int id,
float val )

Sets parameters for dx_max(x0)

Parameters
idParameter index
valParameter value

Definition at line 28 of file CaSearchWindow.cxx.

References fvParams, kDxMaxVsX0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDxMaxVsY0()

void SearchWindow::SetParamDxMaxVsY0 ( int id,
float val )

Sets parameters for dx_max(y0)

Parameters
idParameter index
valParameter value

Definition at line 44 of file CaSearchWindow.cxx.

References fvParams, kDxMaxVsY0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDxMinVsX0()

void SearchWindow::SetParamDxMinVsX0 ( int id,
float val )

Sets parameters for dx_min(x0)

Parameters
idParameter index
valParameter value

Definition at line 36 of file CaSearchWindow.cxx.

References fvParams, kDxMinVsX0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDxMinVsY0()

void SearchWindow::SetParamDxMinVsY0 ( int id,
float val )

Sets parameters for dx_min(y0)

Parameters
idParameter index
valParameter value

Definition at line 52 of file CaSearchWindow.cxx.

References fvParams, kDxMinVsY0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDyMaxVsX0()

void SearchWindow::SetParamDyMaxVsX0 ( int id,
float val )

Sets parameters for dy_max(x0)

Parameters
idParameter index
valParameter value

Definition at line 60 of file CaSearchWindow.cxx.

References fvParams, kDyMaxVsX0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDyMaxVsY0()

void SearchWindow::SetParamDyMaxVsY0 ( int id,
float val )

Sets parameters for dy_max(y0)

Parameters
idParameter index
valParameter value

Definition at line 76 of file CaSearchWindow.cxx.

References fvParams, kDyMaxVsY0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDyMinVsX0()

void SearchWindow::SetParamDyMinVsX0 ( int id,
float val )

Sets parameters for dy_min(x0)

Parameters
idParameter index
valParameter value

Definition at line 68 of file CaSearchWindow.cxx.

References fvParams, kDyMinVsX0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetParamDyMinVsY0()

void SearchWindow::SetParamDyMinVsY0 ( int id,
float val )

Sets parameters for dy_min(y0)

Parameters
idParameter index
valParameter value

Definition at line 84 of file CaSearchWindow.cxx.

References fvParams, kDyMinVsY0, and kNpars.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ SetTag()

void cbm::algo::ca::SearchWindow::SetTag ( const char * name)
inline

Sets tag.

A tag can be used for insurance, if this search window corresponds to a desired track finder iteration

Definition at line 85 of file CaSearchWindow.h.

References fsTag.

Referenced by cbm::ca::tools::WindowFinder::CreateSW().

◆ ToString()

std::string SearchWindow::ToString ( ) const

String representation of the contents.

Definition at line 92 of file CaSearchWindow.cxx.

References fStationID, fTrackGroupID, fvParams, kNdeps, and kNpars.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization function.

Definition at line 165 of file CaSearchWindow.h.

Member Data Documentation

◆ fsTag

std::string cbm::algo::ca::SearchWindow::fsTag = ""
private

Tag, containing information on the tracks group (TODO: can be omitted?)

Definition at line 162 of file CaSearchWindow.h.

Referenced by serialize(), and SetTag().

◆ fStationID

int cbm::algo::ca::SearchWindow::fStationID = -1
private

Global index of active tracking station.

Definition at line 160 of file CaSearchWindow.h.

Referenced by GetStationID(), serialize(), and ToString().

◆ fTrackGroupID

int cbm::algo::ca::SearchWindow::fTrackGroupID = -1
private

Index of tracks group.

Definition at line 161 of file CaSearchWindow.h.

Referenced by GetTrackGroupID(), serialize(), and ToString().

◆ fvParams

std::array<float, kNdeps* kNpars> cbm::algo::ca::SearchWindow::fvParams = {0}
private

Search window parameter array containing parameters from.

  • dx_max vs x0 - indexes [0 .. kNpars - 1]
  • dx_min vs x0 - indexes [kNpars .. (2 * kNpars - 1)]
  • dx_max vs y0 - indexes [2 * kNpars .. (3 * kNpars - 1)]
  • dx_min vs y0 - indexes [3 * kNpars .. (4 * kNpars - 1)]
  • dy_max vs y0 - indexes [4 * kNpars .. (5 * kNpars - 1)]
  • dy_min vs y0 - indexes [5 * kNpars .. (6 * kNpars - 1)]
  • dy_max vs y0 - indexes [6 * kNpars .. (7 * kNpars - 1)]
  • dy_min vs y0 - indexes [7 * kNpars .. (8 * kNpars - 1)]

Definition at line 158 of file CaSearchWindow.h.

Referenced by DxMaxVsX0(), DxMaxVsY0(), DxMinVsX0(), DxMinVsY0(), DyMaxVsX0(), DyMaxVsY0(), DyMinVsX0(), DyMinVsY0(), serialize(), SetParamDxMaxVsX0(), SetParamDxMaxVsY0(), SetParamDxMinVsX0(), SetParamDxMinVsY0(), SetParamDyMaxVsX0(), SetParamDyMaxVsY0(), SetParamDyMinVsX0(), SetParamDyMinVsY0(), and ToString().

◆ kNdeps

unsigned char cbm::algo::ca::SearchWindow::kNdeps = 8
staticconstexprprivate

Number of the dependencies.

Definition at line 134 of file CaSearchWindow.h.

Referenced by ToString().

◆ kNpars

unsigned char cbm::algo::ca::SearchWindow::kNpars = 1
staticconstexprprivate

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