/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/GLG4VEventAction.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/GLG4VEventAction.hh Source File
Ratpac-two
GLG4VEventAction.hh
1 // This file is part of the GenericLAND software library.
2 // $Id: GLG4VEventAction.hh,v 1.1 2005/08/30 19:55:22 volsung Exp $
3 //
4 //
5 // GenericLAND Simulation
6 //
7 // GLG4 version by Glenn Horton-Smith December, 2004.
8 // Based on earlier work by H. Ikeda, O. Tajima and G. Horton-Smith
9 //
10 
11 #ifndef GLG4VEventAction_h
12 #define GLG4VEventAction_h 1
13 
14 #include "G4UImessenger.hh"
15 #include "G4UserEventAction.hh"
16 #include "fstream"
17 #include "globals.hh"
18 // #include "GLG4HitPhotonCollection.hh"
19 #include "G4DigiManager.hh"
20 #include "G4Event.hh"
21 #include "G4EventManager.hh"
22 #include "G4HCofThisEvent.hh"
23 #include "G4Run.hh"
24 #include "G4RunManager.hh"
25 #include "G4SDManager.hh"
26 #include "G4Trajectory.hh"
27 #include "G4TrajectoryContainer.hh"
28 #include "G4UIcmdWithAString.hh"
29 #include "G4UImanager.hh"
30 #include "G4UnitsTable.hh"
31 #include "G4VHitsCollection.hh"
32 #include "G4VVisManager.hh"
33 #include "G4ios.hh"
34 #include "GLG4HitPMTCollection.hh"
35 
36 class G4UIcmdWithAString;
37 class G4UIcmdWithAnInteger;
38 
39 class GLG4VEventAction : public G4UserEventAction, public G4UImessenger {
40  public:
41  // constructor, destructor
44 
45  // overrides for G4UserEventAction methods
46  virtual void BeginOfEventAction(const G4Event *);
47  virtual void EndOfEventAction(const G4Event *);
48 
49  // overrides for G4UImessenger methods
50  virtual void SetNewValue(G4UIcommand *command, G4String newValue);
51  G4String GetCurrentValue(G4UIcommand *command);
52 
53  // static GLG4HitPhotonCollection* GetTheHitPhotons() { return
54  // &theHitPhotons; }
55  static GLG4HitPMTCollection *GetTheHitPMTCollection() { return &theHitPMTCollection; }
56  static G4bool GetDoParameterizedScintillation() { return fgDoParameterizedScintillation; }
57 
58  protected:
59  // static GLG4HitPhotonCollection theHitPhotons;
60  static GLG4HitPMTCollection theHitPMTCollection;
61 
62  static G4bool flagFullOutputMode;
63  G4String drawFlag;
64 
65  public:
66  virtual void OpenFile(const G4String filename, G4bool outputMode) = 0;
67  virtual void CloseFile() = 0;
68  virtual void FillData(const G4Event *) = 0;
69  virtual void Clear() = 0;
70 
71  protected:
72  G4UIcmdWithAString *fDrawCmd;
73  G4UIcommand *fFileCmd;
74  G4UIcmdWithAString *fModeCmd;
75 
76  static G4bool fgDoParameterizedScintillation;
77 };
78 
79 #endif
Definition: GLG4HitPMTCollection.hh:36
Definition: GLG4VEventAction.hh:39