|
CbmRoot
|
Constructional parameters of a STS sensor. More...
#include <CbmStsParSensor.h>
Public Member Functions | |
| CbmStsParSensor (CbmStsSensorClass sClass=CbmStsSensorClass::kDssdStereo) | |
| Constructor. | |
| ~CbmStsParSensor () | |
| Destructor. | |
| CbmStsSensorClass | GetClass () const |
| Get the sensor class. | |
| Float_t | GetPar (UInt_t index) const |
| Get a parameter. | |
| Int_t | GetParInt (UInt_t index) const |
| Get the nearest integer value of a parameter. | |
| void | SetPar (UInt_t index, Float_t value) |
| Set a parameter. | |
| std::string | ToString () const |
| Info to string. | |
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 42 of file CbmStsParSensor.h.
| CbmStsParSensor::CbmStsParSensor | ( | CbmStsSensorClass | sClass = CbmStsSensorClass::kDssdStereo | ) |
Constructor.
| name | Parameter set name |
| title | Parameter set title |
| context | Parameter context |
References kDssdStereo.
Referenced by ClassDefNV().
|
inline |
Destructor.
Definition at line 54 of file CbmStsParSensor.h.
|
private |
References CbmStsParSensor().
|
inline |
Get the sensor class.
Definition at line 60 of file CbmStsParSensor.h.
References fClass.
Referenced by CbmStsSimSensorFactory::CreateSensor(), CbmStsStation::GetSensorPitch(), and CbmStsStation::GetSensorStereoAngle().
| 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 28 of file CbmStsParSensor.cxx.
References fPar.
Referenced by CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSimSensorFactory::CreateSensor(), GetParInt(), CbmStsStation::GetSensorPitch(), and CbmStsStation::GetSensorStereoAngle().
| 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 38 of file CbmStsParSensor.cxx.
References GetPar().
Referenced by CbmStsSimSensorFactory::CreateSensor().
|
inline |
Set a parameter.
| index | Parameter index |
| value | Parameter value |
No action if index is out of range.
Definition at line 87 of file CbmStsParSensor.h.
References fPar.
Referenced by CbmOnlineParWrite::AddSts(), CbmStsDigitize::InitParams(), and CbmStsDigitizePixel::InitParams().
| std::string CbmStsParSensor::ToString | ( | ) | const |
Info to string.
Definition at line 43 of file CbmStsParSensor.cxx.
References fClass, fPar, kDssdOrtho, and kDssdStereo.
|
private |
Definition at line 98 of file CbmStsParSensor.h.
Referenced by GetClass(), and ToString().
|
private |
Definition at line 99 of file CbmStsParSensor.h.
Referenced by GetPar(), SetPar(), and ToString().