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. More... | |
CbmStsParSetSensor (const CbmStsParSetSensor &)=delete | |
Copy constructor (disabled) More... | |
CbmStsParSetSensor (CbmStsParSetSensor &&)=delete | |
Move constructor (disabled) More... | |
virtual void | clear () |
Reset all parameters. More... | |
virtual | ~CbmStsParSetSensor () |
Destructor. More... | |
virtual Bool_t | getParams (FairParamList *parList) |
Reading parameters from ASCII. Abstract in base class. More... | |
const CbmStsParSensor & | GetParSensor (UInt_t address) |
Get condition parameters of a sensor. More... | |
CbmStsParSetSensor & | operator= (const CbmStsParSetSensor &)=delete |
Copy assignment operator (disabled) More... | |
CbmStsParSetSensor & | operator= (CbmStsParSetSensor &&)=delete |
Move assignment operator (disabled) More... | |
virtual void | putParams (FairParamList *parList) |
Writing parameters to ASCII. Abstract in base class. More... | |
void | SetGlobalPar (const CbmStsParSensor ¶ms) |
Set global parameters (for all modules) More... | |
void | SetParSensor (UInt_t address, const CbmStsParSensor &par) |
Set the parameters for a sensor. More... | |
std::string | ToString () const |
Info to string. More... | |
Private Member Functions | |
ClassDef (CbmStsParSetSensor, 1) | |
Private Attributes | |
Bool_t | fUseGlobal = kFALSE |
Flag for using global parameters. More... | |
CbmStsParSensor | fGlobalParams {} |
Global parameters, used for all modules. More... | |
std::map< UInt_t, CbmStsParSensor > | fParams {} |
Map of parameters. Key is sensor address. More... | |
Parameters container for CbmStsParSensor.
A set of parameters for each STS sensor is administered through FairRuntimeDb.
Definition at line 30 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 |
|
delete |
Copy constructor (disabled)
|
delete |
Move constructor (disabled)
|
virtual |
Destructor.
Definition at line 26 of file CbmStsParSetSensor.cxx.
|
private |
|
virtual |
Reset all parameters.
Definition at line 31 of file CbmStsParSetSensor.cxx.
References fParams, and fUseGlobal.
Referenced by CbmStsDigitize::InitParams().
|
virtual |
Reading parameters from ASCII. Abstract in base class.
An ASCII I/O is not implemented. The method throws an error.
Definition at line 41 of file CbmStsParSetSensor.cxx.
const CbmStsParSensor & CbmStsParSetSensor::GetParSensor | ( | UInt_t | address | ) |
Get condition parameters of a sensor.
Module | address |
Definition at line 49 of file CbmStsParSetSensor.cxx.
References fGlobalParams, fParams, and fUseGlobal.
Referenced by CbmRecoSts::CreateModules(), CbmStsDigitize::InitSensors(), and CbmStsSetup::SetSensorParameters().
|
delete |
Move assignment operator (disabled)
|
delete |
Copy assignment operator (disabled)
|
virtual |
Writing parameters to ASCII. Abstract in base class.
An ASCII I/O is not implemented. The method throws an error.
Definition at line 58 of file CbmStsParSetSensor.cxx.
|
inline |
Set global parameters (for all modules)
conditions | Module parameter object |
Definition at line 91 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 65 of file CbmStsParSetSensor.cxx.
References fParams.
Referenced by CbmStsDigitize::InitParams().
std::string CbmStsParSetSensor::ToString | ( | ) | const |
Info to string.
Definition at line 76 of file CbmStsParSetSensor.cxx.
References fGlobalParams, fParams, fUseGlobal, and CbmStsParSensor::ToString().
Referenced by CbmStsDigitize::InitParams().
|
private |
Global parameters, used for all modules.
Definition at line 113 of file CbmStsParSetSensor.h.
Referenced by GetParSensor(), SetGlobalPar(), and ToString().
|
private |
Map of parameters. Key is sensor address.
Definition at line 116 of file CbmStsParSetSensor.h.
Referenced by clear(), GetParSensor(), SetParSensor(), and ToString().
|
private |
Flag for using global parameters.
Definition at line 110 of file CbmStsParSetSensor.h.
Referenced by clear(), GetParSensor(), SetGlobalPar(), and ToString().