]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/AliPrimaryGeneratorMessenger.h
tag Release-3-04 commented
[u/mrichter/AliRoot.git] / AliGeant4 / AliPrimaryGeneratorMessenger.h
1 // $Id$
2 // Category: run
3 //
4 // Messenger class that defines commands for AliPrimaryGeneratorAction.
5
6 #ifndef ALI_PRIMARY_GENERATOR_MESSENGER_H
7 #define ALI_PRIMARY_GENERATOR_MESSENGER_H
8
9 #include <G4UImessenger.hh>
10 #include <globals.hh>
11
12 class AliPrimaryGeneratorAction;
13
14 class G4UIdirectory;
15 class G4UIcmdWithAString;
16 class G4UIcmdWithAnInteger;
17
18 class AliPrimaryGeneratorMessenger: public G4UImessenger
19 {
20   public:
21     AliPrimaryGeneratorMessenger(AliPrimaryGeneratorAction* primaryGenAction);
22     // --> protected
23     // AliPrimaryGeneratorMessenger();
24     // AliPrimaryGeneratorMessenger(const AliPrimaryGeneratorMessenger& right);
25     virtual ~AliPrimaryGeneratorMessenger();
26     
27     // methods
28     void SetNewValue(G4UIcommand* command, G4String string);
29     
30   protected:
31     AliPrimaryGeneratorMessenger();
32     AliPrimaryGeneratorMessenger(const AliPrimaryGeneratorMessenger& right);
33
34     // operators
35     AliPrimaryGeneratorMessenger& operator=(
36                                  const AliPrimaryGeneratorMessenger& right);
37
38   private:
39     // data members
40     AliPrimaryGeneratorAction*  fPrimaryGenAction;   //associated class
41     G4UIdirectory*              fPrimariesDirectory; //command directory
42     G4UIcmdWithAString*         fGeneratorCmd;       //command: set
43     G4UIcmdWithAnInteger*       fNofParticlesCmd;    //command: nofParticles
44     G4UIcmdWithAnInteger*       fVerboseCmd;         //command: verbose
45 };
46
47 #endif //ALI_PRIMARY_GENERATOR_MESSENGER_H
48