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
38
class
CbmStsParSensor
{
39
40
public
:
46
CbmStsParSensor
(
CbmStsSensorClass
sClass =
CbmStsSensorClass::kDssdStereo
);
47
48
50
~CbmStsParSensor
() {};
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
:
93
CbmStsSensorClass
fClass
=
CbmStsSensorClass::kUnknown
;
94
std::array<float, NPARAMS>
fPar
{{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}};
95
96
97
ClassDefNV
(
CbmStsParSensor
, 1);
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
core
detectors
sts
CbmStsParSensor.h
Generated on Wed Oct 28 2020 15:11:45 for CbmRoot by
1.8.18