]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: run | |
3 | // | |
7005154f | 4 | // Author: I. Hrivnacova |
5 | // | |
6 | // Class AliPrimaryGeneratorMessenger | |
7 | // ---------------------------------- | |
676fb573 | 8 | // Messenger class that defines commands for AliPrimaryGeneratorAction. |
9 | ||
10 | #ifndef ALI_PRIMARY_GENERATOR_MESSENGER_H | |
11 | #define ALI_PRIMARY_GENERATOR_MESSENGER_H | |
12 | ||
13 | #include <G4UImessenger.hh> | |
14 | #include <globals.hh> | |
15 | ||
16 | class AliPrimaryGeneratorAction; | |
17 | ||
18 | class G4UIdirectory; | |
19 | class G4UIcmdWithAString; | |
20 | class G4UIcmdWithAnInteger; | |
21 | ||
22 | class AliPrimaryGeneratorMessenger: public G4UImessenger | |
23 | { | |
24 | public: | |
25 | AliPrimaryGeneratorMessenger(AliPrimaryGeneratorAction* primaryGenAction); | |
26 | // --> protected | |
27 | // AliPrimaryGeneratorMessenger(); | |
28 | // AliPrimaryGeneratorMessenger(const AliPrimaryGeneratorMessenger& right); | |
29 | virtual ~AliPrimaryGeneratorMessenger(); | |
30 | ||
31 | // methods | |
32 | void SetNewValue(G4UIcommand* command, G4String string); | |
33 | ||
34 | protected: | |
35 | AliPrimaryGeneratorMessenger(); | |
36 | AliPrimaryGeneratorMessenger(const AliPrimaryGeneratorMessenger& right); | |
37 | ||
38 | // operators | |
39 | AliPrimaryGeneratorMessenger& operator=( | |
40 | const AliPrimaryGeneratorMessenger& right); | |
41 | ||
42 | private: | |
43 | // data members | |
44 | AliPrimaryGeneratorAction* fPrimaryGenAction; //associated class | |
45 | G4UIdirectory* fPrimariesDirectory; //command directory | |
46 | G4UIcmdWithAString* fGeneratorCmd; //command: set | |
47 | G4UIcmdWithAnInteger* fNofParticlesCmd; //command: nofParticles | |
676fb573 | 48 | }; |
49 | ||
50 | #endif //ALI_PRIMARY_GENERATOR_MESSENGER_H | |
51 |