]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: geometry | |
3 | // | |
4 | // Singleton class that builds the default element table | |
5 | // Currently defined elements: up to Z=47 | |
6 | // to be continued | |
7 | ||
8 | #ifndef TG4_ELEMENT_TABLE_H | |
9 | #define TG4_ELEMENT_TABLE_H | |
10 | ||
11 | class TG4ElementTable | |
12 | { | |
13 | public: | |
14 | // --> protected | |
15 | // TG4ElementTable(); | |
16 | // TG4ElementTable(const TG4ElementTable& right); | |
17 | virtual ~TG4ElementTable(); | |
18 | ||
19 | // static methods | |
20 | static TG4ElementTable* Instance(); | |
21 | ||
22 | protected: | |
23 | TG4ElementTable(); | |
24 | TG4ElementTable(const TG4ElementTable& right); | |
25 | ||
26 | // operators | |
27 | TG4ElementTable& operator=(const TG4ElementTable& right); | |
28 | ||
29 | private: | |
30 | void Construct(); | |
31 | ||
32 | // data members | |
33 | static TG4ElementTable* fgInstance; //this instance | |
34 | }; | |
35 | ||
36 | #endif //G4_ELEMENT_TABLE_H |