HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hgeommedia.h
Go to the documentation of this file.
1 #ifndef HGEOMMEDIA_H
2 #define HGEOMMEDIA_H
3 
4 using namespace std;
5 #include "TNamed.h"
6 #include "TList.h"
7 
8 class HGeomMedium;
9 
10 class HGeomMedia : public TNamed {
11 private:
12  TList* media; // list of media
13  TString inputFile; // name of input file or Oracle
14  TString author; // author of the media version
15  TString description; // description of the version
16 public:
17  HGeomMedia();
18  ~HGeomMedia();
19  void setInputFile(const Char_t* file) { inputFile=file; }
20  const Char_t* getInputFile() { return inputFile; }
21  void addMedium(HGeomMedium* m);
22  HGeomMedium* getMedium(const Char_t*);
23  TList* getListOfMedia() {return media;}
24  void read(fstream&);
25  void print();
26  void list();
27  void write(fstream&);
28  void setAuthor(TString& s) {author=s;}
29  void setDescription(TString& s) {description=s;}
30  TString& getAuthor() {return author;}
31  TString& getDescription() {return description;}
32 private:
33  ClassDef(HGeomMedia,0) // Class for materials and media
34 };
35 
36 #endif /* !HGEOMMEDIA_H */
void setDescription(TString &s)
Definition: hgeommedia.h:29
TString author
Definition: hgeommedia.h:14
TList * getListOfMedia()
Definition: hgeommedia.h:23
void setInputFile(const Char_t *file)
Definition: hgeommedia.h:19
TString inputFile
Definition: hgeommedia.h:13
TList * media
Definition: hgeommedia.h:12
TString & getDescription()
Definition: hgeommedia.h:31
void setAuthor(TString &s)
Definition: hgeommedia.h:28
const Char_t * getInputFile()
Definition: hgeommedia.h:20
TString description
Definition: hgeommedia.h:15
TString & getAuthor()
Definition: hgeommedia.h:30