CbmRoot
CbmTrdParSet.h
Go to the documentation of this file.
1 #ifndef CBMTRDPARSET_H
2 #define CBMTRDPARSET_H
3 
4 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
5 #include <RtypesCore.h> // for Int_t, Bool_t
6 
7 #include <map> // for map
8 
9 #include "FairParGenericSet.h" // for FairParGenericSet
10 
11 class CbmTrdParMod;
12 class FairParamList;
13 
17 class FairParamList;
18 class CbmTrdParMod;
19 class CbmTrdParSet : public FairParGenericSet {
20 public:
22  CbmTrdParSet(const char* name = "CbmTrdParSet",
23  const char* title = "TRD parameters",
24  const char* context = "Default");
25 
27  virtual ~CbmTrdParSet();
28 
30  virtual void clear() { ; }
31 
32  virtual Int_t GetModuleId(Int_t i) const;
33  virtual const CbmTrdParMod* GetModulePar(Int_t detId) const;
34  virtual Int_t GetNrOfModules() const { return fNrOfModules; }
35  std::map<Int_t, CbmTrdParMod*> GetModuleMap() { return fModuleMap; }
36  virtual void addParam(CbmTrdParMod* mod);
37  virtual Bool_t getParams(FairParamList*);
38  virtual void putParams(FairParamList*);
39 
40 protected:
41  Int_t fNrOfModules;
42 
43  std::map<Int_t, CbmTrdParMod*> fModuleMap;
44 
46 };
47 #endif
CbmTrdParSet::fModuleMap
std::map< Int_t, CbmTrdParMod * > fModuleMap
Definition: CbmTrdParSet.h:43
CbmTrdParSet::~CbmTrdParSet
virtual ~CbmTrdParSet()
Destructor.
Definition: CbmTrdParSet.cxx:23
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
CbmTrdParSet::addParam
virtual void addParam(CbmTrdParMod *mod)
Definition: CbmTrdParSet.cxx:65
CbmTrdParSet::GetNrOfModules
virtual Int_t GetNrOfModules() const
Definition: CbmTrdParSet.h:34
CbmTrdParSet
Definition: CbmTrdParSet.h:19
CbmTrdParSet::putParams
virtual void putParams(FairParamList *)
Definition: CbmTrdParSet.cxx:60
CbmTrdParSet::GetModuleId
virtual Int_t GetModuleId(Int_t i) const
Definition: CbmTrdParSet.cxx:32
CbmTrdParSet::fNrOfModules
Int_t fNrOfModules
no of modules in the current run
Definition: CbmTrdParSet.h:41
CbmTrdParSet::CbmTrdParSet
CbmTrdParSet(const char *name="CbmTrdParSet", const char *title="TRD parameters", const char *context="Default")
Definition: CbmTrdParSet.cxx:15
CbmTrdParMod
Definition of generic parameters for one TRD module.
Definition: CbmTrdParMod.h:9
CbmTrdParSet::GetModulePar
virtual const CbmTrdParMod * GetModulePar(Int_t detId) const
Definition: CbmTrdParSet.cxx:45
CbmTrdParSet::getParams
virtual Bool_t getParams(FairParamList *)
Definition: CbmTrdParSet.cxx:52
CbmTrdParSet::GetModuleMap
std::map< Int_t, CbmTrdParMod * > GetModuleMap()
Definition: CbmTrdParSet.h:35
CbmTrdParSet::ClassDef
ClassDef(CbmTrdParSet, 1)
CbmTrdParSet::clear
virtual void clear()
Reset all parameters.
Definition: CbmTrdParSet.h:30