G4PenelopeIonisationModel.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 // 30 Mar 2010   L. Pandola   1st implementation. 
00033 // 25 May 2011   L. Pandola   Renamed (make v2008 as default Penelope)
00034 // 09 Mar 2012   L. Pandola   Moved the management and calculation of 
00035 //                            cross sections to a separate class
00036 //
00037 // -------------------------------------------------------------------
00038 //
00039 // Class description:
00040 // Low Energy Electromagnetic Physics, e+ and e- ionisation
00041 // with Penelope Model, version 2008
00042 // -------------------------------------------------------------------
00043 
00044 #ifndef G4PENELOPEIONISATIONMODEL_HH
00045 #define G4PENELOPEIONISATIONMODEL_HH 1
00046 
00047 #include "globals.hh"
00048 #include "G4VEmModel.hh"
00049 #include "G4DataVector.hh"
00050 #include "G4ParticleChangeForLoss.hh"
00051 #include "G4VAtomDeexcitation.hh"
00052 
00053 class G4PhysicsFreeVector;
00054 class G4PhysicsLogVector;
00055 class G4ParticleDefinition;
00056 class G4DynamicParticle;
00057 class G4MaterialCutsCouple;
00058 class G4Material;
00059 class G4PenelopeOscillatorManager;
00060 class G4PenelopeOscillator;
00061 class G4PenelopeCrossSection;
00062 class G4PenelopeIonisationXSHandler;
00063 
00064 class G4PenelopeIonisationModel : public G4VEmModel 
00065 {
00066 
00067 public:
00068   
00069   G4PenelopeIonisationModel(const G4ParticleDefinition* p=0,
00070                             const G4String& processName ="PenIoni");
00071   
00072   virtual ~G4PenelopeIonisationModel();
00073 
00074   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00075 
00076   //*This is a dummy method. Never inkoved by the tracking, it just issues 
00077   //*a warning if one tries to get Cross Sections per Atom via the 
00078   //*G4EmCalculator.
00079   virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
00080                                               G4double,
00081                                               G4double,
00082                                               G4double,
00083                                               G4double,
00084                                               G4double);
00085 
00086   virtual G4double CrossSectionPerVolume(const G4Material* material,
00087                                          const G4ParticleDefinition* theParticle,
00088                                          G4double kineticEnergy,
00089                                          G4double cutEnergy,
00090                                          G4double maxEnergy = DBL_MAX);
00091                                          
00092   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00093                                  const G4MaterialCutsCouple*,
00094                                  const G4DynamicParticle*,
00095                                  G4double tmin,
00096                                  G4double maxEnergy);
00097                                    
00098   virtual G4double ComputeDEDXPerVolume(const G4Material*,
00099                                const G4ParticleDefinition*,
00100                                G4double kineticEnergy,
00101                                G4double cutEnergy);
00102 
00103   // Min cut in kinetic energy allowed by the model
00104   virtual G4double MinEnergyCut(const G4ParticleDefinition*,
00105                                 const G4MaterialCutsCouple*);           
00106 
00107   void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
00108   G4int GetVerbosityLevel(){return verboseLevel;};
00109 
00110 protected:
00111   G4ParticleChangeForLoss* fParticleChange;
00112 
00113 private:
00114  
00115   G4PenelopeIonisationModel & operator=(const G4PenelopeIonisationModel &right);
00116   G4PenelopeIonisationModel(const G4PenelopeIonisationModel&);
00117 
00118 
00119   void SampleFinalStateElectron(const G4Material*,G4double cutEnergy,G4double kineticEnergy);
00120   void SampleFinalStatePositron(const G4Material*,G4double cutEnergy,G4double kineticEnergy);
00121 
00122   //Intrinsic energy limits of the model: cannot be extended by the parent process
00123   G4double fIntrinsicLowEnergyLimit;
00124   G4double fIntrinsicHighEnergyLimit;
00125 
00126   G4int verboseLevel;
00127 
00128   G4bool isInitialised;
00129   G4VAtomDeexcitation* fAtomDeexcitation;
00130 
00131 
00132   G4double kineticEnergy1;
00133   G4double cosThetaPrimary;
00134   G4double energySecondary;
00135   G4double cosThetaSecondary;
00136   G4int targetOscillator;                                  
00137 
00138   G4PenelopeOscillatorManager* oscManager;
00139   G4PenelopeIonisationXSHandler* theCrossSectionHandler;
00140 
00141   size_t nBins;
00142 
00143 };
00144 
00145 #endif
00146 

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