CbmRoot
CbmStsParSetSensorCond Class Reference

Parameters container for CbmStsParSensorCond. More...

#include <CbmStsParSetSensorCond.h>

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

Public Member Functions

 CbmStsParSetSensorCond (const char *name="CbmStsParSetSensorCond", const char *title="STS parameters", const char *context="Default")
 Constructor. More...
 
 CbmStsParSetSensorCond (const CbmStsParSetSensorCond &)=delete
 Copy constructor (disabled) More...
 
 CbmStsParSetSensorCond (CbmStsParSetSensorCond &&)=delete
 Move constructor (disabled) More...
 
virtual ~CbmStsParSetSensorCond ()
 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 CbmStsParSensorCondGetParSensor (UInt_t address)
 Get condition parameters of a sensor. More...
 
Bool_t IsSet () const
 Check for parameter set being filled. More...
 
CbmStsParSetSensorCondoperator= (const CbmStsParSetSensorCond &)=delete
 Copy assignment operator (disabled) More...
 
CbmStsParSetSensorCondoperator= (CbmStsParSetSensorCond &&)=delete
 Move assignment operator (disabled) More...
 
virtual void putParams (FairParamList *parList)
 Writing parameters to ASCII. Abstract in base class. More...
 
UInt_t ReadParams (const char *fileName)
 Read sensor conditions from file. More...
 
void SetGlobalPar (Double_t vDep, Double_t vBias, Double_t temperature, Double_t cCoupling, Double_t cInterstrip)
 Set global conditions (for all sensors) More...
 
void SetGlobalPar (const CbmStsParSensorCond &conditions)
 Set global conditions (for all sensors) More...
 
std::string ToString ()
 Info to string. More...
 

Private Member Functions

void Init ()
 Initialise all condition parameters. More...
 
 ClassDef (CbmStsParSetSensorCond, 2)
 Initialisation flag. More...
 

Private Attributes

CbmStsParSensorCond fGlobalParams {}
 Global parameters, used for all sensors. More...
 
std::map< UInt_t, CbmStsParSensorCondfParams {}
 Map of parameters. Key is sensor address. More...
 
Bool_t fGlobal = kFALSE
 Use global parameters for all sensors. More...
 
Bool_t fIsInit = kFALSE
 

Detailed Description

Parameters container for CbmStsParSensorCond.

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

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

Definition at line 30 of file CbmStsParSetSensorCond.h.

Constructor & Destructor Documentation

◆ CbmStsParSetSensorCond() [1/3]

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

Constructor.

Parameters
nameName of parameter set
titleParameter container factory name
contextNo idea

◆ CbmStsParSetSensorCond() [2/3]

CbmStsParSetSensorCond::CbmStsParSetSensorCond ( const CbmStsParSetSensorCond )
delete

Copy constructor (disabled)

◆ CbmStsParSetSensorCond() [3/3]

CbmStsParSetSensorCond::CbmStsParSetSensorCond ( CbmStsParSetSensorCond &&  )
delete

Move constructor (disabled)

◆ ~CbmStsParSetSensorCond()

CbmStsParSetSensorCond::~CbmStsParSetSensorCond ( )
virtual

Destructor.

Definition at line 32 of file CbmStsParSetSensorCond.cxx.

Member Function Documentation

◆ ClassDef()

CbmStsParSetSensorCond::ClassDef ( CbmStsParSetSensorCond  ,
 
)
private

Initialisation flag.

◆ clear()

void CbmStsParSetSensorCond::clear ( )
virtual

Reset all parameters.

Definition at line 37 of file CbmStsParSetSensorCond.cxx.

References fGlobal, fIsInit, and fParams.

Referenced by CbmStsDigitize::InitParams().

◆ getParams()

Bool_t CbmStsParSetSensorCond::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 48 of file CbmStsParSetSensorCond.cxx.

◆ GetParSensor()

const CbmStsParSensorCond & CbmStsParSetSensorCond::GetParSensor ( UInt_t  address)

Get condition parameters of a sensor.

Parameters
Sensoraddress
Returns
Condition parameter object

Definition at line 57 of file CbmStsParSetSensorCond.cxx.

References fGlobal, fGlobalParams, fIsInit, fParams, and Init().

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

◆ Init()

void CbmStsParSetSensorCond::Init ( )
private

Initialise all condition parameters.

When the parameter set is streamed, the derived parameters of the conditions are not set, since the default constructor is called. So, the Init method of all conditions has to be called.

Definition at line 74 of file CbmStsParSetSensorCond.cxx.

References fGlobalParams, fIsInit, fParams, and CbmStsParSensorCond::Init().

Referenced by GetParSensor(), and ToString().

◆ IsSet()

Bool_t CbmStsParSetSensorCond::IsSet ( ) const
inline

Check for parameter set being filled.

Returns
kTRUE if neither global parameters nor parameter map are set

Definition at line 76 of file CbmStsParSetSensorCond.h.

References fGlobal, and fParams.

Referenced by ToString().

◆ operator=() [1/2]

CbmStsParSetSensorCond& CbmStsParSetSensorCond::operator= ( CbmStsParSetSensorCond &&  )
delete

Move assignment operator (disabled)

◆ operator=() [2/2]

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

Copy assignment operator (disabled)

◆ putParams()

void CbmStsParSetSensorCond::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 89 of file CbmStsParSetSensorCond.cxx.

◆ ReadParams()

UInt_t CbmStsParSetSensorCond::ReadParams ( const char *  fileName)

Read sensor conditions from file.

Parameters
fileNameName of file with sensor conditions @value Number of sensors the conditions are set for

The file with the conditions is read and the condition parameters for the sensor are set accordingly. Each sensor in the setup must show up in the file.

The format is a text file containing for each sensor a line with sensor_name vDep vBias temperature cCoupling cInterstrip separated by blanks. Empty lines or lines starting with '#' (comments) are ignored.

TODO: Is using the RuntimeDb ASCII interface an alternative?

Definition at line 96 of file CbmStsParSetSensorCond.cxx.

References fGlobal, and fParams.

◆ SetGlobalPar() [1/2]

void CbmStsParSetSensorCond::SetGlobalPar ( const CbmStsParSensorCond conditions)

Set global conditions (for all sensors)

Parameters
conditionsSensor condition object

Definition at line 196 of file CbmStsParSetSensorCond.cxx.

References CbmStsParSensorCond::GetCcoupling(), CbmStsParSensorCond::GetCinterstrip(), CbmStsParSensorCond::GetTemperature(), CbmStsParSensorCond::GetVbias(), CbmStsParSensorCond::GetVfd(), and SetGlobalPar().

◆ SetGlobalPar() [2/2]

void CbmStsParSetSensorCond::SetGlobalPar ( Double_t  vDep,
Double_t  vBias,
Double_t  temperature,
Double_t  cCoupling,
Double_t  cInterstrip 
)

Set global conditions (for all sensors)

Parameters
vDepFull-depletion voltage [V]
vBiasBias voltage [V]
temperatureTemperature [K]
cCouplingCoupling capacitance [pF]
cInterstripInter-strip capacitance [pF]

Definition at line 182 of file CbmStsParSetSensorCond.cxx.

References fGlobal, fGlobalParams, and CbmStsParSensorCond::SetParams().

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

◆ ToString()

std::string CbmStsParSetSensorCond::ToString ( )

Member Data Documentation

◆ fGlobal

Bool_t CbmStsParSetSensorCond::fGlobal = kFALSE
private

Use global parameters for all sensors.

Definition at line 153 of file CbmStsParSetSensorCond.h.

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

◆ fGlobalParams

CbmStsParSensorCond CbmStsParSetSensorCond::fGlobalParams {}
private

Global parameters, used for all sensors.

Definition at line 148 of file CbmStsParSetSensorCond.h.

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

◆ fIsInit

Bool_t CbmStsParSetSensorCond::fIsInit = kFALSE
private

Definition at line 154 of file CbmStsParSetSensorCond.h.

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

◆ fParams

std::map<UInt_t, CbmStsParSensorCond> CbmStsParSetSensorCond::fParams {}
private

Map of parameters. Key is sensor address.

Definition at line 151 of file CbmStsParSetSensorCond.h.

Referenced by clear(), GetParSensor(), Init(), IsSet(), ReadParams(), and ToString().


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