CbmRoot
Loading...
Searching...
No Matches
CbmStsParSensor.h
Go to the documentation of this file.
1
/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Volker Friese [committer] */
4
10
#ifndef CBMSTSPARSENSOR_H
11
#define CBMSTSPARSENSOR_H 1
12
13
#define NPARAMS 10
14
15
#include "
CbmStsDefs.h
"
// for CbmStsSensorClass, CbmStsSensorClass::kDssdS...
16
17
#include <Rtypes.h>
// for THashConsistencyHolder, ClassDefNV
18
#include <RtypesCore.h>
// for UInt_t, Float_t, Int_t
19
20
#include <array>
// for array
21
#include <string>
// for string
22
42
class
CbmStsParSensor
{
43
44
public
:
50
CbmStsParSensor
(
CbmStsSensorClass
sClass =
CbmStsSensorClass::kDssdStereo
);
51
52
54
~CbmStsParSensor
() {};
55
56
60
CbmStsSensorClass
GetClass
()
const
{
return
fClass
; }
61
62
69
Float_t
GetPar
(UInt_t index)
const
;
70
71
78
Int_t
GetParInt
(UInt_t index)
const
;
79
80
87
void
SetPar
(UInt_t index, Float_t value)
88
{
89
if
(index <
fPar
.size())
fPar
[index] = value;
90
}
91
92
94
std::string
ToString
()
const
;
95
96
97
private
:
98
CbmStsSensorClass
fClass
=
CbmStsSensorClass::kUnknown
;
99
std::array<float, NPARAMS>
fPar
{{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.}};
100
101
102
ClassDefNV
(
CbmStsParSensor
, 1);
103
};
104
105
#endif
/* CBMSTSPARSENSOR_H */
CbmStsDefs.h
CbmStsSensorClass
CbmStsSensorClass
Sensor classes.
Definition
CbmStsDefs.h:68
CbmStsSensorClass::kUnknown
@ kUnknown
CbmStsSensorClass::kDssdStereo
@ kDssdStereo
CbmStsParSensor
Constructional parameters of a STS sensor.
Definition
CbmStsParSensor.h:42
CbmStsParSensor::GetParInt
Int_t GetParInt(UInt_t index) const
Get the nearest integer value of a parameter.
Definition
CbmStsParSensor.cxx:38
CbmStsParSensor::CbmStsParSensor
CbmStsParSensor(CbmStsSensorClass sClass=CbmStsSensorClass::kDssdStereo)
Constructor.
CbmStsParSensor::fPar
std::array< float, NPARAMS > fPar
Definition
CbmStsParSensor.h:99
CbmStsParSensor::ToString
std::string ToString() const
Info to string.
Definition
CbmStsParSensor.cxx:43
CbmStsParSensor::~CbmStsParSensor
~CbmStsParSensor()
Destructor.
Definition
CbmStsParSensor.h:54
CbmStsParSensor::SetPar
void SetPar(UInt_t index, Float_t value)
Set a parameter.
Definition
CbmStsParSensor.h:87
CbmStsParSensor::GetClass
CbmStsSensorClass GetClass() const
Get the sensor class.
Definition
CbmStsParSensor.h:60
CbmStsParSensor::ClassDefNV
ClassDefNV(CbmStsParSensor, 1)
CbmStsParSensor::fClass
CbmStsSensorClass fClass
Definition
CbmStsParSensor.h:98
CbmStsParSensor::GetPar
Float_t GetPar(UInt_t index) const
Get a parameter.
Definition
CbmStsParSensor.cxx:28
core
detectors
sts
CbmStsParSensor.h
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0