- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/src/G4MollerBhabhaModel.cc
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4MollerBhabhaModel.cc,v 1.3 1 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4MollerBhabhaModel.cc,v 1.30 2007/05/22 17:34:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 74 74 const G4String& nam) 75 75 : G4VEmModel(nam), 76 particle(0), 77 isElectron(true), 78 twoln10(2.0*log(10.0)), 79 lowLimit(0.2*keV), 80 isInitialised(false) 76 particle(0), 77 isElectron(true), 78 twoln10(2.0*log(10.0)), 79 lowLimit(0.2*keV) 81 80 { 82 81 theElectron = G4Electron::Electron(); … … 88 87 G4MollerBhabhaModel::~G4MollerBhabhaModel() 89 88 {} 89 90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 91 92 void G4MollerBhabhaModel::SetParticle(const G4ParticleDefinition* p) 93 { 94 particle = p; 95 if(p != theElectron) isElectron = false; 96 } 90 97 91 98 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... … … 101 108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 102 109 103 G4double G4MollerBhabhaModel::MaxSecondaryEnergy(const G4ParticleDefinition*,104 G4double kinEnergy)105 {106 G4double tmax = kinEnergy;107 if(isElectron) tmax *= 0.5;108 return tmax;109 }110 111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......112 113 110 void G4MollerBhabhaModel::Initialise(const G4ParticleDefinition* p, 114 111 const G4DataVector&) 115 112 { 116 113 if(!particle) SetParticle(p); 117 SetDeexcitationFlag(false); 118 119 if(isInitialised) return; 120 121 isInitialised = true; 122 if(pParticleChange) { 114 if(pParticleChange) 123 115 fParticleChange = reinterpret_cast<G4ParticleChangeForLoss*> 124 116 (pParticleChange); 125 } else {117 else 126 118 fParticleChange = new G4ParticleChangeForLoss(); 127 }128 119 } 129 120
Note: See TracChangeset
for help on using the changeset viewer.