Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -28,38 +28,33 @@
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
#include "RE02EventAction.hh"
|
||||
|
||||
#include "G4Event.hh"
|
||||
#include "G4EventManager.hh"
|
||||
#include "G4TrajectoryContainer.hh"
|
||||
#include "G4Trajectory.hh"
|
||||
#include "G4TrajectoryContainer.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
RE02EventAction::RE02EventAction()
|
||||
: G4UserEventAction()
|
||||
{}
|
||||
RE02EventAction::RE02EventAction() : G4UserEventAction() {}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
RE02EventAction::~RE02EventAction()
|
||||
{}
|
||||
RE02EventAction::~RE02EventAction() {}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
void RE02EventAction::BeginOfEventAction(const G4Event*)
|
||||
{}
|
||||
void RE02EventAction::BeginOfEventAction(const G4Event*) {}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
void RE02EventAction::EndOfEventAction(const G4Event* evt)
|
||||
{
|
||||
G4int event_id = evt->GetEventID();
|
||||
|
||||
|
||||
// periodic printing
|
||||
//
|
||||
if (event_id < 10 ||
|
||||
(event_id < 1000 && event_id%100 == 0) ||
|
||||
(event_id < 10000 && event_id%1000 == 0) ||
|
||||
(event_id < 100000 && event_id%10000 == 0)) {
|
||||
if (event_id < 10 || (event_id < 1000 && event_id % 100 == 0)
|
||||
|| (event_id < 10000 && event_id % 1000 == 0) || (event_id < 100000 && event_id % 10000 == 0))
|
||||
{
|
||||
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
|
||||
#ifdef print_stored_trajectories
|
||||
// get number of stored trajectories
|
||||
@@ -67,11 +62,9 @@ void RE02EventAction::EndOfEventAction(const G4Event* evt)
|
||||
G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
|
||||
G4int n_trajectories = 0;
|
||||
if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
|
||||
G4cout << " " << n_trajectories
|
||||
<< " trajectories stored in this event." << G4endl;
|
||||
G4cout << " " << n_trajectories << " trajectories stored in this event." << G4endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user