CbmRoot
CbmStsParSensor.h
Go to the documentation of this file.
1 
6 #ifndef CBMSTSPARSENSOR_H
7 #define CBMSTSPARSENSOR_H 1
8 
9 #define NPARAMS 10
10 
11 #include <Rtypes.h> // for THashConsistencyHolder, ClassDefNV
12 #include <RtypesCore.h> // for UInt_t, Float_t, Int_t
13 
14 #include <array> // for array
15 #include <string> // for string
16 
17 #include "CbmStsDefs.h" // for CbmStsSensorClass, CbmStsSensorClass::kDssdS...
18 
39 
40 public:
47 
48 
51 
52 
56  CbmStsSensorClass GetClass() const { return fClass; }
57 
58 
65  Float_t GetPar(UInt_t index) const;
66 
67 
74  Int_t GetParInt(UInt_t index) const;
75 
76 
83  void SetPar(UInt_t index, Float_t value) {
84  if (index < fPar.size()) fPar[index] = value;
85  }
86 
87 
89  std::string ToString() const;
90 
91 
92 private:
94  std::array<float, NPARAMS> fPar {{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}};
95 
96 
98 };
99 
100 #endif /* CBMSTSPARSENSOR_H */
CbmStsParSensor::~CbmStsParSensor
~CbmStsParSensor()
Destructor.
Definition: CbmStsParSensor.h:50
CbmStsParSensor::GetClass
CbmStsSensorClass GetClass() const
Get the sensor class.
Definition: CbmStsParSensor.h:56
CbmStsParSensor::ClassDefNV
ClassDefNV(CbmStsParSensor, 1)
CbmStsParSensor::fClass
CbmStsSensorClass fClass
Definition: CbmStsParSensor.h:93
CbmStsSensorClass::kDssdStereo
@ kDssdStereo
CbmStsParSensor
Constructional parameters of a STS sensor.
Definition: CbmStsParSensor.h:38
CbmStsDefs.h
CbmStsParSensor::CbmStsParSensor
CbmStsParSensor(CbmStsSensorClass sClass=CbmStsSensorClass::kDssdStereo)
Constructor.
CbmStsSensorClass
CbmStsSensorClass
Sensor classes.
Definition: CbmStsDefs.h:61
CbmStsParSensor::GetParInt
Int_t GetParInt(UInt_t index) const
Get the nearest integer value of a parameter.
Definition: CbmStsParSensor.cxx:31
CbmStsParSensor::fPar
std::array< float, NPARAMS > fPar
Definition: CbmStsParSensor.h:94
CbmStsParSensor::GetPar
Float_t GetPar(UInt_t index) const
Get a parameter.
Definition: CbmStsParSensor.cxx:22
CbmStsParSensor::ToString
std::string ToString() const
Info to string.
Definition: CbmStsParSensor.cxx:38
CbmStsSensorClass::kUnknown
@ kUnknown
CbmStsParSensor::SetPar
void SetPar(UInt_t index, Float_t value)
Set a parameter.
Definition: CbmStsParSensor.h:83