EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoInterface.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairGeoInterface.h
1 #ifndef FAIRGEOINTERFACE_H
2 #define FAIRGEOINTERFACE_H
3 
4 #include "TObject.h"
5 #include "TString.h"
6 //#include "TObjArray.h"
7 //#include "TList.h"
8 
9 class FairGeoIo;
10 class FairGeoSet;
11 class FairGeoMedia;
12 class FairGeoShapes;
13 class FairGeoBuilder;
14 class TObjArray;
15 class TList;
16 
27 };
28 
29 
35 class FairGeoInterface : public TObject
36 {
40  Int_t nSets;
41  Int_t nActualSets;
42  TObjArray* sets;
45  TList* masterNodes;
46  TString setupFile;
48  public:
56  FairGeoIo* getOutput() { return output; }
58  FairGeoMedia* getMedia() { return media; }
59  TList* getMasterNodes() { return masterNodes; }
60  void addInputFile(const char*);
61  void addGeoModule(FairGeoSet*);
62  void setMediaFile(const char* file);
63  FairGeoSet* findSet(const char*);
64  Bool_t readSet(FairGeoSet*);
65  Bool_t writeSet(FairGeoSet*);
66  Bool_t writeSet(FairGeoSet*,const char*);
67  Bool_t createSet(FairGeoSet*);
68  void deleteSet(FairGeoSet* pSet);
69  Bool_t readMedia();
70  Bool_t writeMedia();
71  Bool_t writeMedia(const char*);
72  Bool_t readAll();
73  Bool_t writeAll();
74  Bool_t createAll(Bool_t withCleanup=kFALSE);
75  Bool_t createGeometry(Bool_t withCleanup=kFALSE);
76  Bool_t readGeomConfig(const char*);
77  void addSetupFile(const char* f) {setupFile=f;}
78  Bool_t readSetupFile();
79  void print();
80  void SetNoOfSets(Int_t n) {nSets=n;} //
81  private:
84 
85  FairGeoIo* connectInput(const char*);
86  Bool_t connectOutput(const char*);
87 
88  ClassDef(FairGeoInterface,0) //
89 };
90 
91 #endif /* !FAIRGEOINTERFACE_H */