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. | |
virtual | ~CbmStsParSetModule () |
Destructor. | |
virtual void | clear () |
Reset all parameters. | |
UInt_t | DeactivateRandomChannels (Double_t fraction) |
Randomly deactivate a fraction of the channels. | |
virtual Bool_t | getParams (FairParamList *parList) |
Reading parameters from ASCII. Abstract in base class. | |
const CbmStsParModule & | GetParModule (UInt_t address) |
Get condition parameters of a sensor. | |
Bool_t | IsSet () const |
Check whether parameter container is set. | |
virtual void | putParams (FairParamList *parList) |
void | SetGlobalPar (const CbmStsParModule ¶ms) |
Set global parameters (for all modules) | |
void | SetParModule (UInt_t address, const CbmStsParModule &par) |
Set the parameters for a module. | |
std::string | ToString () const |
Info to string. | |
Private Member Functions | |
ClassDef (CbmStsParSetModule, 1) | |
Private Attributes | |
Bool_t | fUseGlobal = kFALSE |
Flag for using global parameters. | |
CbmStsParModule | fGlobalParams {} |
Global parameters, used for all modules. | |
std::map< UInt_t, CbmStsParModule > | fParams {} |
Map of parameters. Key is module address. | |
Parameters container for CbmStsParModule.
A set of parameters for each STS module is administered through FairRuntimeDb.
Definition at line 34 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 |
|
virtual |
Destructor.
Definition at line 31 of file CbmStsParSetModule.cxx.
|
private |
|
virtual |
Reset all parameters.
Definition at line 36 of file CbmStsParSetModule.cxx.
References fParams, and fUseGlobal.
Referenced by CbmRecoSts::InitParams(), CbmStsDigitize::InitParams(), CbmStsDigitizePixel::InitParams(), and CbmTaskStsHitFinderParWrite::InitParams().
UInt_t CbmStsParSetModule::DeactivateRandomChannels | ( | Double_t | fraction | ) |
Randomly deactivate a fraction of the channels.
fraction | Fraction of channels to deactivate |
Definition at line 47 of file CbmStsParSetModule.cxx.
References fParams.
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 60 of file CbmStsParSetModule.cxx.
const CbmStsParModule & CbmStsParSetModule::GetParModule | ( | UInt_t | address | ) |
Get condition parameters of a sensor.
Module | address |
Definition at line 69 of file CbmStsParSetModule.cxx.
References fGlobalParams, fParams, and fUseGlobal.
Referenced by CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsDigitizeQa::Init(), CbmStsDigitize::InitModules(), CbmRecoStsPixel::ProcessData(), 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 81 of file CbmStsParSetModule.h.
References fParams, and fUseGlobal.
|
virtual |
Definition at line 79 of file CbmStsParSetModule.cxx.
|
inline |
Set global parameters (for all modules)
conditions | Module parameter object |
Definition at line 90 of file CbmStsParSetModule.h.
References fGlobalParams, and fUseGlobal.
Referenced by CbmRecoSts::InitParams(), and CbmTaskStsHitFinderParWrite::InitParams().
void CbmStsParSetModule::SetParModule | ( | UInt_t | address, |
const CbmStsParModule & | par ) |
Set the parameters for a module.
address | Module address |
par | Module parameter object |
Definition at line 84 of file CbmStsParSetModule.cxx.
References fParams.
Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitizePixel::InitParams().
std::string CbmStsParSetModule::ToString | ( | ) | const |
Info to string.
Definition at line 93 of file CbmStsParSetModule.cxx.
References fGlobalParams, fParams, fUseGlobal, and CbmStsParModule::ToString().
Referenced by CbmRecoStsPixel::Init(), CbmRecoSts::InitParams(), CbmStsDigitize::InitParams(), CbmStsDigitizePixel::InitParams(), and CbmTaskStsHitFinderParWrite::InitParams().
|
private |
Global parameters, used for all modules.
Definition at line 112 of file CbmStsParSetModule.h.
Referenced by GetParModule(), SetGlobalPar(), and ToString().
|
private |
Map of parameters. Key is module address.
Definition at line 115 of file CbmStsParSetModule.h.
Referenced by clear(), DeactivateRandomChannels(), GetParModule(), IsSet(), SetParModule(), and ToString().
|
private |
Flag for using global parameters.
Definition at line 109 of file CbmStsParSetModule.h.
Referenced by clear(), GetParModule(), IsSet(), SetGlobalPar(), and ToString().