EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoMedia.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairGeoMedia.h
1 #ifndef FAIRGEOMEDIA_H
2 #define FAIRGEOMEDIA_H
3 
4 
5 #include "TNamed.h"
6 #include "TString.h"
7 //#include "TList.h"
8 
9 
10 class FairGeoMedium;
11 class TList;
12 
17 class FairGeoMedia : public TNamed
18 {
19  private:
20  TList* media;
21  TString inputFile;
22  TString author;
23  TString description;
24  public:
25  FairGeoMedia();
26  ~FairGeoMedia();
27  void setInputFile(const char* file) { inputFile=file; }
28  const char* getInputFile() { return inputFile; }
29  void addMedium(FairGeoMedium* m);
30  FairGeoMedium* getMedium(const char*);
31  TList* getListOfMedia() {return media;}
32  void read(std::fstream&);
33  void print();
34  void list();
35  void write(std::fstream&);
36  void setAuthor(TString& s) {author=s;}
37  void setDescription(TString& s) {description=s;}
38  TString& getAuthor() {return author;}
39  TString& getDescription() {return description;}
40  private:
41  FairGeoMedia(const FairGeoMedia&);
43 
44  ClassDef(FairGeoMedia,0) //
45 };
46 
47 #endif /* !FAIRGEOMEDIA_H */