HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hgeantmedia.h
Go to the documentation of this file.
1 #ifndef HGEANTMEDIA_H
2 #define HGEANTMEDIA_H
3 
4 #include "TNamed.h"
5 #include "TString.h"
6 #include <map>
7 using namespace std;
8 
9 class HGeantMedia : public TNamed {
10 private:
11  map<Int_t, TString> media; // List of GEANT media
12  map<Int_t,TString>::iterator iter; //! Iterator
13 
14 public:
15  HGeantMedia(const Char_t* name ="GeantMedia", const Char_t* title ="List of Geant media") {}
16  ~HGeantMedia(void) {}
17 
18  void addMedium(Int_t, const Char_t*);
19  TString getMediumName(Int_t id);
20  Int_t getMediumId(const TString&);
21  void print();
22 
23  ClassDef(HGeantMedia,1) // Map of GEANT media
24 };
25 
26 #endif /*! HGEANTMEDIA_H */
map< Int_t, TString >::iterator iter
Definition: hgeantmedia.h:12
~HGeantMedia(void)
Definition: hgeantmedia.h:16
HGeantMedia(const Char_t *name="GeantMedia", const Char_t *title="List of Geant media")
Iterator.
Definition: hgeantmedia.h:15
map< Int_t, TString > media
Definition: hgeantmedia.h:11