125 void SetFieldFunction(
const std::function<
void(
const double (&xyz)[3],
double (&B)[3])>& getFieldValue);
131 [[deprecated(
"Please, use constructor to set station ID")]]
void SetStationID(
int inID);
163 std::string
ToString(
int verbosityLevel = 0,
int indentLevel = 0)
const;
A base class which provides interface to L1Algo station geometry.
int fStationID
Local ID of a station.
double fYmax
Maximum distance between station center and its edge in y direction.
bool fTrackingStatus
Tracking status: true - station is used for tracking.
EDetectorID GetDetectorID() const
Gets detector ID.
void SetYmax(double aSize)
Sets maximum distance between station center and its edge in y direction.
double GetXmax() const
Gets maximum distance between station center and its edge in x direction.
void SetStationID(int inID)
Sets station ID.
double GetYmax() const
Gets maximum distance between station center and its edge in y direction.
double fXmax
Maximum distance between station center and its edge in x direction.
int GetStationID() const
Gets station ID.
EInitKey
Enumeration of fields, which must be initialized so the object can pass the threshold.
@ kYmax
max size in Y direction
@ kZmin
min z of the station
@ kZref
reference z of the station
@ kTimeInfo
if time info is used (flag)
@ kTrackingStatus
flag, if station is used in tracking or not
@ kZmax
max z of the station
@ kFieldSlice
ca::Station.ca::FieldSlice object initialization
@ kGeoLayerID
index of geo layer in geometrical setup (including possibly inactive stations)
@ kFieldStatus
if station is placed in field (flag)
@ kXmax
max size in X direction
EDetectorID fDetectorID
Detector ID.
double GetZmax() const
Gets max z of the station [cm].
~StationInitializer() noexcept=default
Destructor.
void SetZmax(double inZ)
Sets max z of the station.
void SetZmin(double inZ)
Sets min z of the station.
void SetStationType(int inType)
Sets type of station.
void SetZref(double inZ)
Sets reference z position of the station.
bool GetTrackingStatus() const
Gets tracking status: true - station is active for tracking, false - station exists,...
double GetZref() const
Gets double precised z position of the station [cm].
fvec GetZsimdVec() const
Gets SIMD vectorized z position of the station [cm].
ManagementFlags_t fManagementFlags
bitset flags to manage internal behaviour of the class
void SetGeoLayerID(int geoLayerID)
Sets geometry ID (index of the layer in the geometrical setup)
std::string ToString(int verbosityLevel=0, int indentLevel=0) const
String representation of class contents.
StationInitializer()=default
Default constructor.
void SetTimeInfo(int inTimeInfo)
Sets flag: 0 - time information is not provided by this detector type 1 - time information is provide...
void Swap(StationInitializer &other) noexcept
Swap method for easy implementation of move constructor and copy and move assignment operator.
Station< fvec > fStation
ca::Station structure, describes a station in L1Algo
std::bitset< static_cast< int >(EManagementFlag::kEnd)> ManagementFlags_t
InitController_t fInitController
Class fileds initialization flags.
int GetFieldStatus() const
Gets field status: 0 - station is outside the field, 1 - station is inside the field.
void SetFieldStatus(int fieldStatus)
Sets flag: true - station is placed in field, false - station is placed outside the field.
void SetDetectorID(EDetectorID inID)
Sets detector ID.
const Station< fvec > & GetStation() const
Gets a reference to ca::Station info field of the L1BaseStation info.
void SetTrackingStatus(bool flag)
Sets tracking status: true - station is active for tracking, false - station exists,...
void Reset()
Resets fields to the default values.
double GetZmin() const
Gets min z of the station [cm].
EManagementFlag
Enumeration for internal logic control.
@ kThicknessMapMoved
if the thickness map was moved from the StationInitializer instance
void SetXmax(double aSize)
Sets maximum distance between station center and its edge in x direction.
const InitController_t & GetInitController() const
Gets a const reference to the ca::ObjectInitController object.
void SetFieldFunction(const std::function< void(const double(&xyz)[3], double(&B)[3])> &getFieldValue)
Sets arrays of the approcimation.
int GetStationType() const
Gets station type.
TODO: SZh 8.11.2022: add selection of parameterisation.
void swap(StationInitializer &a, StationInitializer &b) noexcept
swap function for two StationInitializer objects, expected to be used instead of std::swap
EDetectorID
Enumeration for the tracking detector subsystems in CBM-CA.