4 // Author: I. Hrivnacova
6 // Class AliPrimaryGeneratorMessenger
7 // ----------------------------------
8 // Messenger class that defines commands for AliPrimaryGeneratorAction.
10 #ifndef ALI_PRIMARY_GENERATOR_MESSENGER_H
11 #define ALI_PRIMARY_GENERATOR_MESSENGER_H
13 #include <G4UImessenger.hh>
16 class AliPrimaryGeneratorAction;
19 class G4UIcmdWithAString;
20 class G4UIcmdWithAnInteger;
22 class AliPrimaryGeneratorMessenger: public G4UImessenger
25 AliPrimaryGeneratorMessenger(AliPrimaryGeneratorAction* primaryGenAction);
27 // AliPrimaryGeneratorMessenger();
28 // AliPrimaryGeneratorMessenger(const AliPrimaryGeneratorMessenger& right);
29 virtual ~AliPrimaryGeneratorMessenger();
32 void SetNewValue(G4UIcommand* command, G4String string);
35 AliPrimaryGeneratorMessenger();
36 AliPrimaryGeneratorMessenger(const AliPrimaryGeneratorMessenger& right);
39 AliPrimaryGeneratorMessenger& operator=(
40 const AliPrimaryGeneratorMessenger& right);
44 AliPrimaryGeneratorAction* fPrimaryGenAction; //associated class
45 G4UIdirectory* fPrimariesDirectory; //command directory
46 G4UIcmdWithAString* fGeneratorCmd; //command: set
47 G4UIcmdWithAnInteger* fNofParticlesCmd; //command: nofParticles
50 #endif //ALI_PRIMARY_GENERATOR_MESSENGER_H