// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4eBremsstrahlung52.icc,v 1.3 2006/06/29 19:52:02 gunter Exp $ // GEANT4 tag $Name: geant4-08-02 $ // // ------------ G4eBremsstrahlung52 physics process --------- // by Michel Maire, 27 July 1996 // // 13-12-96 : Sign corrected in the ScreenFunctions, L.Urban // 20/03/97 : new energy loss+ionisation+brems scheme, L.Urban // 28/05/01 : V.Ivanchenko minor changes to provide ANSI -wall compilation // 16-01-03 Migrade to cut per region (V.Ivanchenko) // 08-08-03 This class is frozen at the release 5.2 (V.Ivanchenko) // --------------------------------------------------------------------------- //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... inline G4bool G4eBremsstrahlung52::IsApplicable( const G4ParticleDefinition& particle) { return( (&particle == G4Electron::Electron()) ||(&particle == G4Positron::Positron()) ); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... inline G4double G4eBremsstrahlung52::GetMeanFreePath(const G4Track& track, G4double, G4ForceCondition*) // gives the MeanFreePath in GEANT4 internal units { const G4DynamicParticle* aDynamicParticle = track.GetDynamicParticle(); G4double KineticEnergy = aDynamicParticle->GetKineticEnergy(); const G4MaterialCutsCouple* couple = track.GetMaterialCutsCouple(); G4double MeanFreePath; G4bool isOutRange; if (KineticEnergy < LowestKineticEnergy) MeanFreePath = DBL_MAX; else { if (KineticEnergy > HighestKineticEnergy) KineticEnergy = 0.99*HighestKineticEnergy ; MeanFreePath = (*theMeanFreePathTable)(couple->GetIndex())-> GetValue( KineticEnergy, isOutRange ); } return MeanFreePath; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... inline G4double G4eBremsstrahlung52::ScreenFunction1(G4double ScreenVariable) // compute the value of the screening function 3*PHI1 - PHI2 { G4double screenVal; if (ScreenVariable > 1.) screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952); else screenVal = 42.392 - ScreenVariable* (7.796 - 1.961*ScreenVariable); return screenVal; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... inline G4double G4eBremsstrahlung52::ScreenFunction2(G4double ScreenVariable) // compute the value of the screening function 1.5*PHI1 - 0.5*PHI2 { G4double screenVal; if (ScreenVariable > 1.) screenVal = 42.24 - 8.368*std::log(ScreenVariable+0.952); else screenVal = 41.734 - ScreenVariable* (6.484 - 1.250*ScreenVariable); return screenVal; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... inline G4double G4eBremsstrahlung52::GetLambda( G4double KineticEnergy, const G4MaterialCutsCouple* couple) { G4bool isOut; return (*theMeanFreePathTable)[couple->GetIndex()]-> GetValue(KineticEnergy,isOut); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline G4double G4eBremsstrahlung52::SecondaryEnergyThreshold(size_t index) { return (*secondaryEnergyCuts)[index]; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....