|
CbmRoot
|
Setup representation for tracking. More...
#include <CaSetup.h>
Public Types | |
| using | KfSetup_t = typename kf::Setup<Float> |
Public Member Functions | |
| Setup ()=default | |
| Default constructor (for serialization) | |
| Setup (kf::Setup< Float > geoSetup, const std::vector< std::pair< EDetectorID, int > > &inactiveStations) | |
| Constructor. | |
| template<typename SrcFloat> | |
| Setup (const Setup< SrcFloat > &other) | |
| Copy-convert constructor. | |
| Setup (const Setup &)=default | |
| Default copy constructor. | |
| Setup (Setup &&)=default | |
| Move constructor. | |
| ~Setup ()=default | |
| Destructor. | |
| Setup & | operator= (const Setup &other)=default |
| Copy assignment operator. | |
| Setup & | operator= (Setup &&)=default |
| Move assignment operator. | |
| const KfSetup_t & | GetActiveSetup () const |
| Constant accessor to the active setup. | |
| const KfSetup_t & | GetGeometrySetup () const |
| Constant accessor to the geometry setup. | |
| int | GetNofActStations () const |
| Gets total number of active stations. | |
| int | GetNofActStations (EDetectorID detId) const |
| Gets number of active stations for a given detector subsystem. | |
| int | GetNofGeoStations () const |
| Gets total number of geometry stations. | |
| int | GetNofGeoStations (EDetectorID detId) const |
| Gets number of geometry stations for a given detector subsystem. | |
| int | ActToGeoStationId (int actId) const |
| Converts active station ID to geometry station ID. | |
| std::pair< EDetectorID, int > | ActToLocStationId (int actId) const |
| Converts active station ID to (detector ID, local station ID) | |
| int | GeoToActStationId (int geoId) const |
| Converts geometry station ID to active station ID. | |
| std::pair< EDetectorID, int > | GeoToLocStationId (int geoId) const |
| Converts geometry station ID to (detector ID, local station ID) | |
| int | LocToActStationId (EDetectorID detId, int locId) const |
| Converts (detectorId, local station ID) to active station ID. | |
| int | LocToGeoStationId (EDetectorID detId, int locId) const |
| Converts (detectorId, local station ID) to geometry station ID. | |
Private Types | |
| template<typename T> | |
| using | StationArray_t = std::array<T, constants::size::MaxNstations> |
Private Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
| Serialization method. | |
Private Attributes | |
| KfSetup_t | fGeoSetup |
| Geometry KF-setup (includes both active and inactive stations) | |
| KfSetup_t | fActSetup |
| Active KF-setup (includes only inactive stations) | |
| StationArray_t< int > | fvGeoToActMap |
| Maps geoId -> actId [geoId]. | |
| StationArray_t< int > | fvActToGeoMap |
| Maps actId -> geoId [actId]. | |
Friends | |
| template<typename> | |
| class | Setup |
| class | boost::serialization::access |
Setup representation for tracking.
| Float | A floating point type (where applicable) |
GeoSetup – full tracking setup: each layer represents a station, which can be either active (enabled), or passive (disabled) ActSetup – active tracking setup: each layer is an active tracking station
STATION ID VARIANTS
| abrev. | full name | definition |
|---|---|---|
| detId | Detector ID | An ID of a det. subsystem in CA, represented with ca::EDetectorID enum |
| locId | Local station ID | An ID of tracking station within a seletected detector subsystem |
| geoId | Geometry station ID | A continuous ID of a tracking station, presented in the geometry over |
| all detector subsystems. | ||
| actId | Active station ID | A continuous ID of a active tracking stations over all det. subsystems |
CONTENTS 1) geometrical setup (different material volumes):
| using cbm::algo::ca::Setup< Float >::KfSetup_t = typename kf::Setup<Float> |
|
private |
|
default |
Default constructor (for serialization)
| Setup::Setup | ( | kf::Setup< Float > | geoSetup, |
| const std::vector< std::pair< EDetectorID, int > > & | inactiveStations ) |
Constructor.
| geoSetup | A valid geometrical kf::Setup (NOTE: resource is moved) |
| inactiveStations | A vector of pairs {detId, locId} for inactive layers in geo Setup |
Definition at line 20 of file CaSetup.cxx.
References ActToLocStationId(), fActSetup, fGeoSetup, fvActToGeoMap, fvGeoToActMap, and LocToGeoStationId().
|
inline |
Copy-convert constructor.
| SrcFloat | Underlying floating-point data type of the source |
Definition at line 73 of file CaSetup.h.
References fActSetup, fGeoSetup, fvActToGeoMap, fvGeoToActMap, and Setup.
|
default |
Default copy constructor.
References Setup.
|
default |
Move constructor.
References Setup.
|
default |
Destructor.
|
inline |
Converts active station ID to geometry station ID.
| actId | Active station ID |
Definition at line 119 of file CaSetup.h.
References fvActToGeoMap.
|
inline |
|
inline |
Converts geometry station ID to active station ID.
| geoId | Geometry station ID |
Definition at line 132 of file CaSetup.h.
References fvGeoToActMap.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
Copy assignment operator.
References Setup.
|
default |
Move assignment operator.
References Setup.
|
inlineprivate |
Serialization method.
Definition at line 173 of file CaSetup.h.
References fActSetup, fGeoSetup, fvActToGeoMap, and fvGeoToActMap.
|
friend |
Definition at line 161 of file CaSetup.h.
References boost::serialization::access.
Referenced by boost::serialization::access.
Definition at line 56 of file CaSetup.h.
References Setup.
Referenced by operator=(), operator=(), Setup, Setup(), Setup(), and Setup().
|
private |
Active KF-setup (includes only inactive stations)
Definition at line 167 of file CaSetup.h.
Referenced by ActToLocStationId(), GetActiveSetup(), GetNofActStations(), GetNofActStations(), LocToActStationId(), serialize(), Setup(), and Setup().
|
private |
Geometry KF-setup (includes both active and inactive stations)
Definition at line 166 of file CaSetup.h.
Referenced by GeoToLocStationId(), GetGeometrySetup(), GetNofGeoStations(), GetNofGeoStations(), LocToGeoStationId(), serialize(), Setup(), and Setup().
|
private |
Maps actId -> geoId [actId].
Definition at line 169 of file CaSetup.h.
Referenced by ActToGeoStationId(), serialize(), Setup(), and Setup().
|
private |
Maps geoId -> actId [geoId].
Definition at line 168 of file CaSetup.h.
Referenced by GeoToActStationId(), serialize(), Setup(), and Setup().