FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGeoParSet.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 FairGeoParSet_H
9 #define FairGeoParSet_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;
23 class TObjArray;
24 
26 {
27  public:
35  FairGeoParSet(const char* name = "FairGeoParSet",
36  const char* title = "Class for base parameter io",
37  const char* context = "BaseDefaultContext");
39  ~FairGeoParSet(void);
41  void clear(void);
46  void putParams(FairParamList*);
53  Bool_t getParams(FairParamList*);
58  void SetGeoNodes(TObjArray* array) { fGeoNodes = array; }
63  void SetGeometry(TGeoManager* Geom) { fGeom = Geom; }
67  TObjArray* GetGeoNodes() { return fGeoNodes; }
71  TGeoManager* GetGeometry() { return fGeom; }
72 
73  protected:
75  TObjArray* fGeoNodes;
76  TGeoManager* fGeom;
79 
80  private:
81  FairGeoParSet(const FairGeoParSet& L);
82  FairGeoParSet& operator=(const FairGeoParSet&) { return *this; }
83 };
84 
85 #endif /* !FairGeoParSet_H */
void clear(void)
TGeoManager * GetGeometry()
Definition: FairGeoParSet.h:71
TObjArray * GetGeoNodes()
Definition: FairGeoParSet.h:67
Bool_t getParams(FairParamList *)
FairGeoParSet(const char *name="FairGeoParSet", const char *title="Class for base parameter io", const char *context="BaseDefaultContext")
ClassDef(FairGeoParSet, 1)
TObjArray * fGeoNodes
List of FairGeoNodes for sensitive volumes.
Definition: FairGeoParSet.h:75
TGeoManager * fGeom
Full Geometry.
Definition: FairGeoParSet.h:77
void SetGeoNodes(TObjArray *array)
Definition: FairGeoParSet.h:58
void SetGeometry(TGeoManager *Geom)
Definition: FairGeoParSet.h:63
void putParams(FairParamList *)