00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 // ------------------------------------------------------------------- 00029 // 00030 // GEANT4 Class file 00031 // 00032 // 00033 // File name: G4EBremsstrahlungSpectrum 00034 // 00035 // Author: V.Ivanchenko (Vladimir.Ivantchenko@cern.ch) 00036 // 00037 // Creation date: 27 September 2001 00038 // 00039 // Modifications: 00040 // 10.10.01 MGP Revision to improve code quality and consistency with design 00041 // 29.11.01 V.Ivanchenko Parametrisation is updated 00042 // 21.02.03 V.Ivanchenko Energy bins are defined in the constructor 00043 // 28.02.03 V.Ivanchenko Filename is defined in the constructor 00044 // 25.05.03 MGP Data member xp contained by value, not a reference 00045 // 00046 // ------------------------------------------------------------------- 00047 00048 // Class Description: 00049 // Provides various integration over gamma spectrum of e- Bremsstrahlung. 00050 // Parametrisation is described in Physics Reference Manual based on 00051 // data from EEDL database. 00052 // Further documentation available from http://www.ge.infn.it/geant4/lowE 00053 00054 // ------------------------------------------------------------------- 00055 00056 #ifndef G4EBREMSSTRAHLUNGSPECTRUM_HH 00057 #define G4EBREMSSTRAHLUNGSPECTRUM_HH 1 00058 00059 #include "globals.hh" 00060 #include "G4DataVector.hh" 00061 #include "G4VEnergySpectrum.hh" 00062 00063 class G4BremsstrahlungParameters; 00064 00065 class G4eBremsstrahlungSpectrum : public G4VEnergySpectrum 00066 { 00067 public: 00068 00069 G4eBremsstrahlungSpectrum(const G4DataVector& bins,const G4String& name); 00070 00071 ~G4eBremsstrahlungSpectrum(); 00072 00073 G4double Probability(G4int Z, 00074 G4double tMin, 00075 G4double tMax, 00076 G4double kineticEnergy, 00077 G4int shell=0, 00078 const G4ParticleDefinition* pd=0) const; 00079 00080 G4double AverageEnergy(G4int Z, 00081 G4double tMin, 00082 G4double tMax, 00083 G4double kineticEnergy, 00084 G4int shell=0, 00085 const G4ParticleDefinition* pd=0) const; 00086 00087 G4double SampleEnergy(G4int Z, 00088 G4double tMin, 00089 G4double tMax, 00090 G4double kineticEnergy, 00091 G4int shell=0, 00092 const G4ParticleDefinition* pd=0) const; 00093 00094 G4double MaxEnergyOfSecondaries(G4double kineticEnergy, 00095 G4int Z = 0, 00096 const G4ParticleDefinition* pd=0) const; 00097 00098 G4double Excitation(G4int Z, G4double kineticEnergy) const; 00099 00100 void PrintData() const; 00101 00102 private: 00103 00104 G4double IntSpectrum(G4double xMin, G4double xMax, 00105 const G4DataVector& p) const; 00106 00107 G4double AverageValue(G4double xMin, G4double xMax, 00108 const G4DataVector& p) const; 00109 00110 G4double Function(G4double x, const G4DataVector& p) const; 00111 00112 00113 // Hide copy constructor and assignment operator 00114 G4eBremsstrahlungSpectrum(const G4eBremsstrahlungSpectrum&); 00115 G4eBremsstrahlungSpectrum & operator = (const G4eBremsstrahlungSpectrum &right); 00116 00117 G4BremsstrahlungParameters* theBRparam; 00118 G4double lowestE; 00119 size_t length; 00120 G4int verbose; 00121 // const G4DataVector& xp; 00122 const G4DataVector xp; 00123 }; 00124 00125 #endif