CbmRoot
Loading...
Searching...
No Matches
CbmStsParSetSensorCond.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
11#ifndef CBMSTSPARSETSENSORCOND_H
12#define CBMSTSPARSETSENSORCOND_H 1
13
14#include "CbmStsParSensorCond.h" // for CbmStsParSensorCond
15
16#include <FairParGenericSet.h> // for FairParGenericSet
17
18#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
19#include <RtypesCore.h> // for Double_t, UInt_t, Bool_t, kFALSE
20
21#include <map> // for map
22#include <string> // for string
23
24class FairParamList;
25
34class CbmStsParSetSensorCond : public FairParGenericSet {
35
36public:
42 CbmStsParSetSensorCond(const char* name = "CbmStsParSetSensorCond", const char* title = "STS parameters",
43 const char* context = "Default");
44
45
48
49
51 virtual void clear();
52
53
58 virtual Bool_t getParams(FairParamList* parList);
59
60
65 const CbmStsParSensorCond& GetParSensor(UInt_t address);
66
67
71 Bool_t IsSet() const { return (fGlobal || !fParams.empty()); }
72
73
78 virtual void putParams(FairParamList* parList);
79
80
96 UInt_t ReadParams(const char* fileName);
97
98
106 void SetGlobalPar(Double_t vDep, Double_t vBias, Double_t temperature, Double_t cCoupling, Double_t cInterstrip);
107
108
112 void SetGlobalPar(const CbmStsParSensorCond& conditions);
113
114
116 std::string ToString();
117
118
119private:
126 void Init();
127
128
129private:
132
134 std::map<UInt_t, CbmStsParSensorCond> fParams {};
135
136 Bool_t fGlobal = kFALSE;
137 Bool_t fIsInit = kFALSE;
138
140};
141
142#endif /* CBMSTSPARSETSENSORCOND */
Parameters for operating conditions of a STS sensor.
Parameters container for CbmStsParSensorCond.
std::string ToString()
Info to string.
void Init()
Initialise all condition parameters.
ClassDef(CbmStsParSetSensorCond, 2)
Initialisation flag.
UInt_t ReadParams(const char *fileName)
Read sensor conditions from file.
virtual void putParams(FairParamList *parList)
Writing parameters to ASCII. Abstract in base class.
void SetGlobalPar(Double_t vDep, Double_t vBias, Double_t temperature, Double_t cCoupling, Double_t cInterstrip)
Set global conditions (for all sensors)
CbmStsParSensorCond fGlobalParams
Global parameters, used for all sensors.
Bool_t fGlobal
Use global parameters for all sensors.
std::map< UInt_t, CbmStsParSensorCond > fParams
Map of parameters. Key is sensor address.
CbmStsParSetSensorCond(const char *name="CbmStsParSetSensorCond", const char *title="STS parameters", const char *context="Default")
Constructor.
virtual void clear()
Reset all parameters.
const CbmStsParSensorCond & GetParSensor(UInt_t address)
Get condition parameters of a sensor.
virtual Bool_t getParams(FairParamList *parList)
Reading parameters from ASCII. Abstract in base class.
Bool_t IsSet() const
Check for parameter set being filled.
virtual ~CbmStsParSetSensorCond()
Destructor.