G4DNASancheExcitationModel.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 // GEANT4 tag $Name:  $
00028 //
00029 
00030 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00031 
00032 // Created by Z. Francis
00033 
00034 #ifndef G4DNASancheExcitationModel_h
00035 #define G4DNASancheExcitationModel_h 1
00036 
00037 #include <deque>
00038 #include <CLHEP/Units/SystemOfUnits.h>
00039 
00040 #include "G4VEmModel.hh"
00041 #include "G4ParticleChangeForGamma.hh"
00042 #include "G4Electron.hh"
00043 #include "G4NistManager.hh"
00044 
00045 class G4DNASancheExcitationModel : public G4VEmModel
00046 {
00047 
00048 public:
00049 
00050   G4DNASancheExcitationModel(const G4ParticleDefinition* p = 0, 
00051                           const G4String& nam = "DNASancheExcitationModel");
00052 
00053   virtual ~G4DNASancheExcitationModel();
00054 
00055   virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00056 
00057   virtual G4double CrossSectionPerVolume(const G4Material* material,
00058                                            const G4ParticleDefinition* p,
00059                                            G4double ekin,
00060                                            G4double emin,
00061                                            G4double emax);
00062 
00063   virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00064                                  const G4MaterialCutsCouple*,
00065                                  const G4DynamicParticle*,
00066                                  G4double tmin,
00067                                  G4double maxEnergy);
00068 
00069   // Cross section
00070 
00071   G4double PartialCrossSection(G4double energy,G4int level);
00072 
00073   inline void ExtendLowEnergyLimit (G4double /*threshold*/);            
00074 
00075   inline void SetVerboseLevel(int verbose){verboseLevel = verbose;} 
00076 
00077 protected:
00078 
00079   G4ParticleChangeForGamma* fParticleChangeForGamma;
00080 
00081 private:
00082   // Water density table
00083   const std::vector<G4double>* fpWaterDensity;
00084 
00085   G4double lowEnergyLimit;  
00086   G4double highEnergyLimit; 
00087   G4bool isInitialised;
00088   G4int verboseLevel;
00089   
00090   // Cross section
00091 
00092   G4int RandomSelect(G4double energy);
00093   G4int nLevels;
00094   G4double VibrationEnergy(G4int level);
00095   G4double Sum(G4double k);
00096   G4double LinInterpolate(G4double e1, 
00097                                                        G4double e2, 
00098                                                        G4double e, 
00099                                                        G4double xs1, 
00100                                                        G4double xs2);
00101 
00102   //
00103   typedef std::map<double, std::map<double, double> > TriDimensionMap;
00104   TriDimensionMap map1;
00105   std::vector<double> tdummyVec;
00106 
00107   //
00108   G4DNASancheExcitationModel & operator=(const  G4DNASancheExcitationModel &right);
00109   G4DNASancheExcitationModel(const  G4DNASancheExcitationModel&);
00110 
00111 };
00112 
00113 inline void G4DNASancheExcitationModel::ExtendLowEnergyLimit (G4double threshold) 
00114 { 
00115     lowEnergyLimit = threshold;
00116     if (lowEnergyLimit < 2*CLHEP::eV)
00117      G4Exception ("*** WARNING : the G4DNASancheExcitationModel class is not validated below 2 eV !","",JustWarning,"") ;   
00118 }                
00119 
00120 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
00121 
00122 #endif

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