| 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 | //
|
|---|
| 27 | // $Id: G4PenelopeRayleigh.hh,v 1.5 2006/06/29 19:36:37 gunter Exp $
|
|---|
| 28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $
|
|---|
| 29 | //
|
|---|
| 30 | // Author: Luciano Pandola
|
|---|
| 31 | //
|
|---|
| 32 | // History:
|
|---|
| 33 | // -----------
|
|---|
| 34 | // 01 Dec 2002 L.Pandola 1st implementation
|
|---|
| 35 | // 14 Feb 2003 MG Pia Removed data member material
|
|---|
| 36 | // 18 Mar 2004 M.Mendenhall Introduced SamplingTable
|
|---|
| 37 | //
|
|---|
| 38 | // -------------------------------------------------------------------
|
|---|
| 39 | // Class description:
|
|---|
| 40 | // Low Energy Electromagnetic process, Rayleigh effect
|
|---|
| 41 | // Penelope model
|
|---|
| 42 | // -------------------------------------------------------------------
|
|---|
| 43 |
|
|---|
| 44 | #ifndef G4PENELOPERAYLEIGH_HH
|
|---|
| 45 | #define G4PENELOPERAYLEIGH_HH 1
|
|---|
| 46 |
|
|---|
| 47 | #include "globals.hh"
|
|---|
| 48 | #include "G4VDiscreteProcess.hh"
|
|---|
| 49 | #include "G4PenelopeIntegrator.hh"
|
|---|
| 50 | class G4Track;
|
|---|
| 51 | class G4Step;
|
|---|
| 52 | class G4ParticleDefinition;
|
|---|
| 53 | class G4VParticleChange;
|
|---|
| 54 | class G4VEMDataSet;
|
|---|
| 55 | class G4Material;
|
|---|
| 56 | class G4DataVector;
|
|---|
| 57 |
|
|---|
| 58 | class G4PenelopeRayleigh : public G4VDiscreteProcess {
|
|---|
| 59 |
|
|---|
| 60 | public:
|
|---|
| 61 |
|
|---|
| 62 | typedef std::map<const G4Material *,std::pair<G4DataVector *, G4DataVector *> >
|
|---|
| 63 | SamplingTablePair;
|
|---|
| 64 |
|
|---|
| 65 | G4PenelopeRayleigh(const G4String& processName ="PenRayleigh");
|
|---|
| 66 |
|
|---|
| 67 | ~G4PenelopeRayleigh();
|
|---|
| 68 |
|
|---|
| 69 | G4bool IsApplicable(const G4ParticleDefinition&);
|
|---|
| 70 |
|
|---|
| 71 | void BuildPhysicsTable(const G4ParticleDefinition& photon);
|
|---|
| 72 |
|
|---|
| 73 | G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep);
|
|---|
| 74 |
|
|---|
| 75 | G4double MolecularFormFactor(G4double x);
|
|---|
| 76 | G4double DifferentialCrossSection (G4double e);
|
|---|
| 77 |
|
|---|
| 78 | // For testing purpose only
|
|---|
| 79 | G4double DumpMeanFreePath(const G4Track& aTrack,
|
|---|
| 80 | G4double previousStepSize,
|
|---|
| 81 | G4ForceCondition* condition)
|
|---|
| 82 | { return GetMeanFreePath(aTrack, previousStepSize, condition); }
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 | protected:
|
|---|
| 87 |
|
|---|
| 88 | G4double GetMeanFreePath(const G4Track& aTrack,
|
|---|
| 89 | G4double previousStepSize,
|
|---|
| 90 | G4ForceCondition* condition);
|
|---|
| 91 |
|
|---|
| 92 | private:
|
|---|
| 93 |
|
|---|
| 94 | // Hide copy constructor and assignment operator as private
|
|---|
| 95 | G4PenelopeRayleigh& operator=(const G4PenelopeRayleigh &right);
|
|---|
| 96 | G4PenelopeRayleigh(const G4PenelopeRayleigh& );
|
|---|
| 97 |
|
|---|
| 98 | G4double lowEnergyLimit; // low energy limit applied to the process
|
|---|
| 99 | G4double highEnergyLimit; // high energy limit applied to the process
|
|---|
| 100 |
|
|---|
| 101 | //void InizialiseSampling(const G4Material* material);
|
|---|
| 102 | void InizialiseSampling();
|
|---|
| 103 |
|
|---|
| 104 | G4DataVector* samplingFunction_x;
|
|---|
| 105 | G4DataVector* samplingFunction_y;
|
|---|
| 106 |
|
|---|
| 107 | SamplingTablePair SamplingTables;
|
|---|
| 108 |
|
|---|
| 109 | G4double samplingConstant;
|
|---|
| 110 | G4double facte; //cross section factor
|
|---|
| 111 |
|
|---|
| 112 | G4VEMDataSet* meanFreePathTable;
|
|---|
| 113 |
|
|---|
| 114 | const G4Material* material;
|
|---|
| 115 | const G4int nBins;
|
|---|
| 116 | const G4double intrinsicLowEnergyLimit; // intrinsic validity range
|
|---|
| 117 | const G4double intrinsicHighEnergyLimit;
|
|---|
| 118 | };
|
|---|
| 119 |
|
|---|
| 120 | #endif
|
|---|
| 121 |
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|