G4PenelopeGammaConversionModel.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 // 13 Jan 2010   L. Pandola  First implementation
00033 // 24 May 2011   L. Pandola  Renamed (make v2008 as default Penelope)
00034 //
00035 // -------------------------------------------------------------------
00036 //
00037 // Class description:
00038 // Low Energy Electromagnetic Physics, Gamma Conversion 
00039 // with Penelope Model, version 2008
00040 // -------------------------------------------------------------------
00041 
00042 #ifndef G4PENELOPEGAMMACONVERSIONMODEL_HH
00043 #define G4PENELOPEGAMMACONVERSIONMODEL_HH 1
00044 
00045 #include "globals.hh"
00046 #include "G4VEmModel.hh"
00047 #include "G4DataVector.hh"
00048 #include "G4ParticleChangeForGamma.hh"
00049 
00050 class G4ParticleDefinition;
00051 class G4DynamicParticle;
00052 class G4MaterialCutsCouple;
00053 class G4Material;
00054 class G4PhysicsFreeVector;
00055 
00056 class G4PenelopeGammaConversionModel : public G4VEmModel 
00057 {
00058 
00059 public:
00060   
00061   G4PenelopeGammaConversionModel(const G4ParticleDefinition* p=0,
00062                                  const G4String& processName ="PenConversion");
00063   
00064   virtual ~G4PenelopeGammaConversionModel();
00065 
00066   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00067 
00068   virtual G4double ComputeCrossSectionPerAtom(
00069                                               const G4ParticleDefinition*,
00070                                               G4double kinEnergy,
00071                                               G4double Z,
00072                                               G4double A=0,
00073                                               G4double cut=0,
00074                                               G4double emax=DBL_MAX);
00075 
00076   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00077                                  const G4MaterialCutsCouple*,
00078                                  const G4DynamicParticle*,
00079                                  G4double tmin,
00080                                  G4double maxEnergy);
00081 
00082   void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
00083   G4int GetVerbosityLevel(){return verboseLevel;};
00084 
00085 protected:
00086   G4ParticleChangeForGamma* fParticleChange;
00087 
00088 private:
00089   G4PenelopeGammaConversionModel & operator=(const 
00090                                                G4PenelopeGammaConversionModel &right);
00091   G4PenelopeGammaConversionModel(const G4PenelopeGammaConversionModel&);
00092 
00093 
00094   //Intrinsic energy limits of the model: cannot be extended by the parent process
00095   G4double fIntrinsicLowEnergyLimit;
00096   G4double fIntrinsicHighEnergyLimit;
00097 
00098   //Use a quicker sampling algorithm if E < smallEnergy
00099   G4double fSmallEnergy; 
00100 
00101   std::map<G4int,G4PhysicsFreeVector*> *logAtomicCrossSection;
00102   void ReadDataFile(const G4int Z);
00103 
00104   void InitializeScreeningRadii();
00105   G4double fAtomicScreeningRadius[99];
00106 
00107   void InitializeScreeningFunctions(const G4Material*);
00108   //Effective (scalar) properties attached to materials:
00109   // effective charge
00110   std::map<const G4Material*,G4double> *fEffectiveCharge;
00111   // 2/Rs (Rs = screening radius), BCB array in Penelope
00112   std::map<const G4Material*,G4double> *fMaterialInvScreeningRadius;
00113   // Parameters of screening functions
00114   std::map<const G4Material*,std::pair<G4double,G4double> > *fScreeningFunction;
00115 
00116   std::pair<G4double,G4double> GetScreeningFunctions(G4double); 
00117 
00118 
00119   G4int verboseLevel;
00120   G4bool isInitialised;
00121 };
00122 
00123 #endif
00124 

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