source: trunk/source/processes/electromagnetic/lowenergy/include/G4PenelopeRayleighModel.hh @ 1315

Last change on this file since 1315 was 1315, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 5.1 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: G4PenelopeRayleighModel.hh,v 1.3 2010/04/15 10:02:25 pandola Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
28//
29// Author: Luciano Pandola
30//
31// History:
32// -----------
33// 13 Oct 2008   L. Pandola   1st implementation. Migration from EM process
34//                            to EM model
35// 18 Dec 2009   L. Pandola   Added a dummy ComputeCrossSectioPerAtom() method issueing a
36//                            warning if users try to access atomic cross sections via
37//                            G4EmCalculator
38//
39// -------------------------------------------------------------------
40//
41// Class description:
42// Low Energy Electromagnetic Physics, Rayleigh Scattering
43// with Penelope v2001 Model
44// -------------------------------------------------------------------
45
46#ifndef G4PENELOPERAYLEIGHMODEL_HH
47#define G4PENELOPERAYLEIGHMODEL_HH 1
48
49#include "globals.hh"
50#include "G4VEmModel.hh"
51#include "G4DataVector.hh"
52#include "G4ParticleChangeForGamma.hh"
53
54class G4ParticleDefinition;
55class G4DynamicParticle;
56class G4MaterialCutsCouple;
57class G4Material;
58
59class G4PenelopeRayleighModel : public G4VEmModel
60{
61
62public: 
63  G4PenelopeRayleighModel(const G4ParticleDefinition* p=0,
64                          const G4String& processName ="PenRayleigh");
65 
66  virtual ~G4PenelopeRayleighModel();
67 
68  virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
69 
70  virtual G4double CrossSectionPerVolume(const G4Material*,
71                                         const G4ParticleDefinition*,
72                                         G4double kineticEnergy,
73                                         G4double cutEnergy = 0.0,
74                                         G4double maxEnergy = DBL_MAX);
75 
76  //*This is a dummy method. Never inkoved by the tracking, it just issues
77  //*a warning if one tries to get Cross Sections per Atom via the
78  //*G4EmCalculator.
79  virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,
80                                              G4double,
81                                              G4double,
82                                              G4double,
83                                              G4double,
84                                              G4double);
85
86  virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
87                                 const G4MaterialCutsCouple*,
88                                 const G4DynamicParticle*,
89                                 G4double tmin,
90                                 G4double maxEnergy);
91   
92  void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
93  G4int GetVerbosityLevel(){return verboseLevel;};
94 
95protected:
96  G4ParticleChangeForGamma* fParticleChange;
97 
98private:
99  G4PenelopeRayleighModel & operator=(const G4PenelopeRayleighModel &right);
100  G4PenelopeRayleighModel(const G4PenelopeRayleighModel&);
101 
102  //Method to initialize sampling
103  void InitialiseSampling();
104  std::map <const G4Material*,G4DataVector*> SamplingTable;
105  G4DataVector* samplingFunction_x;
106  G4DataVector* samplingFunction_xNoLog;
107
108  //Parameters for building the sampling tables
109  G4int nPoints; 
110  G4double Xhigh;
111  G4double Xlow;
112
113  void PrepareConstants();
114 
115  //Parameters that must be in common between methods
116  const G4Material* theMaterial;
117 
118  //Cross section calculation
119  G4double MolecularFormFactor(G4double x);
120  G4double DifferentialCrossSection(G4double cosTheta);
121
122  // Energy dependent factor in the differential cross section
123  G4double factorE;
124 
125  //Intrinsic energy limits of the model: cannot be extended by the parent process
126  G4double fIntrinsicLowEnergyLimit;
127  G4double fIntrinsicHighEnergyLimit;
128 
129  G4int verboseLevel;
130  G4bool isInitialised;
131};
132
133
134#endif
135
Note: See TracBrowser for help on using the repository browser.