- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/radioprotection/src/RemSimEventAction.cc
r1230 r1337 31 31 // 32 32 // 33 // $Id: RemSimEventAction.cc,v 1. 9 2006/06/29 16:23:45 gunterExp $34 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $33 // $Id: RemSimEventAction.cc,v 1.11 2010/06/07 05:19:47 perl Exp $ 34 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 35 35 // 36 36 // Author : Susanna Guatelli, guatelli@ge.infn.it … … 39 39 #include "G4Event.hh" 40 40 #include "G4EventManager.hh" 41 #include "G4TrajectoryContainer.hh"42 #include "G4Trajectory.hh"43 #include "G4VVisManager.hh"44 41 #include "G4ios.hh" 45 42 //##include "Randomize.hh" … … 59 56 } 60 57 61 void RemSimEventAction::EndOfEventAction(const G4Event* evt)58 void RemSimEventAction::EndOfEventAction(const G4Event*) 62 59 { 63 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();64 G4int n_trajectories =0;65 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();66 67 if (G4VVisManager::GetConcreteInstance())68 {69 for (G4int i=0; i<n_trajectories; i++)70 { G4Trajectory* trj = (G4Trajectory*)71 ((*(evt->GetTrajectoryContainer()))[i]);72 trj->DrawTrajectory(50);73 }74 }75 60 }
Note: See TracChangeset
for help on using the changeset viewer.