|
CbmRoot
|
Parameters container for CbmStsParSensor. More...
#include <CbmStsParSetSensor.h>
Public Member Functions | |
| CbmStsParSetSensor (const char *name="CbmParSetSensor", const char *title="STS parameters", const char *context="Default") | |
| Constructor. | |
| virtual | ~CbmStsParSetSensor () |
| Destructor. | |
| virtual void | clear () |
| Reset all parameters. | |
| virtual Bool_t | getParams (FairParamList *parList) |
| Reading parameters from ASCII. Abstract in base class. | |
| const CbmStsParSensor & | GetParSensor (UInt_t address) |
| Get condition parameters of a sensor. | |
| virtual void | putParams (FairParamList *parList) |
| Writing parameters to ASCII. Abstract in base class. | |
| void | SetGlobalPar (const CbmStsParSensor ¶ms) |
| Set global parameters (for all modules) | |
| void | SetParSensor (UInt_t address, const CbmStsParSensor &par) |
| Set the parameters for a sensor. | |
| std::string | ToString () const |
| Info to string. | |
Private Member Functions | |
| ClassDef (CbmStsParSetSensor, 1) | |
Private Attributes | |
| Bool_t | fUseGlobal = kFALSE |
| Flag for using global parameters. | |
| CbmStsParSensor | fGlobalParams {} |
| Global parameters, used for all modules. | |
| std::map< UInt_t, CbmStsParSensor > | fParams {} |
| Map of parameters. Key is sensor address. | |
Parameters container for CbmStsParSensor.
A set of parameters for each STS sensor is administered through FairRuntimeDb.
Definition at line 34 of file CbmStsParSetSensor.h.
| CbmStsParSetSensor::CbmStsParSetSensor | ( | const char * | name = "CbmParSetSensor", |
| const char * | title = "STS parameters", | ||
| const char * | context = "Default" ) |
Constructor.
| name | Name of parameter set |
| title | Parameter container factory name |
| context | No idea |
Referenced by ClassDef().
|
virtual |
Destructor.
Definition at line 29 of file CbmStsParSetSensor.cxx.
|
private |
References CbmStsParSetSensor().
|
virtual |
Reset all parameters.
Definition at line 34 of file CbmStsParSetSensor.cxx.
References fParams, and fUseGlobal.
|
virtual |
Reading parameters from ASCII. Abstract in base class.
An ASCII I/O is not implemented. The method throws an error.
Definition at line 45 of file CbmStsParSetSensor.cxx.
| const CbmStsParSensor & CbmStsParSetSensor::GetParSensor | ( | UInt_t | address | ) |
Get condition parameters of a sensor.
| Module | address |
Definition at line 54 of file CbmStsParSetSensor.cxx.
References fGlobalParams, fParams, and fUseGlobal.
Referenced by CbmStsSetup::SetSensorParameters().
|
virtual |
Writing parameters to ASCII. Abstract in base class.
An ASCII I/O is not implemented. The method throws an error.
Definition at line 65 of file CbmStsParSetSensor.cxx.
|
inline |
Set global parameters (for all modules)
| conditions | Module parameter object |
Definition at line 78 of file CbmStsParSetSensor.h.
References fGlobalParams, and fUseGlobal.
| void CbmStsParSetSensor::SetParSensor | ( | UInt_t | address, |
| const CbmStsParSensor & | par ) |
Set the parameters for a sensor.
| address | Sensor address |
| parSensor | parameter object |
Definition at line 70 of file CbmStsParSetSensor.cxx.
References fParams.
| std::string CbmStsParSetSensor::ToString | ( | ) | const |
Info to string.
Definition at line 79 of file CbmStsParSetSensor.cxx.
References fGlobalParams, fParams, and fUseGlobal.
|
private |
Global parameters, used for all modules.
Definition at line 101 of file CbmStsParSetSensor.h.
Referenced by GetParSensor(), SetGlobalPar(), and ToString().
|
private |
Map of parameters. Key is sensor address.
Definition at line 104 of file CbmStsParSetSensor.h.
Referenced by clear(), GetParSensor(), SetParSensor(), and ToString().
|
private |
Flag for using global parameters.
Definition at line 98 of file CbmStsParSetSensor.h.
Referenced by clear(), GetParSensor(), SetGlobalPar(), and ToString().