CbmRoot
Loading...
Searching...
No Matches
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.
 
virtual ~CbmStsParSetSensorCond ()
 Destructor.
 
virtual void clear ()
 Reset all parameters.
 
virtual Bool_t getParams (FairParamList *parList)
 Reading parameters from ASCII. Abstract in base class.
 
const CbmStsParSensorCondGetParSensor (UInt_t address)
 Get condition parameters of a sensor.
 
Bool_t IsSet () const
 Check for parameter set being filled.
 
virtual void putParams (FairParamList *parList)
 Writing parameters to ASCII. Abstract in base class.
 
UInt_t ReadParams (const char *fileName)
 Read sensor conditions from file.
 
void SetGlobalPar (Double_t vDep, Double_t vBias, Double_t temperature, Double_t cCoupling, Double_t cInterstrip)
 Set global conditions (for all sensors)
 
void SetGlobalPar (const CbmStsParSensorCond &conditions)
 Set global conditions (for all sensors)
 
std::string ToString ()
 Info to string.
 

Private Member Functions

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

Private Attributes

CbmStsParSensorCond fGlobalParams {}
 Global parameters, used for all sensors.
 
std::map< UInt_t, CbmStsParSensorCondfParams {}
 Map of parameters. Key is sensor address.
 
Bool_t fGlobal = kFALSE
 Use global parameters for all sensors.
 
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 34 of file CbmStsParSetSensorCond.h.

Constructor & Destructor Documentation

◆ CbmStsParSetSensorCond()

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

CbmStsParSetSensorCond::~CbmStsParSetSensorCond ( )
virtual

Destructor.

Definition at line 37 of file CbmStsParSetSensorCond.cxx.

Member Function Documentation

◆ ClassDef()

CbmStsParSetSensorCond::ClassDef ( CbmStsParSetSensorCond ,
2  )
private

Initialisation flag.

◆ clear()

void CbmStsParSetSensorCond::clear ( )
virtual

◆ 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 54 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 63 of file CbmStsParSetSensorCond.cxx.

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

Referenced by CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::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 81 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 71 of file CbmStsParSetSensorCond.h.

References fGlobal, and fParams.

Referenced by ToString().

◆ 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 97 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 102 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 188 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 177 of file CbmStsParSetSensorCond.cxx.

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

Referenced by CbmRecoSts::InitParams(), CbmStsDigitize::InitParams(), CbmTaskStsHitFinderParWrite::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 136 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 131 of file CbmStsParSetSensorCond.h.

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

◆ fIsInit

Bool_t CbmStsParSetSensorCond::fIsInit = kFALSE
private

Definition at line 137 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 134 of file CbmStsParSetSensorCond.h.

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


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