Changeset 1337 for trunk/examples/extended/electromagnetic/TestEm2/src
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/electromagnetic/TestEm2/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/electromagnetic/TestEm2/src/DetectorConstruction.cc
r1230 r1337 26 26 // 27 27 // $Id: DetectorConstruction.cc,v 1.14 2009/09/16 18:07:30 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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm2/src/DetectorMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: DetectorMessenger.cc,v 1.8 2006/06/29 16:50:20 gunter 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/TestEm2/src/EmAcceptance.cc
r1230 r1337 25 25 // 26 26 // $Id: EmAcceptance.cc,v 1.5 2006/06/29 16:50:22 gunter 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/TestEm2/src/EventAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: EventAction.cc,v 1. 3 2006/06/29 16:50:24 gunterExp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: EventAction.cc,v 1.5 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...... … … 35 35 #include "RunAction.hh" 36 36 #include "G4Event.hh" 37 #include "G4TrajectoryContainer.hh"38 #include "G4Trajectory.hh"39 #include "G4VVisManager.hh"40 37 #include "G4UnitsTable.hh" 41 38 … … 71 68 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 72 69 73 void EventAction::EndOfEventAction(const G4Event* evt)70 void EventAction::EndOfEventAction(const G4Event*) 74 71 { 75 72 Run->fillPerEvent(); 76 77 if (G4VVisManager::GetConcreteInstance())78 {79 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();80 G4int n_trajectories = 0;81 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();82 for (G4int i=0; i<n_trajectories; i++)83 { G4Trajectory* trj = (G4Trajectory *)84 ((*(evt->GetTrajectoryContainer()))[i]);85 if (drawFlag == "all") trj->DrawTrajectory(50);86 else if ((drawFlag == "charged")&&(trj->GetCharge() != 0.))87 trj->DrawTrajectory(50);88 }89 }90 73 } 91 74 -
trunk/examples/extended/electromagnetic/TestEm2/src/EventActionMessenger.cc
r1230 r1337 26 26 // 27 27 // $Id: EventActionMessenger.cc,v 1.3 2006/06/29 16:50: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 // -
trunk/examples/extended/electromagnetic/TestEm2/src/PhysListEmStandard.cc
r1230 r1337 26 26 // 27 27 // $Id: PhysListEmStandard.cc,v 1.13 2009/11/13 16:01:10 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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/examples/extended/electromagnetic/TestEm2/src/PhysicsList.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsList.cc,v 1.16 2009/09/16 18:07:30 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/TestEm2/src/PhysicsListMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.cc,v 1.5 2006/06/29 16:50:41 gunter 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/TestEm2/src/PrimaryGeneratorAction.cc
r1230 r1337 25 25 // 26 26 // $Id: PrimaryGeneratorAction.cc,v 1.6 2006/06/29 16:50:44 gunter 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/TestEm2/src/RunAction.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: RunAction.cc,v 1.2 4 2009/09/16 18:07:30maire Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: RunAction.cc,v 1.25 2010/02/22 15:41:29 maire Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 143 143 histo[3] = hf->createHistogram1D( "4","longit energy profile (% of E inc)", 144 144 nLbin,0.,nLbin*dLradl); 145 146 histo[4] = hf->createHistogram1D( "5","rms on longit Edep (% of E inc)", 147 nLbin,0.,nLbin*dLradl); 145 148 146 149 G4double Zmin=0.5*dLradl, Zmax=Zmin+nLbin*dLradl; 147 histo[ 4] = hf->createHistogram1D( "5","cumul longit energy dep (% of E inc)",150 histo[5] = hf->createHistogram1D( "6","cumul longit energy dep (% of E inc)", 148 151 nLbin,Zmin,Zmax); 149 150 histo[ 5] = hf->createHistogram1D( "6","rms on cumul longit Edep (% of E inc)",152 153 histo[6] = hf->createHistogram1D( "7","rms on cumul longit Edep (% of E inc)", 151 154 nLbin,Zmin,Zmax); 152 155 153 histo[ 6] = hf->createHistogram1D("7","radial energy profile (% of E inc)",156 histo[7] = hf->createHistogram1D( "8","radial energy profile (% of E inc)", 154 157 nRbin,0.,nRbin*dRradl); 158 159 histo[8] = hf->createHistogram1D( "9","rms on radial Edep (% of E inc)", 160 nRbin,0.,nRbin*dRradl); 155 161 156 162 G4double Rmin=0.5*dRradl, Rmax=Rmin+nRbin*dRradl; 157 histo[ 7]= hf->createHistogram1D("8","cumul radial energy dep (% of E inc)",163 histo[9] = hf->createHistogram1D("10","cumul radial energy dep (% of E inc)", 158 164 nRbin,Rmin,Rmax); 159 165 160 histo[ 8]= hf->createHistogram1D("9","rms on cumul radial Edep (% of E inc)",161 nRbin,Rmin,Rmax); 166 histo[10]= hf->createHistogram1D("11","rms on cumul radial Edep (% of E inc)", 167 nRbin,Rmin,Rmax); 162 168 163 169 delete hf; … … 293 299 G4double bin = (i+0.5)*dLradl; 294 300 histo[3]->fill(bin,MeanELongit[i]/dLradl); 301 histo[4]->fill(bin, rmsELongit[i]/dLradl); 295 302 bin = (i+1)*dLradl; 296 histo[ 4]->fill(bin,MeanELongitCumul[i]);297 histo[ 5]->fill(bin, rmsELongitCumul[i]);303 histo[5]->fill(bin,MeanELongitCumul[i]); 304 histo[6]->fill(bin, rmsELongitCumul[i]); 298 305 } 299 306 #endif … … 320 327 if(tree) { 321 328 G4double bin = (i+0.5)*dRradl; 322 histo[6]->fill(bin,MeanERadial[i]/dRradl); 329 histo[7]->fill(bin,MeanERadial[i]/dRradl); 330 histo[8]->fill(bin, rmsERadial[i]/dRradl); 323 331 bin = (i+1)*dRradl; 324 histo[ 7]->fill(bin,MeanERadialCumul[i]);325 histo[ 8]->fill(bin, rmsERadialCumul[i]);332 histo[9] ->fill(bin,MeanERadialCumul[i]); 333 histo[10]->fill(bin, rmsERadialCumul[i]); 326 334 } 327 335 #endif -
trunk/examples/extended/electromagnetic/TestEm2/src/RunActionMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: RunActionMessenger.cc,v 1.4 2006/06/29 16:50:50 gunter 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/TestEm2/src/StepMax.cc
r1230 r1337 25 25 // 26 26 // $Id: StepMax.cc,v 1.2 2006/06/29 16:50:52 gunter 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/TestEm2/src/StepMaxMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: StepMaxMessenger.cc,v 1.2 2006/06/29 16:50:54 gunter 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/TestEm2/src/SteppingAction.cc
r1230 r1337 25 25 // 26 26 // $Id: SteppingAction.cc,v 1.6 2006/06/29 16:50:57 gunter 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/TestEm2/src/SteppingVerbose.cc
r1230 r1337 25 25 // 26 26 // $Id: SteppingVerbose.cc,v 1.3 2006/06/29 16:50:59 gunter 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/TestEm2/src/TrackingAction.cc
r1230 r1337 25 25 // 26 26 // $Id: TrackingAction.cc,v 1.3 2006/06/29 16:51:01 gunter 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......
Note: See TracChangeset
for help on using the changeset viewer.