// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * 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. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4eBremsstrahlung.hh,v 1.14 2002/04/09 17:34:41 vnivanch Exp $ // GEANT4 tag $Name: geant4-04-01 $ // // // ------------ G4eBremsstrahlung physics process ------ // by Laszlo Urban, 24 July 1996 // // 01-10-96 new type G4OrderedTable; ComputePartialSumSigma() // 20-03-97 new energy loss+ionisation+brems scheme, L.Urban // 01-09-98 new method PrintInfo() // 10-02-00 modifications , new e.m. structure, L.Urban // 07-08-00 new cross section/en.loss parametrisation, LPM flag , L.Urban // 09-08-01 new methods Store/Retrieve PhysicsTable (mma) // 19-09-01 come back to previous process name "eBrem" // 29-10-01 all static functions no more inlined (mma) // ------------------------------------------------------------ // Class description // // This class manages the bremsstrahlung for e-/e+ // it inherites from G4VContinuousDiscreteProcess via G4VeEnergyLoss. // // Class description - end //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... #ifndef G4eBremsstrahlung_h #define G4eBremsstrahlung_h 1 #include "G4ios.hh" #include "globals.hh" #include "Randomize.hh" #include "G4VeEnergyLoss.hh" #include "G4Track.hh" #include "G4Step.hh" #include "G4Gamma.hh" #include "G4Electron.hh" #include "G4Positron.hh" #include "G4OrderedTable.hh" #include "G4PhysicsTable.hh" #include "G4PhysicsLogVector.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... class G4eBremsstrahlung : public G4VeEnergyLoss { public: G4eBremsstrahlung(const G4String& processName = "eBrem"); ~G4eBremsstrahlung(); G4bool IsApplicable(const G4ParticleDefinition&); void PrintInfoDefinition(); void BuildPhysicsTable(const G4ParticleDefinition& ParticleType); void BuildLossTable(const G4ParticleDefinition& ParticleType); void BuildLambdaTable(const G4ParticleDefinition& ParticleType); G4double GetMeanFreePath(const G4Track& track, G4double previousStepSize, G4ForceCondition* condition ); G4VParticleChange *PostStepDoIt(const G4Track& track, const G4Step& step); G4double GetLambda(G4double KineticEnergy,G4Material* material); G4bool StorePhysicsTable(G4ParticleDefinition* , const G4String& directory, G4bool); // store eLoss and MeanFreePath tables into an external file // specified by 'directory' (must exist before invokation) G4bool RetrievePhysicsTable(G4ParticleDefinition* , const G4String& directory, G4bool); // retrieve eLoss and MeanFreePath tables from an external file // specified by 'directory' protected: G4double ComputeMeanFreePath( const G4ParticleDefinition* ParticleType, G4double KineticEnergy, const G4Material* aMaterial); void ComputePartialSumSigma( const G4ParticleDefinition* ParticleType, G4double KineticEnergy, const G4Material* aMaterial); virtual G4double ComputeCrossSectionPerAtom( const G4ParticleDefinition* ParticleType, G4double KineticEnergy, G4double AtomicNumber, G4double GammaEnergyCut); private: G4double ComputeBremLoss(G4double Z,G4double natom,G4double T, G4double Cut,G4double x); G4double ComputePositronCorrFactorLoss(G4double AtomicNumber, G4double KineticEnergy, G4double GammaEnergyCut); G4double ComputePositronCorrFactorSigma(G4double AtomicNumber, G4double KineticEnergy, G4double GammaEnergyCut); G4Element* SelectRandomAtom(G4Material* aMaterial) const; G4double ScreenFunction1(G4double ScreenVariable); G4double ScreenFunction2(G4double ScreenVariable); G4double SupressionFunction(const G4Material* aMaterial, G4double KineticEnergy, G4double GammaEnergy) ; G4eBremsstrahlung & operator=(const G4eBremsstrahlung &right); G4eBremsstrahlung(const G4eBremsstrahlung&); private: G4PhysicsTable* theMeanFreePathTable; G4OrderedTable PartialSumSigma; // partial sum of total crosssection static G4double LowerBoundLambda; // low energy limit of crossection table static G4double UpperBoundLambda; // high energy limit of crossection table static G4int NbinLambda; // number of bins in the tables G4double MinThreshold; // minimun value for the production threshold G4double LowestKineticEnergy,HighestKineticEnergy; // bining of the Eloss table G4int TotBin; // (from G4VeEnergyLoss) static G4double probsup; static G4bool LPMflag; public: static void SetLowerBoundLambda(G4double val); static void SetUpperBoundLambda(G4double val); static void SetNbinLambda(G4int n); static G4double GetLowerBoundLambda(); static G4double GetUpperBoundLambda(); static G4int GetNbinLambda(); static void SetLPMflag(G4bool val); static G4bool GetLPMflag(); }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #include "G4eBremsstrahlung.icc" #endif