source: trunk/source/processes/electromagnetic/lowenergy/include/G4DNASancheExcitationModel.hh @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 4.0 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26// $Id: G4DNASancheExcitationModel.hh,v 1.3 2010/11/11 23:43:35 sincerti Exp $
27// GEANT4 tag $Name: geant4-09-04-ref-00 $
28//
29
30//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31
32// Created by Z. Francis
33
34#ifndef G4DNASancheExcitationModel_h
35#define G4DNASancheExcitationModel_h 1
36
37#include "G4VEmModel.hh"
38#include "G4ParticleChangeForGamma.hh"
39#include <deque>
40#include "G4Electron.hh"
41
42class G4DNASancheExcitationModel : public G4VEmModel
43{
44
45public:
46
47  G4DNASancheExcitationModel(const G4ParticleDefinition* p = 0, 
48                          const G4String& nam = "DNASancheExcitationModel");
49
50  virtual ~G4DNASancheExcitationModel();
51
52  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
53
54  virtual G4double CrossSectionPerVolume(const G4Material* material,
55                                           const G4ParticleDefinition* p,
56                                           G4double ekin,
57                                           G4double emin,
58                                           G4double emax);
59
60  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
61                                 const G4MaterialCutsCouple*,
62                                 const G4DynamicParticle*,
63                                 G4double tmin,
64                                 G4double maxEnergy);
65
66  // Cross section
67
68  G4double PartialCrossSection(G4double energy,G4int level);
69
70  inline void ExtendLowEnergyLimit (G4double /*threshold*/);             
71
72protected:
73
74  G4ParticleChangeForGamma* fParticleChangeForGamma;
75
76private:
77
78  G4double killBelowEnergy; 
79  G4double lowEnergyLimit; 
80  G4double highEnergyLimit; 
81  G4bool isInitialised;
82  G4int verboseLevel;
83 
84  // Cross section
85
86  G4int RandomSelect(G4double energy);
87  G4int nLevels;
88  G4double VibrationEnergy(G4int level);
89  G4double Sum(G4double k);
90  G4double LinInterpolate(G4double e1, 
91                                                       G4double e2, 
92                                                       G4double e, 
93                                                       G4double xs1, 
94                                                       G4double xs2);
95
96  //
97  typedef std::map<double, std::map<double, double> > TriDimensionMap;
98  TriDimensionMap map1;
99  std::vector<double> tdummyVec;
100
101  //
102  G4DNASancheExcitationModel & operator=(const  G4DNASancheExcitationModel &right);
103  G4DNASancheExcitationModel(const  G4DNASancheExcitationModel&);
104
105};
106
107inline void G4DNASancheExcitationModel::ExtendLowEnergyLimit (G4double threshold) 
108{ 
109    lowEnergyLimit = threshold;
110    if (lowEnergyLimit < 2*eV)
111     G4Exception ("*** WARNING : the G4DNASancheExcitationModel class is not validated below 2 eV !","",JustWarning,"") ;   
112}               
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
115
116#endif
Note: See TracBrowser for help on using the repository browser.