CbmRoot
CbmStsParSetSensor Class Reference

Parameters container for CbmStsParSensor. More...

#include <CbmStsParSetSensor.h>

Inheritance diagram for CbmStsParSetSensor:
[legend]
Collaboration diagram for CbmStsParSetSensor:
[legend]

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 CbmStsParSensorGetParSensor (UInt_t address)
 Get condition parameters of a sensor. More...
 
CbmStsParSetSensoroperator= (const CbmStsParSetSensor &)=delete
 Copy assignment operator (disabled) More...
 
CbmStsParSetSensoroperator= (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 &params)
 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, CbmStsParSensorfParams {}
 Map of parameters. Key is sensor address. More...
 

Detailed Description

Parameters container for CbmStsParSensor.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Date
06.04.2020

A set of parameters for each STS sensor is administered through FairRuntimeDb.

Definition at line 30 of file CbmStsParSetSensor.h.

Constructor & Destructor Documentation

◆ CbmStsParSetSensor() [1/3]

CbmStsParSetSensor::CbmStsParSetSensor ( const char *  name = "CbmParSetSensor",
const char *  title = "STS parameters",
const char *  context = "Default" 
)

Constructor.

Parameters
nameName of parameter set
titleParameter container factory name
contextNo idea

◆ CbmStsParSetSensor() [2/3]

CbmStsParSetSensor::CbmStsParSetSensor ( const CbmStsParSetSensor )
delete

Copy constructor (disabled)

◆ CbmStsParSetSensor() [3/3]

CbmStsParSetSensor::CbmStsParSetSensor ( CbmStsParSetSensor &&  )
delete

Move constructor (disabled)

◆ ~CbmStsParSetSensor()

CbmStsParSetSensor::~CbmStsParSetSensor ( )
virtual

Destructor.

Definition at line 26 of file CbmStsParSetSensor.cxx.

Member Function Documentation

◆ ClassDef()

CbmStsParSetSensor::ClassDef ( CbmStsParSetSensor  ,
 
)
private

◆ clear()

void CbmStsParSetSensor::clear ( )
virtual

Reset all parameters.

Definition at line 31 of file CbmStsParSetSensor.cxx.

References fParams, and fUseGlobal.

Referenced by CbmStsDigitize::InitParams().

◆ getParams()

Bool_t CbmStsParSetSensor::getParams ( FairParamList *  parList)
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.

◆ GetParSensor()

const CbmStsParSensor & CbmStsParSetSensor::GetParSensor ( UInt_t  address)

Get condition parameters of a sensor.

Parameters
Moduleaddress
Returns
Module parameter object

Definition at line 49 of file CbmStsParSetSensor.cxx.

References fGlobalParams, fParams, and fUseGlobal.

Referenced by CbmRecoSts::CreateModules(), CbmStsDigitize::InitSensors(), and CbmStsSetup::SetSensorParameters().

◆ operator=() [1/2]

CbmStsParSetSensor& CbmStsParSetSensor::operator= ( CbmStsParSetSensor &&  )
delete

Move assignment operator (disabled)

◆ operator=() [2/2]

CbmStsParSetSensor& CbmStsParSetSensor::operator= ( const CbmStsParSetSensor )
delete

Copy assignment operator (disabled)

◆ putParams()

void CbmStsParSetSensor::putParams ( FairParamList *  parList)
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.

◆ SetGlobalPar()

void CbmStsParSetSensor::SetGlobalPar ( const CbmStsParSensor params)
inline

Set global parameters (for all modules)

Parameters
conditionsModule parameter object

Definition at line 91 of file CbmStsParSetSensor.h.

References fGlobalParams, and fUseGlobal.

◆ SetParSensor()

void CbmStsParSetSensor::SetParSensor ( UInt_t  address,
const CbmStsParSensor par 
)

Set the parameters for a sensor.

Parameters
addressSensor address
parSensorparameter object

Definition at line 65 of file CbmStsParSetSensor.cxx.

References fParams.

Referenced by CbmStsDigitize::InitParams().

◆ ToString()

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().

Member Data Documentation

◆ fGlobalParams

CbmStsParSensor CbmStsParSetSensor::fGlobalParams {}
private

Global parameters, used for all modules.

Definition at line 113 of file CbmStsParSetSensor.h.

Referenced by GetParSensor(), SetGlobalPar(), and ToString().

◆ fParams

std::map<UInt_t, CbmStsParSensor> CbmStsParSetSensor::fParams {}
private

Map of parameters. Key is sensor address.

Definition at line 116 of file CbmStsParSetSensor.h.

Referenced by clear(), GetParSensor(), SetParSensor(), and ToString().

◆ fUseGlobal

Bool_t CbmStsParSetSensor::fUseGlobal = kFALSE
private

Flag for using global parameters.

Definition at line 110 of file CbmStsParSetSensor.h.

Referenced by clear(), GetParSensor(), SetGlobalPar(), and ToString().


The documentation for this class was generated from the following files: