CbmRoot
Loading...
Searching...
No Matches
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.
 
virtual ~CbmStsParSetSensor ()
 Destructor.
 
virtual void clear ()
 Reset all parameters.
 
virtual Bool_t getParams (FairParamList *parList)
 Reading parameters from ASCII. Abstract in base class.
 
const CbmStsParSensorGetParSensor (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 &params)
 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, CbmStsParSensorfParams {}
 Map of parameters. Key is sensor address.
 

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 34 of file CbmStsParSetSensor.h.

Constructor & Destructor Documentation

◆ CbmStsParSetSensor()

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

CbmStsParSetSensor::~CbmStsParSetSensor ( )
virtual

Destructor.

Definition at line 29 of file CbmStsParSetSensor.cxx.

Member Function Documentation

◆ ClassDef()

CbmStsParSetSensor::ClassDef ( CbmStsParSetSensor ,
1  )
private

◆ clear()

void CbmStsParSetSensor::clear ( )
virtual

◆ 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 45 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 54 of file CbmStsParSetSensor.cxx.

References fGlobalParams, fParams, and fUseGlobal.

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

◆ 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 65 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 78 of file CbmStsParSetSensor.h.

References fGlobalParams, and fUseGlobal.

Referenced by CbmRecoSts::InitParams(), and CbmTaskStsHitFinderParWrite::InitParams().

◆ SetParSensor()

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

Set the parameters for a sensor.

Parameters
addressSensor address
parSensorparameter object

Definition at line 70 of file CbmStsParSetSensor.cxx.

References fParams.

Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitizePixel::InitParams().

◆ ToString()

Member Data Documentation

◆ fGlobalParams

CbmStsParSensor CbmStsParSetSensor::fGlobalParams {}
private

Global parameters, used for all modules.

Definition at line 101 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 104 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 98 of file CbmStsParSetSensor.h.

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


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