Changeset 1337 for trunk/examples/advanced/purging_magnet
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/advanced/purging_magnet
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/purging_magnet/PurgMag.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMag.cc,v 1.5 2006/06/29 16:05:47 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 // Comments: Main program for the Purgin Magnet example. -
trunk/examples/advanced/purging_magnet/include/PurgMagAnalysisManager.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagAnalysisManager.hh,v 1.4 2009/04/08 10:23:31 cirrone Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/include/PurgMagDetectorConstruction.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagDetectorConstruction.hh,v 1.3 2006/06/29 16:05:51 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/include/PurgMagEventAction.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagEventAction.hh,v 1.3 2006/06/29 16:05:53 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/include/PurgMagPhysicsList.hh
r1230 r1337 35 35 // 36 36 // $Id: PurgMagPhysicsList.hh,v 1.4 2006/06/29 16:05:55 gunter Exp $ 37 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $37 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 38 38 // 39 39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... -
trunk/examples/advanced/purging_magnet/include/PurgMagPrimaryGeneratorAction.hh
r1230 r1337 35 35 // 36 36 // $Id: PurgMagPrimaryGeneratorAction.hh,v 1.3 2006/06/29 16:05:57 gunter Exp $ 37 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $37 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 38 38 // 39 39 -
trunk/examples/advanced/purging_magnet/include/PurgMagRunAction.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagRunAction.hh,v 1.3 2006/06/29 16:05:59 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/include/PurgMagSteppingAction.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagSteppingAction.hh,v 1.3 2006/06/29 16:06:01 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... -
trunk/examples/advanced/purging_magnet/include/PurgMagSteppingVerbose.hh
r1230 r1337 35 35 // 36 36 // $Id: PurgMagSteppingVerbose.hh,v 1.3 2006/06/29 16:06:03 gunter Exp $ 37 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $37 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 38 38 // 39 39 -
trunk/examples/advanced/purging_magnet/include/PurgMagTabulatedField3D.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagTabulatedField3D.hh,v 1.3 2006/06/29 16:06:05 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/include/PurgMagTrackingAction.hh
r1230 r1337 34 34 // 35 35 // $Id: PurgMagTrackingAction.hh,v 1.3 2006/06/29 16:06:07 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/src/PurgMagAnalysisManager.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagAnalysisManager.cc,v 1.3 2006/06/29 16:06:09 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 #ifdef G4ANALYSIS_USE -
trunk/examples/advanced/purging_magnet/src/PurgMagDetectorConstruction.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagDetectorConstruction.cc,v 1.4 2006/06/29 16:06:11 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 #include "PurgMagDetectorConstruction.hh" -
trunk/examples/advanced/purging_magnet/src/PurgMagEventAction.cc
r1230 r1337 33 33 // ******************************** 34 34 // 35 // $Id: PurgMagEventAction.cc,v 1. 4 2006/06/29 16:06:13 gunterExp $36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $35 // $Id: PurgMagEventAction.cc,v 1.6 2010/06/07 05:18:38 perl Exp $ 36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 … … 45 45 #include "G4Event.hh" 46 46 #include "G4EventManager.hh" 47 #include "G4TrajectoryContainer.hh"48 #include "G4Trajectory.hh"49 #include "G4VVisManager.hh"50 #include "Randomize.hh"51 47 52 48 #ifdef G4ANALYSIS_USE … … 76 72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 77 73 78 void PurgMagEventAction::EndOfEventAction(const G4Event* evt)74 void PurgMagEventAction::EndOfEventAction(const G4Event*) 79 75 { 80 if (G4VVisManager::GetConcreteInstance())81 {82 G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();83 G4int n_trajectories = 0;84 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();85 86 for (G4int i=0; i<n_trajectories; i++)87 {88 //G4cout<< "Iteration" << i <<G4endl;89 G4Trajectory* trj = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);90 if (drawFlag == "all")91 {92 trj->DrawTrajectory(50);93 }94 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))95 {96 trj->DrawTrajectory(50);97 }98 }99 //save rndm status100 if (PurgMagRun->GetRndmFreq() == 2)101 {102 CLHEP::HepRandom::saveEngineStatus("endOfEvent.rndm");103 G4int evtNb = evt->GetEventID();104 if (evtNb%printModulo == 0)105 {106 G4cout << "\n---> End of Event: " << evtNb << G4endl;107 CLHEP::HepRandom::showEngineStatus();108 }109 }110 }111 76 } 112 77 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... -
trunk/examples/advanced/purging_magnet/src/PurgMagPhysicsList.cc
r1230 r1337 35 35 // 36 36 // $Id: PurgMagPhysicsList.cc,v 1.5 2006/06/29 16:06:15 gunter Exp $ 37 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $37 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 38 38 // 39 39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... -
trunk/examples/advanced/purging_magnet/src/PurgMagPrimaryGeneratorAction.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagPrimaryGeneratorAction.cc,v 1.3 2006/06/29 16:06:17 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/src/PurgMagRunAction.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagRunAction.cc,v 1.4 2006/06/29 16:06:19 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/src/PurgMagSteppingAction.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagSteppingAction.cc,v 1.5 2006/06/29 16:06:21 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/src/PurgMagSteppingVerbose.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagSteppingVerbose.cc,v 1.3 2006/06/29 16:06:23 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/src/PurgMagTabulatedField3D.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagTabulatedField3D.cc,v 1.4 2006/06/29 16:06:25 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38 -
trunk/examples/advanced/purging_magnet/src/PurgMagTrackingAction.cc
r1230 r1337 34 34 // 35 35 // $Id: PurgMagTrackingAction.cc,v 1.3 2006/06/29 16:06:27 gunter Exp $ 36 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $36 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 37 37 // 38 38
Note: See TracChangeset
for help on using the changeset viewer.