15#include <boost/serialization/access.hpp>
16#include <boost/serialization/array.hpp>
17#include <boost/serialization/split_free.hpp>
53 template<
typename Float>
54 class alignas(constants::misc::Alignment)
Setup {
72 template<
typename SrcFloat>
126 return fActSetup.GetIndexMap().template GlobalToLocal<EDetectorID>(actId);
139 return fGeoSetup.GetIndexMap().template GlobalToLocal<EDetectorID>(geoId);
148 return fActSetup.GetIndexMap().LocalToGlobal(detId, locId);
157 return fGeoSetup.GetIndexMap().LocalToGlobal(detId, locId);
172 template<
class Archive>
Compile-time constants definition for the CA tracking algorithm.
Setup representation for the Kalman-filter framework (header)
StationArray_t< int > fvGeoToActMap
Maps geoId -> actId [geoId].
Setup(const Setup &)=default
Default copy constructor.
std::pair< EDetectorID, int > ActToLocStationId(int actId) const
Converts active station ID to (detector ID, local station ID)
int GetNofGeoStations() const
Gets total number of geometry stations.
Setup & operator=(Setup &&)=default
Move assignment operator.
int LocToGeoStationId(EDetectorID detId, int locId) const
Converts (detectorId, local station ID) to geometry station ID.
int GetNofActStations() const
Gets total number of active stations.
int ActToGeoStationId(int actId) const
Converts active station ID to geometry station ID.
KfSetup_t fActSetup
Active KF-setup (includes only inactive stations)
void serialize(Archive &ar, const unsigned int)
Serialization method.
int LocToActStationId(EDetectorID detId, int locId) const
Converts (detectorId, local station ID) to active station ID.
Setup(const Setup< SrcFloat > &other)
Copy-convert constructor.
KfSetup_t fGeoSetup
Geometry KF-setup (includes both active and inactive stations)
std::pair< EDetectorID, int > GeoToLocStationId(int geoId) const
Converts geometry station ID to (detector ID, local station ID)
typename kf::Setup< Float > KfSetup_t
StationArray_t< int > fvActToGeoMap
Maps actId -> geoId [actId].
std::array< T, constants::size::MaxNstations > StationArray_t
Setup(Setup &&)=default
Move constructor.
int GetNofActStations(EDetectorID detId) const
Gets number of active stations for a given detector subsystem.
int GeoToActStationId(int geoId) const
Converts geometry station ID to active station ID.
~Setup()=default
Destructor.
Setup & operator=(const Setup &other)=default
Copy assignment operator.
friend class boost::serialization::access
int GetNofGeoStations(EDetectorID detId) const
Gets number of geometry stations for a given detector subsystem.
const KfSetup_t & GetActiveSetup() const
Constant accessor to the active setup.
Setup()=default
Default constructor (for serialization)
const KfSetup_t & GetGeometrySetup() const
Constant accessor to the geometry setup.
KF-framework representation of the detector setup.
TODO: SZh 8.11.2022: add selection of parameterisation.
EDetectorID
Enumeration for the tracking detector subsystems in CBM-CA.