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 |
|
inline |
Destructor.
Definition at line 54 of file CbmStsParSensor.h.
|
private |
|
inline |
Get the sensor class.
Definition at line 60 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 28 of file CbmStsParSensor.cxx.
References fPar.
Referenced by CbmRecoSts::CreateModules(), CbmTaskStsHitFinderParWrite::CreateModules(), CbmStsSimSensorFactory::CreateSensor(), GetParInt(), CbmStsStation::GetSensorPitch(), CbmStsStation::GetSensorStereoAngle(), CbmStsTrackingInterface::GetStereoAnglesSensor(), 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 38 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 87 of file CbmStsParSensor.h.
References fPar.
Referenced by CbmOnlineParWrite::AddSts(), CbmStsDigitize::InitParams(), CbmStsDigitizePixel::InitParams(), and CbmStsDigitize::SetGlobalDefaults().
std::string CbmStsParSensor::ToString | ( | ) | const |
Info to string.
Definition at line 43 of file CbmStsParSensor.cxx.
References fClass, fPar, kDssdOrtho, and kDssdStereo.
Referenced by CbmStsParSetSensor::ToString().
|
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().