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

TOF detector representation in online/offline reconstruction. More...

#include <RecoSetupUnit.h>

Inheritance diagram for cbm::algo::tof::RecoSetupUnit:
[legend]
Collaboration diagram for cbm::algo::tof::RecoSetupUnit:
[legend]

Public Member Functions

 RecoSetupUnit ()=default
 Default constructor (note: needed for serialization)
 
 RecoSetupUnit (std::pair< std::vector< GeoVolume >, std::vector< GeoVolume > > &&stationVolumes, TrkStationIdMap &&trkStationIdMap)
 Constructor from parameters.
 
const TrkStationIdMapGetTrkStationIdMap () const
 A constant accessor to the TrkStationIdMap.
 
bool IsValid () const
 Validates the interface.
 
const GeoVolumeGetActiveVolume (int stationId) const
 Gets active volume for a tracking station.
 
HitRange GetHitRange (const HitType &hit) const
 Returns default hit range for x, y and time measurements.
 
int GetNofTrackingStations () const
 Gets number of tracking stations.
 
int GetTrackingStationId (uint32_t address) const
 Gets a local index of a tracking station by a hardware address.
 
const GeoVolumeGetFullVolume (int stationId) const
 Gets full volume for a tracking station.
 
bool IsTimeInfoProvided (int stationId) const
 Checks, if station provides time measurements.
 
std::string TableOfTrackingStations () const
 Dumps table of tracking stations to string.
 

Static Public Member Functions

static constexpr std::string_view GetDetectorName ()
 Name of the detector.
 
static constexpr ECbmModuleId GetModuleId ()
 Module ID.
 

Protected Member Functions

HitRange ImplGetHitRange (const HitType &hit) const
 Returns default hit range factor.
 

Private Member Functions

int ImplGetTrackingStationId (uint32_t address) const
 Returns tracking station index by the TOF address.
 
bool ImplIsTimeInfoProvided (int) const
 Returns a flag, if time information is provided by the detector.
 
bool IsInitialized () const
 Validates initialization of the instance.
 
template<class Archive>
void serialize (Archive &ar, const unsigned int)
 

Private Attributes

TrkStationIdMap fTrkStationIdMap
 A map of tracking station indexing.
 
std::vector< GeoVolumefvStationFullVolumes
 Geometric properties of each station passive volume.
 
std::vector< GeoVolumefvStationActiveVolumes
 Geometric properties of each station active volume.
 

Friends

class TrackingSetupIfs< RecoSetupUnit >
 
class boost::serialization::access
 Serialization rule.
 

Detailed Description

TOF detector representation in online/offline reconstruction.

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

Constructor & Destructor Documentation

◆ RecoSetupUnit() [1/2]

cbm::algo::tof::RecoSetupUnit::RecoSetupUnit ( )
default

Default constructor (note: needed for serialization)

Referenced by RecoSetupUnit().

◆ RecoSetupUnit() [2/2]

RecoSetupUnit::RecoSetupUnit ( std::pair< std::vector< GeoVolume >, std::vector< GeoVolume > > && stationVolumes,
TrkStationIdMap && trkStationIdMap )

Constructor from parameters.

Parameters
stationVolumesA pair of containers of station full and active volumes {full, active}
trkStationIdMapIndex of tracking station fv SmType, SmId and RpcId

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

References fTrkStationIdMap, RecoSetupUnit(), and cbm::algo::TrackingSetupIfs< RecoSetupUnit >::TrackingSetupIfs().

Member Function Documentation

◆ GetActiveVolume()

const GeoVolume & cbm::algo::TrackingSetupIfs< RecoSetupUnit >::GetActiveVolume ( int stationId) const
inlineinherited

Gets active volume for a tracking station.

Parameters
stationIdLocal index of the tracking station

Definition at line 77 of file TrackingSetupIfs.h.

◆ GetDetectorName()

static constexpr std::string_view cbm::algo::tof::RecoSetupUnit::GetDetectorName ( )
inlinestaticconstexpr

Name of the detector.

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

◆ GetFullVolume()

const GeoVolume & cbm::algo::TrackingSetupIfs< RecoSetupUnit >::GetFullVolume ( int stationId) const
inlineinherited

Gets full volume for a tracking station.

Parameters
stationIdLocal index of the tracking station

Definition at line 103 of file TrackingSetupIfs.h.

◆ GetHitRange()

HitRange cbm::algo::TrackingSetupIfs< RecoSetupUnit >::GetHitRange ( const HitType & hit) const
inlineinherited

Returns default hit range for x, y and time measurements.

Template Parameters
HitTypeA type of a hit
Parameters
hitA hit
Returns
A HitRange object

The default ranges are defined under an assumption, that all the uncertainties obey a gaussian distribution

Definition at line 86 of file TrackingSetupIfs.h.

◆ GetModuleId()

static constexpr ECbmModuleId cbm::algo::tof::RecoSetupUnit::GetModuleId ( )
inlinestaticconstexpr

Module ID.

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

References kTof.

◆ GetNofTrackingStations()

◆ GetTrackingStationId()

int cbm::algo::TrackingSetupIfs< RecoSetupUnit >::GetTrackingStationId ( uint32_t address) const
inlineinherited

Gets a local index of a tracking station by a hardware address.

Parameters
addressHardware address

Definition at line 96 of file TrackingSetupIfs.h.

◆ GetTrkStationIdMap()

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

A constant accessor to the TrkStationIdMap.

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

References fTrkStationIdMap.

◆ ImplGetHitRange()

HitRange cbm::algo::TrackingSetupIfs< RecoSetupUnit >::ImplGetHitRange ( const HitType & hit) const
inlineprotectedinherited

Returns default hit range factor.

Template Parameters
HitTypeA type of the hit
Parameters
hitA particular hit

Definition at line 135 of file TrackingSetupIfs.h.

◆ ImplGetTrackingStationId()

int RecoSetupUnit::ImplGetTrackingStationId ( uint32_t address) const
inlineprivate

Returns tracking station index by the TOF address.

Parameters
addressUnique hardware address of TOF
Returns
Local index of tracking station

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

References fTrkStationIdMap, CbmTofAddress::GetRpcId(), CbmTofAddress::GetSmId(), and CbmTofAddress::GetSmType().

◆ ImplIsTimeInfoProvided()

bool cbm::algo::tof::RecoSetupUnit::ImplIsTimeInfoProvided ( int ) const
inlineprivate

Returns a flag, if time information is provided by the detector.

Parameters
stationIdLocal index of tracking station

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

◆ IsInitialized()

bool RecoSetupUnit::IsInitialized ( ) const
private

Validates initialization of the instance.

Returns
true The instance is valid
false The instance is not valid

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

References fTrkStationIdMap, and cbm::algo::TrackingSetupIfs< RecoSetupUnit >::GetNofTrackingStations().

◆ IsTimeInfoProvided()

bool cbm::algo::TrackingSetupIfs< RecoSetupUnit >::IsTimeInfoProvided ( int stationId) const
inlineinherited

Checks, if station provides time measurements.

Parameters
stationIdLocal index of the tracking station

Definition at line 107 of file TrackingSetupIfs.h.

◆ IsValid()

bool cbm::algo::TrackingSetupIfs< RecoSetupUnit >::IsValid ( ) const
inherited

Validates the interface.

Returns
true The interface is valid
false The interface is not valid

Definition at line 73 of file TrackingSetupIfs.h.

◆ serialize()

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

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

References fTrkStationIdMap.

◆ TableOfTrackingStations()

std::string cbm::algo::TrackingSetupIfs< RecoSetupUnit >::TableOfTrackingStations ( ) const
inherited

Dumps table of tracking stations to string.

Definition at line 113 of file TrackingSetupIfs.h.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization rule.

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

References boost::serialization::access.

Referenced by boost::serialization::access.

◆ TrackingSetupIfs< RecoSetupUnit >

friend class TrackingSetupIfs< RecoSetupUnit >
friend

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

Member Data Documentation

◆ fTrkStationIdMap

TrkStationIdMap cbm::algo::tof::RecoSetupUnit::fTrkStationIdMap
private

A map of tracking station indexing.

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

Referenced by GetTrkStationIdMap(), ImplGetTrackingStationId(), IsInitialized(), RecoSetupUnit(), and serialize().

◆ fvStationActiveVolumes

std::vector<GeoVolume> cbm::algo::TrackingSetupIfs< RecoSetupUnit >::fvStationActiveVolumes
privateinherited

Geometric properties of each station active volume.

Definition at line 151 of file TrackingSetupIfs.h.

◆ fvStationFullVolumes

std::vector<GeoVolume> cbm::algo::TrackingSetupIfs< RecoSetupUnit >::fvStationFullVolumes
privateinherited

Geometric properties of each station passive volume.

Definition at line 150 of file TrackingSetupIfs.h.


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