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

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/gen/include/RAT/GLG4PrimaryGeneratorAction.hh Source File
Ratpac-two
GLG4PrimaryGeneratorAction.hh
1 // This file is part of the GenericLAND software library.
2 // $Id: GLG4PrimaryGeneratorAction.hh,v 1.3 2005/11/19 17:59:39 volsung Exp $
3 //
4 // new GLG4PrimaryGeneratorAction.hh by Glenn Horton-Smith, August 3-17, 2001
5 
6 #ifndef __GLG4PrimaryGeneratorAction_hh__
7 #define __GLG4PrimaryGeneratorAction_hh__ 1
9 // GLG4PrimaryGeneratorAction
11 
12 #include <TTimeStamp.h>
13 
14 #include "G4VUserPrimaryGeneratorAction.hh" // for user primary vertex gen.
15 #include "GLG4GenList.hh"
16 
18 class G4Event;
19 class G4Track;
20 
21 class GLG4PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
22  public:
25 
26  void AddGenerator(GLG4Gen *gen);
27  void ClearGenerators(void);
28  void GeneratePrimaries(G4Event *argEvent); // generate primary particles
29 
30  void SetRunUTC(const TTimeStamp &_utc) { runUTC = _utc; };
31  TTimeStamp GetRunUTC() const { return runUTC; };
32 
33  double GetUniversalTime() { return myUniversalTime; }
34 
35  double GetUniversalTimeSincePriorEvent() { return myUniversalTimeSincePriorEvent; }
36 
37  double GetEventWindow() { return myEventWindow; }
38  void SetEventWindow(double argEventWindow);
39 
40  static GLG4PrimaryGeneratorAction *GetTheGLG4PrimaryGeneratorAction() { return theGLG4PrimaryGeneratorAction; }
41 
42  void DeferTrackToLaterEvent(const G4Track *track);
43 
44  protected:
45  GLG4PrimaryGeneratorMessenger *myMessenger;
46 
47  TTimeStamp runUTC;
48  double myUniversalTime;
49  double myUniversalTimeSincePriorEvent;
50  double myEventWindow;
51 
52  bool needReset;
53  GLG4GenList myGenList;
54 
55  static GLG4PrimaryGeneratorAction *theGLG4PrimaryGeneratorAction;
56 };
57 
58 #endif
Definition: GLG4GenList.hh:17
Definition: GLG4Gen.hh:14
Definition: GLG4PrimaryGeneratorAction.hh:21
Definition: GLG4PrimaryGeneratorMessenger.hh:16