FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairBaseParSet.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRBASEPARSET_H
9 #define FAIRBASEPARSET_H
10 
17 #include "FairParGenericSet.h" // for FairParGenericSet
18 
19 #include <Rtypes.h> // for Double_t, etc
20 #include <TGeoManager.h> // IWYU pragma: keep needed by cint
21 
22 class FairParamList;
24 class TObjArray;
25 
27 {
28  public:
36  FairBaseParSet(const char* name = "FairBaseParSet",
37  const char* title = "Class for base parameter io",
38  const char* context = "BaseDefaultContext");
40  ~FairBaseParSet(void);
42  void clear(void);
47  void putParams(FairParamList*);
54  Bool_t getParams(FairParamList*);
59  void SetDetList(TObjArray* array) { fDetList = array; }
64  void SetGen(FairPrimaryGenerator* gen) { fPriGen = gen; }
69  void SetBeamMom(Double_t BMom) { fBeamMom = BMom; }
74  void SetContListStr(TObjArray* list) { fContNameList = list; }
79  void SetRndSeed(UInt_t RndSeed) { fRandomSeed = RndSeed; }
83  TObjArray* GetDetList() { return fDetList; }
91  Double_t GetBeamMom() { return fBeamMom; }
95  TObjArray* GetContList() { return fContNameList; }
99  UInt_t GetRndSeed() { return fRandomSeed; }
100 
101  protected:
103  TObjArray* fDetList;
107  Double_t fBeamMom;
109  TObjArray* fContNameList;
111  UInt_t fRandomSeed;
112 
114 
115  private:
116  FairBaseParSet(const FairBaseParSet& L);
117  FairBaseParSet& operator=(const FairBaseParSet&) { return *this; }
118 };
119 
120 #endif /* !FAIRBASEPARSET_H */
void SetBeamMom(Double_t BMom)
Double_t GetBeamMom()
void putParams(FairParamList *)
void SetContListStr(TObjArray *list)
TObjArray * fDetList
Detectors used in the simulation.
UInt_t GetRndSeed()
void SetRndSeed(UInt_t RndSeed)
void SetDetList(TObjArray *array)
FairBaseParSet(const char *name="FairBaseParSet", const char *title="Class for base parameter io", const char *context="BaseDefaultContext")
ClassDef(FairBaseParSet, 6)
TObjArray * fContNameList
List of parameter container names in the RUN.
TObjArray * GetContList()
TObjArray * GetDetList()
UInt_t fRandomSeed
Random Seed from gRandom.
FairPrimaryGenerator * fPriGen
Generator used for simulation.
FairPrimaryGenerator * GetPriGen()
Double_t fBeamMom
Beam momentum (GeV/c)
void SetGen(FairPrimaryGenerator *gen)
void clear(void)
Bool_t getParams(FairParamList *)