CbmRoot
Loading...
Searching...
No Matches
CbmTrdParSet.h
Go to the documentation of this file.
1/* Copyright (C) 2018-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef CBMTRDPARSET_H
6#define CBMTRDPARSET_H
7
8#include "FairParGenericSet.h" // for FairParGenericSet
9
10#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11#include <RtypesCore.h> // for Int_t, Bool_t
12
13#include <map> // for map
14
15class CbmTrdParMod;
16class FairParamList;
17
21class FairParamList;
22class CbmTrdParMod;
23class CbmTrdParSet : public FairParGenericSet {
24public:
26 CbmTrdParSet(const char* name = "CbmTrdParSet", const char* title = "TRD parameters",
27 const char* context = "Default");
28
30 virtual ~CbmTrdParSet();
31
33 virtual void clear() { ; }
34
35 virtual Int_t GetModuleId(Int_t i) const;
36 virtual const CbmTrdParMod* GetModulePar(Int_t detId) const;
37 virtual CbmTrdParMod* GetModulePar(Int_t detId);
38 virtual Int_t GetNrOfModules() const { return fNrOfModules; }
39 std::map<Int_t, CbmTrdParMod*> GetModuleMap() { return fModuleMap; }
40 virtual void addParam(CbmTrdParMod* mod);
41 virtual Bool_t getParams(FairParamList*);
42 virtual void putParams(FairParamList*);
43 virtual void Print(Option_t* opt = "") const;
44
45 protected:
48 std::map<Int_t, CbmTrdParMod*> fModuleMap;
49
51};
52#endif
Definition of generic parameters for one TRD module.
std::map< Int_t, CbmTrdParMod * > fModuleMap
ClassDef(CbmTrdParSet, 1)
virtual ~CbmTrdParSet()
Destructor.
virtual void putParams(FairParamList *)
CbmTrdParSet(const char *name="CbmTrdParSet", const char *title="TRD parameters", const char *context="Default")
virtual void clear()
Reset all parameters.
virtual Int_t GetNrOfModules() const
virtual Int_t GetModuleId(Int_t i) const
Int_t fNrOfModules
no of modules in the current run
virtual void Print(Option_t *opt="") const
virtual Bool_t getParams(FairParamList *)
virtual const CbmTrdParMod * GetModulePar(Int_t detId) const
std::map< Int_t, CbmTrdParMod * > GetModuleMap()
virtual void addParam(CbmTrdParMod *mod)