CbmRoot
CbmStsParSetSensor.h
Go to the documentation of this file.
1 
7 #ifndef CBMSTSPARSETSENSOR_H
8 #define CBMSTSPARSETSENSOR_H 1
9 
10 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11 #include <RtypesCore.h> // for UInt_t, Bool_t, kFALSE, kTRUE
12 
13 #include <FairParGenericSet.h> // for FairParGenericSet
14 
15 #include <map> // for map
16 #include <string> // for string
17 
18 #include "CbmStsParSensor.h" // for CbmStsParSensor
19 
20 class FairParamList;
21 
30 class CbmStsParSetSensor : public FairParGenericSet {
31 
32 public:
38  CbmStsParSetSensor(const char* name = "CbmParSetSensor",
39  const char* title = "STS parameters",
40  const char* context = "Default");
41 
42 
45 
46 
49 
50 
52  virtual void clear();
53 
54 
56  virtual ~CbmStsParSetSensor();
57 
58 
63  virtual Bool_t getParams(FairParamList* parList);
64 
65 
70  const CbmStsParSensor& GetParSensor(UInt_t address);
71 
72 
75 
76 
79 
80 
85  virtual void putParams(FairParamList* parList);
86 
87 
91  void SetGlobalPar(const CbmStsParSensor& params) {
92  fGlobalParams = params;
93  fUseGlobal = kTRUE;
94  }
95 
96 
101  void SetParSensor(UInt_t address, const CbmStsParSensor& par);
102 
103 
105  std::string ToString() const;
106 
107 
108 private:
110  Bool_t fUseGlobal = kFALSE;
111 
114 
116  std::map<UInt_t, CbmStsParSensor> fParams {};
117 
118 
120 };
121 
122 #endif /* CBMSTSPARSETSENSOR */
CbmStsParSetSensor::ClassDef
ClassDef(CbmStsParSetSensor, 1)
CbmStsParSetSensor::clear
virtual void clear()
Reset all parameters.
Definition: CbmStsParSetSensor.cxx:31
CbmStsParSetSensor::CbmStsParSetSensor
CbmStsParSetSensor(const char *name="CbmParSetSensor", const char *title="STS parameters", const char *context="Default")
Constructor.
CbmStsParSetSensor::operator=
CbmStsParSetSensor & operator=(CbmStsParSetSensor &&)=delete
Move assignment operator (disabled)
CbmStsParSetSensor::ToString
std::string ToString() const
Info to string.
Definition: CbmStsParSetSensor.cxx:76
CbmStsParSetSensor::fUseGlobal
Bool_t fUseGlobal
Flag for using global parameters.
Definition: CbmStsParSetSensor.h:110
CbmStsParSetSensor::operator=
CbmStsParSetSensor & operator=(const CbmStsParSetSensor &)=delete
Copy assignment operator (disabled)
CbmStsParSensor.h
CbmStsParSetSensor::SetParSensor
void SetParSensor(UInt_t address, const CbmStsParSensor &par)
Set the parameters for a sensor.
Definition: CbmStsParSetSensor.cxx:65
CbmStsParSensor
Constructional parameters of a STS sensor.
Definition: CbmStsParSensor.h:38
CbmStsParSetSensor::GetParSensor
const CbmStsParSensor & GetParSensor(UInt_t address)
Get condition parameters of a sensor.
Definition: CbmStsParSetSensor.cxx:49
CbmStsParSetSensor
Parameters container for CbmStsParSensor.
Definition: CbmStsParSetSensor.h:30
CbmStsParSetSensor::~CbmStsParSetSensor
virtual ~CbmStsParSetSensor()
Destructor.
Definition: CbmStsParSetSensor.cxx:26
CbmStsParSetSensor::getParams
virtual Bool_t getParams(FairParamList *parList)
Reading parameters from ASCII. Abstract in base class.
Definition: CbmStsParSetSensor.cxx:41
CbmStsParSetSensor::fParams
std::map< UInt_t, CbmStsParSensor > fParams
Map of parameters. Key is sensor address.
Definition: CbmStsParSetSensor.h:116
CbmStsParSetSensor::SetGlobalPar
void SetGlobalPar(const CbmStsParSensor &params)
Set global parameters (for all modules)
Definition: CbmStsParSetSensor.h:91
CbmStsParSetSensor::fGlobalParams
CbmStsParSensor fGlobalParams
Global parameters, used for all modules.
Definition: CbmStsParSetSensor.h:113
CbmStsParSetSensor::CbmStsParSetSensor
CbmStsParSetSensor(CbmStsParSetSensor &&)=delete
Move constructor (disabled)
CbmStsParSetSensor::CbmStsParSetSensor
CbmStsParSetSensor(const CbmStsParSetSensor &)=delete
Copy constructor (disabled)
CbmStsParSetSensor::putParams
virtual void putParams(FairParamList *parList)
Writing parameters to ASCII. Abstract in base class.
Definition: CbmStsParSetSensor.cxx:58