G4PenelopeComptonModel.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 // 15 Feb 2010   L. Pandola   1st implementation. 
00033 // 18 Mar 2010   L. Pandola   Removed GetAtomsPerMolecule(), now demanded 
00034 //                            to G4PenelopeOscillatorManager
00035 // 24 May 2011   L. Pandola   Renamed (make v2008 as default Penelope)
00036 // 10 Jun 2011   L. Pandola   Migrated to the new AtomDeexcitation interface
00037 //
00038 // -------------------------------------------------------------------
00039 //*
00040 // Class description:
00041 // Low Energy Electromagnetic Physics, Compton Scattering
00042 // with Penelope Model, version 2008
00043 // -------------------------------------------------------------------
00044 
00045 #ifndef G4PENELOPECOMPTONMODEL_HH
00046 #define G4PENELOPECOMPTONMODEL_HH 1
00047 
00048 #include "globals.hh"
00049 #include "G4VEmModel.hh"
00050 #include "G4DataVector.hh"
00051 #include "G4ParticleChangeForGamma.hh"
00052 #include "G4AtomicTransitionManager.hh"
00053 #include "G4VAtomDeexcitation.hh"
00054 
00055 class G4ParticleDefinition;
00056 class G4DynamicParticle;
00057 class G4MaterialCutsCouple;
00058 class G4Material;
00059 class G4PenelopeOscillatorManager;
00060 class G4PenelopeOscillator;
00061 
00062 class G4PenelopeComptonModel : public G4VEmModel 
00063 {
00064 
00065 public:
00066   
00067   G4PenelopeComptonModel(const G4ParticleDefinition* p=0,
00068                          const G4String& processName ="PenCompton");
00069   
00070   virtual ~G4PenelopeComptonModel();
00071 
00072   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00073 
00074   virtual G4double CrossSectionPerVolume(const G4Material*,
00075                                          const G4ParticleDefinition*,
00076                                          G4double kineticEnergy,
00077                                          G4double cutEnergy = 0.0,
00078                                          G4double maxEnergy = DBL_MAX);
00079   
00080   //This is a dummy method. Never inkoved by the tracking, it just issues 
00081   //a warning if one tries to get Cross Sections per Atom via the 
00082   //G4EmCalculator.
00083   virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
00084                                               G4double,
00085                                               G4double,
00086                                               G4double,
00087                                               G4double,
00088                                               G4double);
00089 
00090   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00091                                  const G4MaterialCutsCouple*,
00092                                  const G4DynamicParticle*,
00093                                  G4double tmin,
00094                                  G4double maxEnergy);
00095 
00096   void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
00097   G4int GetVerbosityLevel(){return verboseLevel;};
00098 
00099 
00100 protected:
00101   G4ParticleChangeForGamma* fParticleChange;
00102 
00103 private:
00104   //Differential cross section which is numerically integrated
00105   G4double DifferentialCrossSection (G4double cdt,G4double energy,
00106                                      G4PenelopeOscillator* osc);
00107 
00108   G4double OscillatorTotalCrossSection(G4double energy,
00109                                        G4PenelopeOscillator* osc);
00110 
00111   G4double KleinNishinaCrossSection(G4double energy,const G4Material*);
00112 
00113   G4PenelopeComptonModel & operator=(const G4PenelopeComptonModel &right);
00114   G4PenelopeComptonModel(const G4PenelopeComptonModel&);
00115 
00116   //Intrinsic energy limits of the model: 
00117   //cannot be extended by the parent process
00118   G4double fIntrinsicLowEnergyLimit;
00119   G4double fIntrinsicHighEnergyLimit;
00120 
00121   G4int verboseLevel;
00122 
00123   G4bool isInitialised;
00124 
00125   G4VAtomDeexcitation*             fAtomDeexcitation;
00126   const G4AtomicTransitionManager* fTransitionManager;
00127   
00128   G4PenelopeOscillatorManager* oscManager;
00129 
00130 
00131 };
00132 
00133 #endif
00134 

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