|
CbmRoot
|
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< SmTypeInfo > | fSmTypeRpcMap {} |
| Information on the RPC indexing within differnt SM types. | |
| std::vector< int > | fTrkStationIdMap {} |
| Index of tracking station vs. RPC. | |
A mapper for TOF tracking stations.
Definition at line 28 of file tof/RecoSetupUnit.h.
|
default |
Default constructor (for serialization)
| TrkStationIdMap::TrkStationIdMap | ( | std::vector< SmTypeInfo > && | smTypeRpcMap, |
| std::vector< int > && | trkStationIdMap ) |
Constructor from parameters (RAII)
| smTypeRpcMap | A map of RPC types vs. a supermodule type |
| trkStationIdMap | A 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.
|
inline |
Clears the contents.
Definition at line 57 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap, and fTrkStationIdMap.
|
inline |
Gets number of RPCs for a given SM type.
| iSmType | A supermodule type |
Definition at line 71 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap.
Referenced by GetTrackingStationIndex().
|
inline |
Gets number of SMs for a given SM type.
| iSmType | A supermodule type |
Definition at line 75 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap.
Referenced by GetTrackingStationIndex().
|
inline |
Gets number of supermodule types.
Definition at line 67 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap.
Referenced by GetTrackingStationIndex(), and TrkStationIdMap().
|
inline |
A constant accessor to the SmType RPC map.
Definition at line 78 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap.
|
inline |
Gets tracking station index for a given SM type, SM and RPC.
| iSmType | A type of supermodule |
| iSm | An index of supermodule within a supremodule type |
| iRpc | An index of RPC within a supermodule |
Definition at line 87 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap, fTrkStationIdMap, GetNofRpc(), GetNofSm(), and GetNofSmTypes().
|
inline |
A constant accessor to the tracking station ID container.
Definition at line 81 of file tof/RecoSetupUnit.h.
References fTrkStationIdMap.
|
inline |
Checks, if the container is empty.
Definition at line 64 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap, and fTrkStationIdMap.
|
inlineprivate |
Definition at line 102 of file tof/RecoSetupUnit.h.
References fSmTypeRpcMap, and fTrkStationIdMap.
|
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().
|
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().