LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
VisualizationAction.h
Go to the documentation of this file.
1 //
23 
24 #ifndef LArG4_VisualizationAction_H
25 #define LArG4_VisualizationAction_H
26 
27 #include "Geant4/G4Types.hh"
28 #include "nug4/G4Base/UserAction.h"
29 
30 // Forward declarations of G4 classes that are arguments to
31 // UserAction methods.
32 class G4Run;
33 class G4Event;
34 
35 namespace larg4 {
36 
38  public:
40  virtual ~VisualizationAction();
41 
42  virtual void BeginOfRunAction(const G4Run*);
43  virtual void EndOfRunAction(const G4Run*);
44  virtual void BeginOfEventAction(const G4Event*);
45  virtual void EndOfEventAction(const G4Event*);
46 
48  G4double GetTrackEnergyCutoff() const { return m_energyCutoff; }
49  void SetTrackEnergyCutoff(const G4double e) { m_energyCutoff = e; }
50 
51  private:
53  G4double m_energyCutoff;
54 
57  };
58 
59 } // namespace LArG4
60 
61 #endif // LArG4_VisualizationAction_H
G4bool m_drawNeutrals
Whether or not to draw neutral tracks (default is no).
virtual void BeginOfEventAction(const G4Event *)
G4UserEventAction interfaces.
Geant4 interface.
see below
virtual void BeginOfRunAction(const G4Run *)
G4UserRunAction interfaces.
virtual void EndOfEventAction(const G4Event *)
void SetTrackEnergyCutoff(const G4double e)
virtual void EndOfRunAction(const G4Run *)
Float_t e
Definition: plot.C:35
G4double m_energyCutoff
Don't draw particles with energies less than this cut.
G4double GetTrackEnergyCutoff() const
Acessors, if we need them: