]>
Commit | Line | Data |
---|---|---|
2817d3e2 | 1 | // $Id$ |
2 | // Category: physics | |
3 | // | |
4 | // Vector of control process flag values | |
5 | // with convenient set/get methods | |
6 | ||
7 | #ifndef TG4_FLAG_VECTOR_H | |
8 | #define TG4_FLAG_VECTOR_H | |
9 | ||
10 | #include "TG4Globals.h" | |
11 | #include "TG3Flag.h" | |
12 | ||
13 | class G4VProcess; | |
14 | ||
15 | class TG4FlagVector | |
16 | { | |
d4fc3b80 | 17 | typedef G4RWTValOrderedVector<TG3FlagValue> TG3FlagVector; |
18 | ||
2817d3e2 | 19 | public: |
20 | TG4FlagVector(); | |
21 | TG4FlagVector(const TG4FlagVector& right); | |
22 | virtual ~TG4FlagVector(); | |
23 | ||
24 | // operators | |
25 | TG4FlagVector& operator=(const TG4FlagVector& right); | |
26 | G4double operator[](G4int index) const; | |
27 | ||
28 | // set methods | |
29 | void SetG3Flag(TG3Flag g3Flag, G4double flagValue); | |
30 | void SetG3Defaults(); | |
31 | ||
32 | // get methods | |
33 | G4int GetFlag(G4VProcess* process) const; | |
34 | ||
35 | private: | |
36 | // data members | |
37 | TG3FlagVector* fFlagVector; //vector of control process flag values | |
38 | }; | |
39 | ||
40 | #endif //TG4_FLAG_VECTOR_H | |
41 | ||
42 | ||
43 |