CbmRoot
Loading...
Searching...
No Matches
cbm::algo::tof::TrkStationIdMap Class Reference

A mapper for TOF tracking stations. More...

#include <RecoSetupUnit.h>

Classes

struct  SmTypeInfo
 Information on RPC offsets for each SM type. More...
 

Public Member Functions

 TrkStationIdMap ()=default
 Default constructor (for serialization)
 
 TrkStationIdMap (std::vector< SmTypeInfo > &&smTypeRpcMap, std::vector< int > &&trkStationIdMap)
 Constructor from parameters (RAII)
 
void Clear ()
 Clears the contents.
 
bool IsEmpty () const
 Checks, if the container is empty.
 
uint16_t GetNofSmTypes () const
 Gets number of supermodule types.
 
uint16_t GetNofRpc (uint16_t iSmType) const
 Gets number of RPCs for a given SM type.
 
uint16_t GetNofSm (uint16_t iSmType) const
 Gets number of SMs for a given SM type.
 
const auto & GetSmTypeRpcMap () const
 A constant accessor to the SmType RPC map.
 
const auto & GetTrkStationIdMap () const
 A constant accessor to the tracking station ID container.
 
int GetTrackingStationIndex (uint16_t iSmType, uint16_t iSm, uint16_t iRpc) const
 Gets tracking station index for a given SM type, SM and RPC.
 

Private Member Functions

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

Private Attributes

std::vector< SmTypeInfofSmTypeRpcMap {}
 Information on the RPC indexing within differnt SM types.
 
std::vector< int > fTrkStationIdMap {}
 Index of tracking station vs. RPC.
 

Detailed Description

A mapper for TOF tracking stations.

Definition at line 28 of file tof/RecoSetupUnit.h.

Constructor & Destructor Documentation

◆ TrkStationIdMap() [1/2]

cbm::algo::tof::TrkStationIdMap::TrkStationIdMap ( )
default

Default constructor (for serialization)

◆ TrkStationIdMap() [2/2]

TrkStationIdMap::TrkStationIdMap ( std::vector< SmTypeInfo > && smTypeRpcMap,
std::vector< int > && trkStationIdMap )

Constructor from parameters (RAII)

Parameters
smTypeRpcMapA map of RPC types vs. a supermodule type
trkStationIdMapA track station ID map

Definition at line 20 of file tof/RecoSetupUnit.cxx.

References fSmTypeRpcMap, fTrkStationIdMap, GetNofSmTypes(), cbm::algo::tof::TrkStationIdMap::SmTypeInfo::nRpc, cbm::algo::tof::TrkStationIdMap::SmTypeInfo::nSm, and cbm::algo::tof::TrkStationIdMap::SmTypeInfo::offset.

Member Function Documentation

◆ Clear()

void cbm::algo::tof::TrkStationIdMap::Clear ( )
inline

Clears the contents.

Definition at line 57 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap, and fTrkStationIdMap.

◆ GetNofRpc()

uint16_t cbm::algo::tof::TrkStationIdMap::GetNofRpc ( uint16_t iSmType) const
inline

Gets number of RPCs for a given SM type.

Parameters
iSmTypeA supermodule type

Definition at line 71 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap.

Referenced by GetTrackingStationIndex().

◆ GetNofSm()

uint16_t cbm::algo::tof::TrkStationIdMap::GetNofSm ( uint16_t iSmType) const
inline

Gets number of SMs for a given SM type.

Parameters
iSmTypeA supermodule type

Definition at line 75 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap.

Referenced by GetTrackingStationIndex().

◆ GetNofSmTypes()

uint16_t cbm::algo::tof::TrkStationIdMap::GetNofSmTypes ( ) const
inline

Gets number of supermodule types.

Definition at line 67 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap.

Referenced by GetTrackingStationIndex(), and TrkStationIdMap().

◆ GetSmTypeRpcMap()

const auto & cbm::algo::tof::TrkStationIdMap::GetSmTypeRpcMap ( ) const
inline

A constant accessor to the SmType RPC map.

Definition at line 78 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap.

◆ GetTrackingStationIndex()

int cbm::algo::tof::TrkStationIdMap::GetTrackingStationIndex ( uint16_t iSmType,
uint16_t iSm,
uint16_t iRpc ) const
inline

Gets tracking station index for a given SM type, SM and RPC.

Parameters
iSmTypeA type of supermodule
iSmAn index of supermodule within a supremodule type
iRpcAn index of RPC within a supermodule

Definition at line 87 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap, fTrkStationIdMap, GetNofRpc(), GetNofSm(), and GetNofSmTypes().

◆ GetTrkStationIdMap()

const auto & cbm::algo::tof::TrkStationIdMap::GetTrkStationIdMap ( ) const
inline

A constant accessor to the tracking station ID container.

Definition at line 81 of file tof/RecoSetupUnit.h.

References fTrkStationIdMap.

◆ IsEmpty()

bool cbm::algo::tof::TrkStationIdMap::IsEmpty ( ) const
inline

Checks, if the container is empty.

Definition at line 64 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap, and fTrkStationIdMap.

◆ serialize()

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

Definition at line 102 of file tof/RecoSetupUnit.h.

References fSmTypeRpcMap, and fTrkStationIdMap.

Member Data Documentation

◆ fSmTypeRpcMap

std::vector<SmTypeInfo> cbm::algo::tof::TrkStationIdMap::fSmTypeRpcMap {}
private

Information on the RPC indexing within differnt SM types.

Definition at line 97 of file tof/RecoSetupUnit.h.

Referenced by Clear(), GetNofRpc(), GetNofSm(), GetNofSmTypes(), GetSmTypeRpcMap(), GetTrackingStationIndex(), IsEmpty(), serialize(), and TrkStationIdMap().

◆ fTrkStationIdMap

std::vector<int> cbm::algo::tof::TrkStationIdMap::fTrkStationIdMap {}
private

Index of tracking station vs. RPC.

Definition at line 98 of file tof/RecoSetupUnit.h.

Referenced by Clear(), GetTrackingStationIndex(), GetTrkStationIdMap(), IsEmpty(), serialize(), and TrkStationIdMap().


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