- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/microbeam/src/MicrobeamEventAction.cc
r807 r1337 25 25 // 26 26 // ------------------------------------------------------------------- 27 // $Id: MicrobeamEventAction.cc,v 1. 6 2006/06/29 16:05:29 gunterExp $27 // $Id: MicrobeamEventAction.cc,v 1.8 2010/06/07 03:18:01 sincerti Exp $ 28 28 // ------------------------------------------------------------------- 29 29 30 30 #include "G4Event.hh" 31 #include "G4TrajectoryContainer.hh"32 #include "G4Trajectory.hh"33 #include "G4VVisManager.hh"34 31 #include "Randomize.hh" 35 32 … … 60 57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 61 58 62 void MicrobeamEventAction::EndOfEventAction(const G4Event* evt)59 void MicrobeamEventAction::EndOfEventAction(const G4Event* ) 63 60 { 64 61 … … 81 78 G4cout << G4endl; 82 79 } 83 84 85 if (G4VVisManager::GetConcreteInstance())86 {87 G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();88 G4int n_trajectories = 0;89 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();90 91 for (G4int i=0; i<n_trajectories; i++)92 {93 //G4cout<< "Iteration" << i <<G4endl;94 G4Trajectory* trj = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);95 if (drawFlag == "all")96 {97 trj->DrawTrajectory(50);98 }99 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))100 {101 trj->DrawTrajectory(50);102 }103 }104 105 //save rndm status106 107 /*108 if (Run->GetRndmFreq() == 2)109 {110 HepRandom::saveEngineStatus("endOfEvent.rndm");111 G4int evtNb = evt->GetEventID();112 if (evtNb%printModulo == 0)113 {114 //G4cout << "\n---> End of Event: " << evtNb << G4endl;115 //HepRandom::showEngineStatus();116 }117 }118 */119 }120 121 80 }
Note: See TracChangeset
for help on using the changeset viewer.