]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/AliParticleGunMessenger.h
Updated Linkdef and libTOF.pkg
[u/mrichter/AliRoot.git] / AliGeant4 / AliParticleGunMessenger.h
CommitLineData
676fb573 1// $Id$
2// Category: event
3//
7005154f 4// Author: I. Hrivnacova
5//
6// Class AliParticleGunMessenger
7// -----------------------------
676fb573 8// Messenger class that defines commands for AliParticleGun.
9
10#ifndef ALI_PARTICLE_GUN_MESSENGER_H
11#define ALI_PARTICLE_GUN_MESSENGER_H
12
13#include <G4UImessenger.hh>
14#include <globals.hh>
15
16class AliParticleGun;
17class AliGunParticle;
18class G4ParticleTable;
19class G4UIcommand;
20class G4UIdirectory;
21class G4UIcmdWithoutParameter;
22class G4UIcmdWithAString;
23class G4UIcmdWithADoubleAndUnit;
24class G4UIcmdWithAnInteger;
25class G4UIcmdWith3Vector;
26class G4UIcmdWith3VectorAndUnit;
27
28class AliParticleGunMessenger: public G4UImessenger
29{
30 public:
31 AliParticleGunMessenger(AliParticleGun* gun);
32 // --> protected
33 // AliParticleGunMessenger();
34 // AliParticleGunMessenger(const AliParticleGunMessenger& right);
35 virtual ~AliParticleGunMessenger();
36
37 // methods
38 virtual void SetNewValue(G4UIcommand* command, G4String newValues);
39 virtual G4String GetCurrentValue(G4UIcommand* command);
40
41 protected:
42 AliParticleGunMessenger();
43 AliParticleGunMessenger(const AliParticleGunMessenger& right);
44
45 // operators
46 AliParticleGunMessenger& operator=(
47 const AliParticleGunMessenger& right);
48
49 private:
50 // data members
51 AliParticleGun* fGun; //associated class
52 AliGunParticle* fParticle; //current AliGunParticle
53 G4ParticleTable* fParticleTable; //G4ParticleTable
54
55 // commands data members
56 G4UIdirectory* fGunDirectory; //command directory
57 G4UIcmdWithoutParameter* fListAvailableCmd; //command: listAvailable
58 G4UIcmdWithoutParameter* fListCurrentCmd; //command: listCurrent
59 G4UIcmdWithAString* fParticleCmd; //command: particle
60 G4UIcmdWith3VectorAndUnit* fMomentumCmd; //command: momentum
61 G4UIcmdWith3VectorAndUnit* fPositionCmd; //command: position
62 G4UIcmdWithADoubleAndUnit* fTimeCmd; //command: time
63 G4UIcmdWith3Vector* fPolarizationCmd; //command: polarization
64 G4UIcmdWith3Vector* fDirectionCmd; //command: direction
65 G4UIcmdWithADoubleAndUnit* fKinEnergyCmd; //command: kinEnergy
66 G4UIcmdWithoutParameter* fListCmd; //command: list
67 G4UIcmdWithoutParameter* fAddParticleCmd; //command: addParticle
68 G4UIcmdWithAnInteger* fRemoveParticleCmd; //command: removeParticle
69 G4UIcmdWithoutParameter* fResetCmd; //command: reset
70};
71
72#endif //ALI_PARTICLE_GUN_MESSENGER_H
73
74