G4PenelopeBremsstrahlungModel.hh

Go to the documentation of this file.
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 // Author: Luciano Pandola
00029 //
00030 // History:
00031 // -----------
00032 // 23 Aug 2010   L. Pandola   1st implementation. 
00033 // 24 May 2011   L. Pandola   Renamed (make v2008 as default Penelope)
00034 //
00035 // -------------------------------------------------------------------
00036 //
00037 // Class description:
00038 // Low Energy Electromagnetic Physics, e+ and e- bremsstrahlung
00039 // with Penelope Model, version 2008
00040 // -------------------------------------------------------------------
00041 
00042 #ifndef G4PENELOPEBREMSSTRAHLUNGMODEL_HH
00043 #define G4PENELOPEBREMSSTRAHLUNGMODEL_HH 1
00044 
00045 #include "globals.hh"
00046 #include "G4VEmModel.hh"
00047 #include "G4DataVector.hh"
00048 #include "G4ParticleChangeForLoss.hh"
00049 
00050 
00051 class G4PhysicsFreeVector;
00052 class G4PhysicsLogVector;
00053 class G4ParticleDefinition;
00054 class G4DynamicParticle;
00055 class G4MaterialCutsCouple;
00056 class G4Material;
00057 class G4PhysicsTable;
00058 class G4PenelopeOscillatorManager;
00059 class G4PenelopeCrossSection;
00060 class G4PenelopeBremsstrahlungFS;
00061 class G4PenelopeBremsstrahlungAngular;
00062 
00063 class G4PenelopeBremsstrahlungModel : public G4VEmModel 
00064 {
00065 
00066 public:
00067   
00068   G4PenelopeBremsstrahlungModel(const G4ParticleDefinition* p=0,
00069                          const G4String& processName ="PenBrem");
00070   
00071   virtual ~G4PenelopeBremsstrahlungModel();
00072 
00073   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00074   
00075   //DUMMY METHOD
00076   virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition* theParticle,
00077                                               G4double kinEnergy,
00078                                               G4double Z,
00079                                               G4double A=0,
00080                                               G4double cut=0,
00081                                               G4double emax=DBL_MAX);
00082   
00083 
00084   virtual G4double CrossSectionPerVolume(const G4Material* material,
00085                                          const G4ParticleDefinition* theParticle,
00086                                          G4double kineticEnergy,
00087                                          G4double cutEnergy,
00088                                          G4double maxEnergy = DBL_MAX);
00089  
00090  
00091   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00092                                  const G4MaterialCutsCouple*,
00093                                  const G4DynamicParticle*,
00094                                  G4double tmin,
00095                                  G4double maxEnergy);
00096                                    
00097   virtual G4double ComputeDEDXPerVolume(const G4Material*,
00098                                const G4ParticleDefinition*,
00099                                G4double kineticEnergy,
00100                                G4double cutEnergy);
00101 
00102   // Min cut in kinetic energy allowed by the model
00103   virtual G4double MinEnergyCut(const G4ParticleDefinition*,
00104                                 const G4MaterialCutsCouple*);           
00105 
00106   void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
00107   G4int GetVerbosityLevel(){return verboseLevel;};
00108 
00109 protected:
00110   G4ParticleChangeForLoss* fParticleChange;
00111 
00112 private:
00113   void ClearTables();
00114 
00115   G4PenelopeBremsstrahlungModel & operator=(const G4PenelopeBremsstrahlungModel &right);
00116   G4PenelopeBremsstrahlungModel(const G4PenelopeBremsstrahlungModel&);
00117 
00118   G4PenelopeCrossSection* GetCrossSectionTableForCouple(const G4ParticleDefinition*,
00119                                                         const G4Material*,G4double cut);
00120  
00121   //Intrinsic energy limits of the model: cannot be extended by the parent process
00122   G4double fIntrinsicLowEnergyLimit;
00123   G4double fIntrinsicHighEnergyLimit;
00124 
00125   G4int verboseLevel;
00126 
00127   G4bool isInitialised;
00128  
00129   G4PenelopeOscillatorManager* oscManager;
00130 
00131   //
00132   //Members to handle and store cross section tables
00133   void BuildXSTable(const G4Material*,G4double cut);
00134   //This is the main energy grid
00135   G4PhysicsLogVector* energyGrid;
00136   size_t nBins;
00137   //G4PenelopeCrossSection takes care of the logs
00138   std::map< std::pair<const G4Material*,G4double>, G4PenelopeCrossSection*> *XSTableElectron;
00139   std::map< std::pair<const G4Material*,G4double>, G4PenelopeCrossSection*> *XSTablePositron;
00140   G4double GetPositronXSCorrection(const G4Material*,G4double energy);
00141 
00142   //Helpers
00143   G4PenelopeBremsstrahlungFS* fPenelopeFSHelper;
00144   G4PenelopeBremsstrahlungAngular* fPenelopeAngular;
00145 
00146 };
00147 
00148 #endif
00149 

Generated on Mon May 27 17:49:17 2013 for Geant4 by  doxygen 1.4.7