Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:22:04

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // 
0027 // -------------------------------------------------------------------
0028 //
0029 // Author: A. Forti
0030 //
0031 // History:
0032 // -----------
0033 // 02 Mar 1999  A. Forti        1st implementation
0034 // 27 Sep 2001  V. Ivanchenko   Major revision according to a design iteration
0035 // 10 Oct 2001  M.G. Pia        Revision to improve code quality 
0036 //                              and consistency with design
0037 // 29 Nov 2001  V.Ivanchenko    New parametrisation of EEDL data
0038 // 21 Feb 2003  V.Ivanchenko    Energy bins for spectrum are defined here
0039 // 24 Mar 2003  P.Rodrigues     Changes to accommodate new angular generators
0040 // 06 Nov 2003  MGP             Overloaded SetAngularGenerator
0041 //
0042 // -------------------------------------------------------------------
0043 
0044 // Class description:
0045 // Low Energy electromagnetic process, electron Bremsstrahlung
0046 // based on the data of the EEDL database. Details are described
0047 // in the Physics Reference Manual.
0048 // Further documentation available from http://www.ge.infn.it/geant4/lowE
0049 
0050 // --------------------------------------------------------------
0051 
0052 
0053 #ifndef G4RDLOWENERGYBREMSSTRAHLUNG_HH
0054 #define G4RDLOWENERGYBREMSSTRAHLUNG_HH 1
0055 
0056 #include "G4eLowEnergyLoss.hh"
0057 #include "G4DataVector.hh"
0058 
0059 class G4Track;
0060 class G4Step;
0061 class G4ParticleDefinition;
0062 class G4VParticleChange;
0063 class G4RDVEMDataSet;
0064 class G4RDVEnergySpectrum;
0065 class G4RDVCrossSectionHandler;
0066 class G4RDVBremAngularDistribution;
0067 
0068 class G4LowEnergyBremsstrahlung : public G4eLowEnergyLoss
0069 { 
0070 public:
0071  
0072   G4LowEnergyBremsstrahlung(const G4String& processName = "LowEnBrem");
0073   
0074   
0075   //  G4LowEnergyBremsstrahlung(const G4String& processName = "LowEnBrem",
0076   //                G4RDVBremAngularDistribution* distribution = 0);
0077   
0078   ~G4LowEnergyBremsstrahlung();
0079   
0080   G4bool IsApplicable(const G4ParticleDefinition&);
0081   
0082   void BuildPhysicsTable(const G4ParticleDefinition& particleType);
0083   
0084   G4VParticleChange* PostStepDoIt(const G4Track& track,         
0085                   const G4Step& step);
0086   
0087   void SetCutForLowEnSecPhotons(G4double cut);
0088   
0089   void SetAngularGenerator(G4RDVBremAngularDistribution* distribution);
0090 
0091   void SetAngularGenerator(const G4String& name);
0092   
0093   void PrintInfoDefinition();
0094         
0095 
0096 protected:
0097 
0098   G4double GetMeanFreePath(const G4Track& track,
0099                G4double previousStepSize,
0100                G4ForceCondition* condition );
0101  
0102 private:
0103 
0104   // Hide copy constructor and assignment operator as private 
0105   G4LowEnergyBremsstrahlung(const G4LowEnergyBremsstrahlung& );
0106   G4LowEnergyBremsstrahlung& operator = (const G4LowEnergyBremsstrahlung& right);
0107   
0108   void BuildLossTable(const G4ParticleDefinition& ParticleType);
0109   
0110   G4RDVCrossSectionHandler* crossSectionHandler;
0111   G4RDVEMDataSet* theMeanFreePath;
0112   G4RDVEnergySpectrum* energySpectrum;
0113   G4DataVector  energyBins;
0114   G4RDVBremAngularDistribution* angularDistribution;
0115   G4RDVBremAngularDistribution* TsaiAngularDistribution;
0116   G4String generatorName;
0117 
0118   // Lower limit for generation of gamma in this model
0119   G4DataVector cutForSecondaryPhotons;
0120   G4double cutForPhotons;
0121 };
0122 
0123 
0124 
0125 #endif
0126 
0127 
0128 
0129 
0130 
0131 
0132 
0133 
0134 
0135 
0136