12#define CBMSTSSETUP_H 1
20#include <RtypesCore.h>
123 Bool_t
Init(
const char* geometryFile =
nullptr);
162 LOG(info) << it->second->ToString();
Class representing an element of the STS setup.
Class representing an instance of a readout unit in the CBM-STS.
Parameters container for CbmStsParModule.
Parameters container for CbmStsParSensorCond.
Parameters container for CbmStsParSensor.
Class representing an instance of a sensor in the CBM-STS.
Class representing the top level of the STS setup.
const char * GetLevelName(Int_t level) const
static CbmStsSetup * fgInstance
Static instance of this class.
Bool_t IsModuleParsInit() const
Initialisation status for module parameters.
CbmStsSetup()
Default constructor
Int_t GetNofSensors() const
Bool_t fIsSensorCondInit
Sensor conditions set.
Bool_t ReadGeometry(TGeoManager *geoManager)
Read the geometry from TGeoManager.
Bool_t IsSensorParsInit() const
Initialisation status for sensor parameters.
Bool_t fHasStations
Legacy with stations instead of units.
Bool_t Init(const char *geometryFile=nullptr)
Initialise the setup.
CbmStsModule * GetModule(Int_t index) const
Get a module from the module array.
Bool_t fIsSensorParsInit
Sensor parameters set.
CbmStsSetup(const CbmStsSetup &)=delete
Copy constructor (disabled)
CbmStsElement * GetElement(Int_t address, Int_t level)
UInt_t SetSensorConditions(CbmStsParSetSensorCond *conds)
Set sensor conditions from parameter container.
Int_t CreateStations()
Create station objects.
std::map< Int_t, CbmStsSensor * > fSensors
Int_t GetNofStations() const
CbmStsSetup operator=(const CbmStsSetup &)=delete
Assignment operator (disabled)
void RecomputePhysicalAssmbBbox(TGeoManager *geo)
static CbmStsSetup * Instance()
std::vector< CbmStsModule * > fModuleVector
Bool_t fIsModuleParsInit
Module parameters set.
Bool_t IsSensorCondInit() const
Initialisation status for sensor conditions.
CbmStsStation * GetStation(Int_t stationId) const
UInt_t SetModuleParameters(CbmStsParSetModule *modulePars)
Set module parameters from parameter container.
CbmStsSensor * GetSensor(Int_t index) const
Get a sensor from the sensor array.
UInt_t SetSensorParameters(CbmStsParSetSensor *parSet)
Set sensor parameters from parameter container.
std::vector< CbmStsSensor * > fSensorVector
Int_t GetStationNumber(Int_t address)
Int_t GetNofModules() const
std::map< Int_t, CbmStsModule * > fModules
Bool_t fIsInitialised
All parameter containers set.
Bool_t IsInit() const
Initialisation status for sensor parameters.
std::map< Int_t, CbmStsStation * > fStations
Class representing a station of the StsSystem.