- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/src/G4alphaIonisation.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4alphaIonisation.cc,v 1. 1 2009/11/10 11:50:30vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: G4alphaIonisation.cc,v 1.3 2010/10/26 10:06:12 vnivanch Exp $ 27 // GEANT4 tag $Name: emstand-V09-03-24 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 64 64 : G4VEnergyLossProcess(name), 65 65 theParticle(0), 66 isInitialised(false), 67 nuclearStopping(true) 66 isInitialised(false) 68 67 { 69 68 // SetLinearLossLimit(0.15); … … 74 73 mass = 0.0; 75 74 ratio = 0.0; 75 eth = 8*MeV; 76 76 } 77 77 … … 85 85 G4bool G4alphaIonisation::IsApplicable(const G4ParticleDefinition& p) 86 86 { 87 return (p.GetPDGCharge() == 2*eplus); 87 return (!p.IsShortLived() && 88 std::fabs(p.GetPDGCharge() - 2*CLHEP::eplus) < 0.01); 88 89 } 89 90 … … 122 123 SetSecondaryParticle(G4Electron::Electron()); 123 124 124 if (!EmModel(1)) SetEmModel(new G4BraggIonModel(), 1);125 if (!EmModel(1)) { SetEmModel(new G4BraggIonModel(), 1); } 125 126 EmModel(1)->SetLowEnergyLimit(MinKinEnergy()); 126 127 … … 129 130 EmModel(1)->SetHighEnergyLimit(eth); 130 131 131 if (!FluctModel()) SetFluctModel(new G4UniversalFluctuation());132 if (!FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); } 132 133 AddEmModel(1, EmModel(1), new G4IonFluctuations()); 133 134 134 if (!EmModel(2)) SetEmModel(new G4BetheBlochModel(),2);135 if (!EmModel(2)) { SetEmModel(new G4BetheBlochModel(),2); } 135 136 EmModel(2)->SetLowEnergyLimit(eth); 136 137 EmModel(2)->SetHighEnergyLimit(MaxKinEnergy()); … … 139 140 isInitialised = true; 140 141 } 141 // reinitialisation of corrections for the new run142 EmModel(1)->ActivateNuclearStopping(nuclearStopping);143 EmModel(2)->ActivateNuclearStopping(nuclearStopping);144 142 } 145 143 … … 147 145 148 146 void G4alphaIonisation::PrintInfo() 149 { 150 if (G4Alpha::Alpha() == theParticle) { 151 if(EmModel(1) && EmModel(2)) { 152 G4cout << " NuclearStopping= " << nuclearStopping 153 << G4endl; 154 } 155 } 156 } 147 {} 157 148 158 149 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset
for help on using the changeset viewer.