Changeset 1337 for trunk/examples/extended/electromagnetic/TestEm4/src
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/electromagnetic/TestEm4/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm4/src/DetectorConstruction.cc
r1230 r1337 26 26 // 27 27 // $Id: DetectorConstruction.cc,v 1.3 2006/06/29 16:53:51 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 -
trunk/examples/extended/electromagnetic/TestEm4/src/EventAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: EventAction.cc,v 1. 7 2006/06/29 16:53:57 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: EventAction.cc,v 1.9 2010/06/07 05:40:46 perl Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 36 36 37 37 #include "G4Event.hh" 38 #include "G4TrajectoryContainer.hh"39 #include "G4Trajectory.hh"40 #include "G4VVisManager.hh"41 38 #include "G4UnitsTable.hh" 42 39 … … 76 73 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 77 74 78 void EventAction::EndOfEventAction( const G4Event* evt)75 void EventAction::EndOfEventAction( const G4Event*) 79 76 { 80 77 if (drawFlag != "none") … … 85 82 Run->GetHisto(0)->fill(TotalEnergyDeposit/MeV); 86 83 #endif 87 88 // draw trajectories89 if(G4VVisManager::GetConcreteInstance())90 {91 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();92 G4int n_trajectories = 0;93 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();94 for(G4int i=0; i<n_trajectories; i++)95 { G4Trajectory* trj = (G4Trajectory *)96 ((*(evt->GetTrajectoryContainer()))[i]);97 if (drawFlag == "all") trj->DrawTrajectory(1000);98 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))99 trj->DrawTrajectory(1000);100 }101 }102 84 } 103 85 -
trunk/examples/extended/electromagnetic/TestEm4/src/EventActionMessenger.cc
r1230 r1337 26 26 // 27 27 // $Id: EventActionMessenger.cc,v 1.3 2006/06/29 16:54:15 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/electromagnetic/TestEm4/src/PhysicsList.cc
r1230 r1337 26 26 // 27 27 // $Id: PhysicsList.cc,v 1.7 2008/04/07 13:09:43 maire Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 -
trunk/examples/extended/electromagnetic/TestEm4/src/PrimaryGeneratorAction.cc
r1230 r1337 26 26 // 27 27 // $Id: PrimaryGeneratorAction.cc,v 1.3 2006/06/29 16:54:19 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/electromagnetic/TestEm4/src/RunAction.cc
r1230 r1337 25 25 // 26 26 // $Id: RunAction.cc,v 1.11 2008/09/12 18:46:14 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm4/src/SteppingAction.cc
r1230 r1337 26 26 // 27 27 // $Id: SteppingAction.cc,v 1.2 2006/06/29 16:54:23 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 // -
trunk/examples/extended/electromagnetic/TestEm4/src/SteppingVerbose.cc
r1230 r1337 26 26 // 27 27 // $Id: SteppingVerbose.cc,v 1.2 2006/06/29 16:54:26 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $28 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracChangeset
for help on using the changeset viewer.