CbmRoot
|
Constructional parameters of a STS sensor. More...
#include <CbmStsParSensor.h>
Public Member Functions | |
CbmStsParSensor (CbmStsSensorClass sClass=CbmStsSensorClass::kDssdStereo) | |
Constructor. More... | |
~CbmStsParSensor () | |
Destructor. More... | |
CbmStsSensorClass | GetClass () const |
Get the sensor class. More... | |
Float_t | GetPar (UInt_t index) const |
Get a parameter. More... | |
Int_t | GetParInt (UInt_t index) const |
Get the nearest integer value of a parameter. More... | |
void | SetPar (UInt_t index, Float_t value) |
Set a parameter. More... | |
std::string | ToString () const |
Info to string. More... | |
Private Member Functions | |
ClassDefNV (CbmStsParSensor, 1) | |
Private Attributes | |
CbmStsSensorClass | fClass = CbmStsSensorClass::kUnknown |
std::array< float, NPARAMS > | fPar {{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}} |
Constructional parameters of a STS sensor.
This class represents the internal design parameters of a sensor in the STS. The meaning of the parameters depends on the sensor class. For DSSD classes (stereo and ortho), the parameters describe:
Definition at line 38 of file CbmStsParSensor.h.
CbmStsParSensor::CbmStsParSensor | ( | CbmStsSensorClass | sClass = CbmStsSensorClass::kDssdStereo | ) |
Constructor.
name | Parameter set name |
title | Parameter set title |
context | Parameter context |
|
inline |
Destructor.
Definition at line 50 of file CbmStsParSensor.h.
|
private |
|
inline |
Get the sensor class.
Definition at line 56 of file CbmStsParSensor.h.
References fClass.
Referenced by CbmStsSimSensorFactory::CreateSensor(), CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), CbmStsRecoModule::Init(), and CbmStsDigitize::InitParams().
Float_t CbmStsParSensor::GetPar | ( | UInt_t | index | ) | const |
Get a parameter.
index | Parameter index |
Returns zero if index is out of range
Definition at line 22 of file CbmStsParSensor.cxx.
References fPar.
Referenced by CbmStsSimSensorFactory::CreateSensor(), GetParInt(), CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), CbmStsRecoModule::Init(), and CbmStsDigitize::InitParams().
Int_t CbmStsParSensor::GetParInt | ( | UInt_t | index | ) | const |
Get the nearest integer value of a parameter.
index | Parameter index |
Returns zero if index is out of range
Definition at line 31 of file CbmStsParSensor.cxx.
References GetPar().
Referenced by CbmStsSimSensorFactory::CreateSensor(), and CbmStsRecoModule::Init().
|
inline |
Set a parameter.
index | Parameter index |
value | Parameter value |
No action if index is out of range.
Definition at line 83 of file CbmStsParSensor.h.
References fPar.
Referenced by CbmStsDigitize::InitParams(), and CbmStsDigitize::SetGlobalDefaults().
std::string CbmStsParSensor::ToString | ( | ) | const |
Info to string.
Definition at line 38 of file CbmStsParSensor.cxx.
References fClass, fPar, kDssdOrtho, and kDssdStereo.
Referenced by CbmStsParSetSensor::ToString().
|
private |
Definition at line 93 of file CbmStsParSensor.h.
Referenced by GetClass(), and ToString().
|
private |
Definition at line 94 of file CbmStsParSensor.h.
Referenced by GetPar(), SetPar(), and ToString().