|
CbmRoot
|
#include <RecoSetupUnit.h>
Classes | |
| struct | ModuleInfo |
| Different characteristics of TRD module. More... | |
Public Types | |
| using | ModuleInfoMap_t = std::pair<std::vector<ModuleInfo>, uint32_t> |
| A map of TRD module info vs. | |
Public Member Functions | |
| RecoSetupUnit ()=default | |
| Default constructor (note: needed for serialization) | |
| RecoSetupUnit (std::pair< std::vector< GeoVolume >, std::vector< GeoVolume > > &&stationVolumes, ModuleInfoMap_t &&moduleTypeMap) | |
| Constructor from parameters. | |
| bool | IsValid () const |
| Validates the interface. | |
| const GeoVolume & | GetActiveVolume (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 GeoVolume & | GetFullVolume (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. | |
Private Member Functions | |
| ModuleInfo | GetModuleInfo (uint32_t address) const |
| Returns a TRD module type by its address. | |
| template<class HitType> | |
| HitRange | ImplGetHitRange (const HitType &hit) const |
| Returns default hit range. | |
| int | ImplGetTrackingStationId (uint32_t address) const |
| Returns tracking station index by the TRD address. | |
| bool | ImplIsTimeInfoProvided (int) const |
| Returns a flag, if time information is provided by the detector. | |
| bool | IsInitialized () const |
| Validates initialization of the concrete class. | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
| Serialization rule. | |
Private Attributes | |
| ModuleInfoMap_t | fvModuleInfoMap {} |
| map of TRD module types vs [layerId x moduleId] | |
| std::vector< GeoVolume > | fvStationFullVolumes |
| Geometric properties of each station passive volume. | |
| std::vector< GeoVolume > | fvStationActiveVolumes |
| Geometric properties of each station active volume. | |
Friends | |
| class | TrackingSetupIfs< RecoSetupUnit > |
| class | boost::serialization::access |
Definition at line 28 of file trd/RecoSetupUnit.h.
| using cbm::algo::trd::RecoSetupUnit::ModuleInfoMap_t = std::pair<std::vector<ModuleInfo>, uint32_t> |
A map of TRD module info vs.
.second stores number of modules in a single layer .first stores a vector of module types, indexed as nModules * layerId + moduleId
Definition at line 62 of file trd/RecoSetupUnit.h.
|
default |
Default constructor (note: needed for serialization)
Referenced by RecoSetupUnit().
| RecoSetupUnit::RecoSetupUnit | ( | std::pair< std::vector< GeoVolume >, std::vector< GeoVolume > > && | stationVolumes, |
| RecoSetupUnit::ModuleInfoMap_t && | moduleInfoMap ) |
Constructor from parameters.
| stationVolumes | A pair of containers of station full and active volumes {full, active} |
| moduleInfoMap | A map [layerID x moduleID] -> module info |
Definition at line 17 of file trd/RecoSetupUnit.cxx.
References fvModuleInfoMap, RecoSetupUnit(), and cbm::algo::TrackingSetupIfs< RecoSetupUnit >::TrackingSetupIfs().
|
inlineinherited |
Gets active volume for a tracking station.
| stationId | Local index of the tracking station |
Definition at line 77 of file TrackingSetupIfs.h.
|
inlinestaticconstexpr |
Name of the detector.
Definition at line 74 of file trd/RecoSetupUnit.h.
|
inlineinherited |
Gets full volume for a tracking station.
| stationId | Local index of the tracking station |
Definition at line 103 of file TrackingSetupIfs.h.
|
inlineinherited |
Returns default hit range for x, y and time measurements.
| hit | A hit |
The default ranges are defined under an assumption, that all the uncertainties obey a gaussian distribution
Definition at line 86 of file TrackingSetupIfs.h.
|
inlinestaticconstexpr |
|
inlineprivate |
Returns a TRD module type by its address.
| address | An TRD hardware address |
Definition at line 121 of file trd/RecoSetupUnit.h.
References fvModuleInfoMap, CbmTrdAddress::GetLayerId(), and CbmTrdAddress::GetModuleId().
Referenced by ImplGetHitRange().
|
inlineinherited |
Gets number of tracking stations.
Definition at line 92 of file TrackingSetupIfs.h.
Referenced by cbm::algo::much::RecoSetupUnit::IsInitialized(), cbm::algo::mvd::RecoSetupUnit::IsInitialized(), cbm::algo::sts::RecoSetupUnit::IsInitialized(), cbm::algo::tof::RecoSetupUnit::IsInitialized(), and cbm::algo::trd::RecoSetupUnit::IsInitialized().
|
inlineinherited |
Gets a local index of a tracking station by a hardware address.
| address | Hardware address |
Definition at line 96 of file TrackingSetupIfs.h.
|
inlineprivate |
Returns default hit range.
| hit | A particular hit |
Definition at line 132 of file trd/RecoSetupUnit.h.
References GetModuleInfo(), cbm::algo::TrackingSetupIfs< ConcreteDetector >::ImplGetHitRange(), sqrt(), cbm::algo::HitRange::t, cbm::algo::HitRange::x, and cbm::algo::HitRange::y.
|
inlineprivate |
Returns tracking station index by the TRD address.
| address | Unique hardware address of a TRD element |
Definition at line 166 of file trd/RecoSetupUnit.h.
References CbmTrdAddress::GetLayerId().
|
inlineprivate |
Returns a flag, if time information is provided by the detector.
| stationId | Local index of tracking station |
Definition at line 98 of file trd/RecoSetupUnit.h.
|
private |
Validates initialization of the concrete class.
Definition at line 26 of file trd/RecoSetupUnit.cxx.
References fvModuleInfoMap, and cbm::algo::TrackingSetupIfs< RecoSetupUnit >::GetNofTrackingStations().
|
inlineinherited |
Checks, if station provides time measurements.
| stationId | Local index of the tracking station |
Definition at line 107 of file TrackingSetupIfs.h.
|
inherited |
Validates the interface.
Definition at line 73 of file TrackingSetupIfs.h.
|
inlineprivate |
|
inherited |
Dumps table of tracking stations to string.
Definition at line 113 of file TrackingSetupIfs.h.
|
friend |
Definition at line 105 of file trd/RecoSetupUnit.h.
References boost::serialization::access.
Referenced by boost::serialization::access.
|
friend |
Definition at line 166 of file trd/RecoSetupUnit.h.
|
private |
map of TRD module types vs [layerId x moduleId]
Definition at line 114 of file trd/RecoSetupUnit.h.
Referenced by GetModuleInfo(), IsInitialized(), RecoSetupUnit(), and serialize().
|
privateinherited |
Geometric properties of each station active volume.
Definition at line 151 of file TrackingSetupIfs.h.
|
privateinherited |
Geometric properties of each station passive volume.
Definition at line 150 of file TrackingSetupIfs.h.