#include <VisualizationAction.h>
Definition at line 37 of file VisualizationAction.h.
larg4::VisualizationAction::VisualizationAction |
( |
| ) |
|
Definition at line 28 of file VisualizationAction.cxx.
double VisualizationEnergyCut() const
G4bool m_drawNeutrals
Whether or not to draw neutral tracks (default is no).
static constexpr double GeV
G4double m_energyCutoff
Don't draw particles with energies less than this cut.
bool DrawNeutrals() const
larg4::VisualizationAction::~VisualizationAction |
( |
| ) |
|
|
virtual |
void larg4::VisualizationAction::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
virtual |
void larg4::VisualizationAction::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
|
virtual |
Definition at line 40 of file VisualizationAction.cxx.
43 if(G4VVisManager::GetConcreteInstance()){
44 G4cout <<
"Geant4 visualisation is ON" << G4endl;
45 G4UImanager* UI = G4UImanager::GetUIpointer();
46 UI->ApplyCommand(
"/tracking/storeTrajectory 1");
47 UI->ApplyCommand(
"/vis/scene/notifyhandlers");
void larg4::VisualizationAction::EndOfEventAction |
( |
const G4Event * |
a_event | ) |
|
|
virtual |
Definition at line 61 of file VisualizationAction.cxx.
63 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
67 G4TrajectoryContainer* trajectoryContainer = a_event->GetTrajectoryContainer();
68 G4int n_trajectories = 0;
69 if (trajectoryContainer)
70 n_trajectories = trajectoryContainer->entries();
72 for (G4int i=0; i < n_trajectories; i++)
74 G4VTrajectory* trajectory = (*trajectoryContainer)[i];
79 G4bool drawThisTrack =
false;
85 G4double charge = trajectory->GetCharge();
88 drawThisTrack =
false;
92 trajectory->DrawTrajectory();
G4bool m_drawNeutrals
Whether or not to draw neutral tracks (default is no).
G4double m_energyCutoff
Don't draw particles with energies less than this cut.
void larg4::VisualizationAction::EndOfRunAction |
( |
const G4Run * |
| ) |
|
|
virtual |
Definition at line 51 of file VisualizationAction.cxx.
54 if (G4VVisManager::GetConcreteInstance())
55 G4UImanager::GetUIpointer()->ApplyCommand(
"/vis/viewer/update");
G4double larg4::VisualizationAction::GetTrackEnergyCutoff |
( |
| ) |
const |
|
inline |
Acessors, if we need them:
Definition at line 49 of file VisualizationAction.h.
G4double m_energyCutoff
Don't draw particles with energies less than this cut.
void larg4::VisualizationAction::SetTrackEnergyCutoff |
( |
const G4double |
e | ) |
|
|
inline |
Definition at line 50 of file VisualizationAction.h.
G4double m_energyCutoff
Don't draw particles with energies less than this cut.
G4bool larg4::VisualizationAction::m_drawNeutrals |
|
private |
G4double larg4::VisualizationAction::m_energyCutoff |
|
private |
The documentation for this class was generated from the following files: