Changeset 1342 for trunk/examples/novice/N06/src/ExN06PhysicsList.cc
- Timestamp:
- Nov 5, 2010, 4:08:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N06/src/ExN06PhysicsList.cc
r1337 r1342 25 25 // 26 26 // 27 // $Id: ExN06PhysicsList.cc,v 1.1 7 2009/11/10 05:16:23 gum Exp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: ExN06PhysicsList.cc,v 1.19 2010/10/23 19:14:03 gum Exp $ 28 // GEANT4 tag $Name: examples-V09-03-09 $ 29 29 // 30 30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 31 31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 32 33 #include "G4ios.hh"34 #include <iomanip>35 32 36 33 #include "globals.hh" … … 42 39 #include "G4ParticleTable.hh" 43 40 44 #include "G4Material.hh"45 #include "G4MaterialTable.hh"46 47 41 #include "G4ProcessManager.hh" 48 #include "G4ProcessVector.hh"49 42 50 43 #include "G4Cerenkov.hh" … … 52 45 #include "G4OpAbsorption.hh" 53 46 #include "G4OpRayleigh.hh" 47 #include "G4OpMieHG.hh" 54 48 #include "G4OpBoundaryProcess.hh" 55 49 … … 61 55 ExN06PhysicsList::ExN06PhysicsList() : G4VUserPhysicsList() 62 56 { 63 theCerenkovProcess = 0; 64 theScintillationProcess = 0; 65 theAbsorptionProcess = 0; 66 theRayleighScatteringProcess = 0; 67 theBoundaryProcess = 0; 57 theCerenkovProcess = NULL; 58 theScintillationProcess = NULL; 59 theAbsorptionProcess = NULL; 60 theRayleighScatteringProcess = NULL; 61 theMieHGScatteringProcess = NULL; 62 theBoundaryProcess = NULL; 68 63 69 64 pMessenger = new ExN06PhysicsListMessenger(this); … … 110 105 { 111 106 // leptons 107 // e+/- 112 108 G4Electron::ElectronDefinition(); 113 109 G4Positron::PositronDefinition(); 110 // mu+/- 111 G4MuonPlus::MuonPlusDefinition(); 112 G4MuonMinus::MuonMinusDefinition(); 113 // nu_e 114 114 G4NeutrinoE::NeutrinoEDefinition(); 115 115 G4AntiNeutrinoE::AntiNeutrinoEDefinition(); 116 G4MuonPlus::MuonPlusDefinition(); 117 G4MuonMinus::MuonMinusDefinition(); 116 // nu_mu 118 117 G4NeutrinoMu::NeutrinoMuDefinition(); 119 118 G4AntiNeutrinoMu::AntiNeutrinoMuDefinition(); … … 124 123 void ExN06PhysicsList::ConstructMesons() 125 124 { 126 // mesons125 // mesons 127 126 G4PionPlus::PionPlusDefinition(); 128 127 G4PionMinus::PionMinusDefinition(); … … 134 133 void ExN06PhysicsList::ConstructBaryons() 135 134 { 136 // barions135 // barions 137 136 G4Proton::ProtonDefinition(); 138 137 G4AntiProton::AntiProtonDefinition(); 138 139 139 G4Neutron::NeutronDefinition(); 140 140 G4AntiNeutron::AntiNeutronDefinition(); … … 207 207 // gamma 208 208 // Construct processes for gamma 209 //pmanager->AddDiscreteProcess(new G4GammaConversion());210 //pmanager->AddDiscreteProcess(new G4ComptonScattering());211 //pmanager->AddDiscreteProcess(new G4PhotoElectricEffect());209 pmanager->AddDiscreteProcess(new G4GammaConversion()); 210 pmanager->AddDiscreteProcess(new G4ComptonScattering()); 211 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect()); 212 212 213 213 } else if (particleName == "e-") { … … 238 238 if ((particle->GetPDGCharge() != 0.0) && 239 239 (particle->GetParticleName() != "chargedgeantino")) { 240 // all others charged particles except geantino240 // all others charged particles except geantino 241 241 pmanager->AddProcess(new G4hMultipleScattering(),-1,1,1); 242 242 pmanager->AddProcess(new G4hIonisation(), -1,2,2); … … 251 251 { 252 252 theCerenkovProcess = new G4Cerenkov("Cerenkov"); 253 theScintillationProcess = new G4Scintillation("Scintillation");254 theAbsorptionProcess = new G4OpAbsorption();253 theScintillationProcess = new G4Scintillation("Scintillation"); 254 theAbsorptionProcess = new G4OpAbsorption(); 255 255 theRayleighScatteringProcess = new G4OpRayleigh(); 256 theBoundaryProcess = new G4OpBoundaryProcess(); 256 theMieHGScatteringProcess = new G4OpMieHG(); 257 theBoundaryProcess = new G4OpBoundaryProcess(); 257 258 258 259 // theCerenkovProcess->DumpPhysicsTable(); 259 260 // theScintillationProcess->DumpPhysicsTable(); 260 // theAbsorptionProcess->DumpPhysicsTable();261 261 // theRayleighScatteringProcess->DumpPhysicsTable(); 262 262 … … 296 296 pmanager->AddDiscreteProcess(theAbsorptionProcess); 297 297 pmanager->AddDiscreteProcess(theRayleighScatteringProcess); 298 pmanager->AddDiscreteProcess(theMieHGScatteringProcess); 298 299 pmanager->AddDiscreteProcess(theBoundaryProcess); 299 300 } … … 309 310 theAbsorptionProcess->SetVerboseLevel(verbose); 310 311 theRayleighScatteringProcess->SetVerboseLevel(verbose); 312 theMieHGScatteringProcess->SetVerboseLevel(verbose); 311 313 theBoundaryProcess->SetVerboseLevel(verbose); 312 314 }
Note: See TracChangeset
for help on using the changeset viewer.