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