]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
9914c06a | 2 | // Category: global |
2817d3e2 | 3 | // |
e5967ab3 | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class TG4G3Defaults | |
7 | // ------------------- | |
2817d3e2 | 8 | // Class stores the default G3 values of the kinetic energy cuts |
e5967ab3 | 9 | // for particles and the control process parameters. |
2817d3e2 | 10 | |
9187be37 | 11 | #ifndef TG4_G3_DEFAULTS_H |
12 | #define TG4_G3_DEFAULTS_H | |
2817d3e2 | 13 | |
e5967ab3 | 14 | #include "TG4G3CutVector.h" |
15 | #include "TG4G3ControlVector.h" | |
9187be37 | 16 | #include "TG4G3Control.h" |
e5967ab3 | 17 | #include "TG4G3Cut.h" |
2817d3e2 | 18 | |
19 | #include <globals.hh> | |
20 | ||
21 | class TG4G3Defaults | |
22 | { | |
23 | public: | |
e5967ab3 | 24 | TG4G3Defaults(); |
2817d3e2 | 25 | // --> protected |
e5967ab3 | 26 | // TG4G3Defaults(const TG4G3Defaults& right); |
2817d3e2 | 27 | virtual ~TG4G3Defaults(); |
28 | ||
e5967ab3 | 29 | // static access methods |
30 | static TG4G3Defaults* Instance(); | |
2817d3e2 | 31 | |
e5967ab3 | 32 | // methods |
33 | G4bool IsDefaultCut(TG4G3Cut cut, G4double value) const; | |
34 | G4bool IsDefaultControl(TG4G3Control control, TG4G3ControlValue value) const; | |
35 | ||
36 | // get methods | |
37 | G4double CutValue(G4int cut) const; | |
38 | TG4G3ControlValue ControlValue(G4int control) const; | |
2817d3e2 | 39 | |
40 | protected: | |
e5967ab3 | 41 | TG4G3Defaults(const TG4G3Defaults& right); |
42 | ||
43 | // operators | |
44 | TG4G3Defaults& operator=(const TG4G3Defaults& right); | |
2817d3e2 | 45 | |
46 | private: | |
47 | // static data members | |
e5967ab3 | 48 | static TG4G3Defaults* fgInstance; //this instance |
49 | ||
50 | // data members | |
51 | TG4G3CutVector fCutVector; // vector of default cut values | |
52 | TG4G3ControlVector fControlVector;// vector of default control values | |
2817d3e2 | 53 | }; |
54 | ||
55 | // inline methods | |
56 | ||
e5967ab3 | 57 | inline TG4G3Defaults* TG4G3Defaults::Instance() |
58 | { return fgInstance; } | |
2817d3e2 | 59 | |
9187be37 | 60 | #endif //ALI_G3_DEFAULTS_H |