[819] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
| 26 | // |
---|
| 27 | // ------------------------------------------------------------------- |
---|
| 28 | // $Id: G4PenelopeBremsstrahlungContinuous.hh,v 1.3 2006/06/29 19:36:19 gunter Exp $ |
---|
| 29 | // GEANT4 tag $Name: $ |
---|
| 30 | // |
---|
| 31 | // Author: L.Pandola |
---|
| 32 | // |
---|
| 33 | // History: |
---|
| 34 | // ----------- |
---|
| 35 | // 20 Feb 2003 L. Pandola 1st implementation |
---|
| 36 | // 17 Mar 2003 L. Pandola Added the correction for positrons |
---|
| 37 | // Class description: |
---|
| 38 | // Calculation of continuous energy loss for Penelope Bremsstrahlung |
---|
| 39 | // It is used both for electrons and positrons |
---|
| 40 | // -------------------------------------------------------------- |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | #ifndef G4PENELOPEBREMSSTRAHLUNGCONTINUOUS_HH |
---|
| 44 | #define G4PENELOPEBREMSSTRAHLUNGCONTINUOUS_HH 1 |
---|
| 45 | #include "globals.hh" |
---|
| 46 | |
---|
| 47 | class G4PenelopeBremsstrahlungContinuous |
---|
| 48 | { |
---|
| 49 | private: |
---|
| 50 | enum{ NumberofEPoints=57, |
---|
| 51 | NumberofKPoints=32, |
---|
| 52 | NumberofExtendedEGrid=200}; |
---|
| 53 | |
---|
| 54 | public: |
---|
| 55 | |
---|
| 56 | G4PenelopeBremsstrahlungContinuous(G4int Zmat,G4double tCut, G4double emin, G4double emax, |
---|
| 57 | const G4String partName); |
---|
| 58 | ~G4PenelopeBremsstrahlungContinuous(); |
---|
| 59 | G4double CalculateStopping(G4double PrimaryEnergy); |
---|
| 60 | |
---|
| 61 | private: |
---|
| 62 | |
---|
| 63 | void PrepareInterpolationTable(); |
---|
| 64 | void LoadFromFile(); |
---|
| 65 | G4double PositronCorrection(G4double energy); //correction function for positrons |
---|
| 66 | |
---|
| 67 | G4int Zmat; |
---|
| 68 | G4double tCut; |
---|
| 69 | G4double MinE,MaxE; |
---|
| 70 | const G4String partName; |
---|
| 71 | G4double DLFC; //needed for calculation of extended energy grid |
---|
| 72 | G4double Energies[NumberofEPoints]; |
---|
| 73 | G4double ReducedCS[NumberofEPoints][NumberofKPoints]; |
---|
| 74 | G4double TotalCS[NumberofEPoints]; |
---|
| 75 | G4double ExtendedLogEnergy[NumberofExtendedEGrid]; |
---|
| 76 | G4double p0[NumberofExtendedEGrid][NumberofKPoints]; |
---|
| 77 | //G4double Pbcut[NumberofExtendedEGrid]; //serve? |
---|
| 78 | }; |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | #endif |
---|