Changeset 1337 for trunk/examples/extended/medical/GammaTherapy/src
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (15 years ago)
- Location:
- trunk/examples/extended/medical/GammaTherapy/src
- Files:
-
- 7 edited
-
EventAction.cc (modified) (2 diffs)
-
EventActionMessenger.cc (modified) (1 diff)
-
G4StepLimiterBuilder.cc (modified) (1 diff)
-
G4StepLimiterMessenger.cc (modified) (1 diff)
-
G4StepLimiterPerRegion.cc (modified) (1 diff)
-
PhysicsList.cc (modified) (5 diffs)
-
PhysicsListMessenger.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/medical/GammaTherapy/src/EventAction.cc
r807 r1337 41 41 42 42 #include "G4UImanager.hh" 43 #include "G4TrajectoryContainer.hh"44 #include "G4Trajectory.hh"45 #include "G4VVisManager.hh"46 43 #include "G4ios.hh" 47 44 … … 118 115 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 119 116 120 void EventAction::EndOfEventAction(const G4Event* evt)117 void EventAction::EndOfEventAction(const G4Event*) 121 118 { 122 119 (Histo::GetPointer())->SaveEvent(); 123 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();124 125 if(pVVisManager) {126 G4TrajectoryContainer* trjc = evt->GetTrajectoryContainer();127 G4int n_trajectories = 0;128 if (trjc) n_trajectories = trjc->entries();129 130 for(G4int i=0; i<n_trajectories; i++) {131 G4Trajectory* t = (G4Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);132 if (drawFlag == "all") t->DrawTrajectory(1000);133 else if ((drawFlag == "charged")&&(t->GetCharge() != 0.))134 t->DrawTrajectory(1000);135 else if ((drawFlag == "neutral")&&(t->GetCharge() == 0.))136 t->DrawTrajectory(1000);137 else if ((drawFlag == "charged+n")&&((t->GetCharge() != 0.)||138 (t->GetCharge()==0.&&t->GetParticleName()=="neutron")))139 t->DrawTrajectory(1000);140 }141 }142 120 143 121 if(verbose > 0) { -
trunk/examples/extended/medical/GammaTherapy/src/EventActionMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: EventActionMessenger.cc,v 1.2 2006/06/29 17:27:19 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/medical/GammaTherapy/src/G4StepLimiterBuilder.cc
r1230 r1337 26 26 // 27 27 // $Id: G4StepLimiterBuilder.cc,v 1.3 2006/06/29 17:27:48 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/medical/GammaTherapy/src/G4StepLimiterMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: G4StepLimiterMessenger.cc,v 1.2 2006/06/29 17:27: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/medical/GammaTherapy/src/G4StepLimiterPerRegion.cc
r1230 r1337 25 25 // 26 26 // $Id: G4StepLimiterPerRegion.cc,v 1.4 2007/05/16 16:27:53 vnivanch 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/medical/GammaTherapy/src/PhysicsList.cc
r1230 r1337 24 24 // ******************************************************************** 25 25 // 26 // $Id: PhysicsList.cc,v 1.1 6 2008/06/11 15:17:57 vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $26 // $Id: PhysicsList.cc,v 1.17 2009/11/21 16:47:07 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-01 $ 28 28 // 29 29 //--------------------------------------------------------------------------- … … 46 46 #include "PhysicsListMessenger.hh" 47 47 48 #include "ParticlesBuilder.hh"49 48 #include "G4EmStandardPhysics.hh" 50 49 #include "G4EmStandardPhysics_option1.hh" 51 50 #include "G4EmStandardPhysics_option2.hh" 52 51 #include "G4EmStandardPhysics_option3.hh" 53 #include " PhysListEmLivermore.hh"54 #include " PhysListEmPenelope.hh"52 #include "G4EmLivermorePhysics.hh" 53 #include "G4EmPenelopePhysics.hh" 55 54 #include "G4StepLimiterBuilder.hh" 56 55 #include "G4DecayPhysics.hh" … … 60 59 #include "G4EmExtraPhysics.hh" 61 60 #include "G4QStoppingPhysics.hh" 62 //#include "PhysListEmModelPai.hh"63 61 64 62 #include "G4UnitsTable.hh" … … 89 87 90 88 // Add Physics builders 91 RegisterPhysics(new ParticlesBuilder());89 RegisterPhysics(new G4DecayPhysics()); 92 90 } 93 91 … … 156 154 G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl; 157 155 158 } else if (name == "livermore" && !emBuilderIsRegisted) { 159 RegisterPhysics(new PhysListEmLivermore()); 160 emBuilderIsRegisted = true; 161 G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl; 162 163 } else if (name == "penelope" && !emBuilderIsRegisted) { 164 RegisterPhysics(new PhysListEmPenelope()); 165 emBuilderIsRegisted = true; 166 G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl; 167 /* 168 } else if (name == "pai" && !emBuilderIsRegisted) { 169 RegisterPhysics(new PhysListEmModelPai()); 170 emBuilderIsRegisted = true; 171 G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl; 172 */ 173 174 } else if (name == "decay" && !decayIsRegisted && emBuilderIsRegisted) { 175 RegisterPhysics(new G4DecayPhysics()); 176 decayIsRegisted = true; 156 } else if (name == "emlivermore" && !emBuilderIsRegisted) { 157 RegisterPhysics(new G4EmLivermorePhysics()); 158 emBuilderIsRegisted = true; 159 G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl; 160 161 } else if (name == "empenelope" && !emBuilderIsRegisted) { 162 RegisterPhysics(new G4EmPenelopePhysics()); 163 emBuilderIsRegisted = true; 177 164 G4cout << "PhysicsList::AddPhysicsList <" << name << ">" << G4endl; 178 165 -
trunk/examples/extended/medical/GammaTherapy/src/PhysicsListMessenger.cc
r1230 r1337 25 25 // 26 26 // $Id: PhysicsListMessenger.cc,v 1.3 2006/06/29 17:28:04 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.
