CbmRoot
|
Parameters container for CbmStsParModule. More...
#include <CbmStsParSetModule.h>
Public Member Functions | |
CbmStsParSetModule (const char *name="CbmParSetModule", const char *title="STS parameters", const char *context="Default") | |
Constructor. More... | |
CbmStsParSetModule (const CbmStsParSetModule &)=delete | |
Copy constructor (disabled) More... | |
CbmStsParSetModule (CbmStsParSetModule &&)=delete | |
Move constructor (disabled) More... | |
virtual | ~CbmStsParSetModule () |
Destructor. More... | |
virtual void | clear () |
Reset all parameters. More... | |
virtual Bool_t | getParams (FairParamList *parList) |
Reading parameters from ASCII. Abstract in base class. More... | |
const CbmStsParModule & | GetParModule (UInt_t address) |
Get condition parameters of a sensor. More... | |
Bool_t | IsSet () const |
Check whether parameter container is set. More... | |
CbmStsParSetModule & | operator= (const CbmStsParSetModule &)=delete |
Copy assignment operator (disabled) More... | |
CbmStsParSetModule & | operator= (CbmStsParSetModule &&)=delete |
Move assignment operator (disabled) More... | |
virtual void | putParams (FairParamList *parList) |
Writing parameters to ASCII. Abstract in base class. More... | |
void | SetGlobalPar (const CbmStsParModule ¶ms) |
Set global parameters (for all modules) More... | |
std::string | ToString () const |
Info to string. More... | |
Private Member Functions | |
ClassDef (CbmStsParSetModule, 1) | |
Private Attributes | |
Bool_t | fUseGlobal = kFALSE |
Flag for using global parameters. More... | |
CbmStsParModule | fGlobalParams {} |
Global parameters, used for all modules. More... | |
std::map< UInt_t, CbmStsParModule > | fParams {} |
Map of parameters. Key is sensor address. More... | |
Parameters container for CbmStsParModule.
A set of parameters for each STS module is administered through FairRuntimeDb.
Definition at line 30 of file CbmStsParSetModule.h.
CbmStsParSetModule::CbmStsParSetModule | ( | const char * | name = "CbmParSetModule" , |
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 CbmStsParSetModule.cxx.
|
private |
|
virtual |
Reset all parameters.
Definition at line 31 of file CbmStsParSetModule.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 CbmStsParSetModule.cxx.
const CbmStsParModule & CbmStsParSetModule::GetParModule | ( | UInt_t | address | ) |
Get condition parameters of a sensor.
Module | address |
Definition at line 49 of file CbmStsParSetModule.cxx.
References fGlobalParams, fParams, and fUseGlobal.
Referenced by CbmRecoSts::CreateModules(), CbmStsDigitizeQa::Init(), CbmStsDigitize::InitModules(), and CbmStsSetup::SetModuleParameters().
|
inline |
Check whether parameter container is set.
The container is set if either global parameters are defined or the parameter map is filled.
Definition at line 79 of file CbmStsParSetModule.h.
References fParams, and fUseGlobal.
|
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 CbmStsParSetModule.cxx.
|
inline |
Set global parameters (for all modules)
conditions | Module parameter object |
Definition at line 100 of file CbmStsParSetModule.h.
References fGlobalParams, and fUseGlobal.
Referenced by CbmStsDigitize::InitParams().
std::string CbmStsParSetModule::ToString | ( | ) | const |
Info to string.
Definition at line 65 of file CbmStsParSetModule.cxx.
References fGlobalParams, fParams, fUseGlobal, and CbmStsParModule::ToString().
Referenced by CbmRecoSts::Init(), and CbmStsDigitize::InitParams().
|
private |
Global parameters, used for all modules.
Definition at line 115 of file CbmStsParSetModule.h.
Referenced by GetParModule(), SetGlobalPar(), and ToString().
|
private |
Map of parameters. Key is sensor address.
Definition at line 118 of file CbmStsParSetModule.h.
Referenced by clear(), GetParModule(), IsSet(), and ToString().
|
private |
Flag for using global parameters.
Definition at line 112 of file CbmStsParSetModule.h.
Referenced by clear(), GetParModule(), IsSet(), SetGlobalPar(), and ToString().