- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/hadrontherapy/src/HadrontherapyPhysicsList.cc
r1230 r1313 76 76 // and local physic for ion-ion enelastic processes) 77 77 78 #include "G4RunManager.hh" 79 #include "G4Region.hh" 80 #include "G4RegionStore.hh" 78 81 #include "HadrontherapyPhysicsList.hh" 79 82 #include "HadrontherapyPhysicsListMessenger.hh" … … 86 89 #include "LocalINCLIonIonInelasticPhysic.hh" // Physic dedicated to the ion-ion inelastic processes using INCL/ABLA 87 90 88 // Physic lists (contained inside the Geant4 distribution)91 // Physic lists (contained inside the Geant4 source code, in the 'physicslists folder') 89 92 #include "G4EmStandardPhysics_option3.hh" 90 93 #include "G4EmLivermorePhysics.hh" … … 173 176 { 174 177 // transportation 175 //176 178 AddTransportation(); 177 179 178 180 // electromagnetic physics list 179 //180 181 emPhysicsList->ConstructProcess(); 181 182 em_config.AddModels(); 182 183 183 184 // decay physics list 184 //185 185 decPhysicsList->ConstructProcess(); 186 186 … … 207 207 // ELECTROMAGNETIC MODELS 208 208 ///////////////////////////////////////////////////////////////////////////// 209 210 if (name == "standard_opt3") { 209 if (name == "standard_opt3") { 211 210 emName = name; 212 211 delete emPhysicsList; 213 212 emPhysicsList = new G4EmStandardPhysics_option3(); 213 G4RunManager::GetRunManager() -> PhysicsHasBeenModified(); 214 214 G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmStandardPhysics_option3" << G4endl; 215 215 … … 218 218 delete emPhysicsList; 219 219 emPhysicsList = new G4EmLivermorePhysics(); 220 G4RunManager::GetRunManager()-> PhysicsHasBeenModified(); 220 221 G4cout << "THE FOLLOWING ELECTROMAGNETIC PHYSICS LIST HAS BEEN ACTIVATED: G4EmLivermorePhysics" << G4endl; 221 222 … … 308 309 SetCutValue(cutForPositron, "e+"); 309 310 311 // Set cuts for detector 312 SetDetectorCut(defaultCutValue); 310 313 if (verboseLevel>0) DumpCutValuesTable(); 311 314 } … … 331 334 SetParticleCuts(cutForPositron, G4Positron::Positron()); 332 335 } 336 337 void HadrontherapyPhysicsList::SetDetectorCut(G4double cut) 338 { 339 340 G4String regionName = "DetectorLog"; 341 G4Region* region = G4RegionStore::GetInstance()->GetRegion(regionName); 342 343 G4ProductionCuts* cuts = new G4ProductionCuts ; 344 cuts -> SetProductionCut(cut,G4ProductionCuts::GetIndex("gamma")); 345 cuts -> SetProductionCut(cut,G4ProductionCuts::GetIndex("e-")); 346 cuts -> SetProductionCut(cut,G4ProductionCuts::GetIndex("e+")); 347 region -> SetProductionCuts(cuts); 348 } 349
Note: See TracChangeset
for help on using the changeset viewer.