00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef G4PENELOPEBREMSSTRAHLUNGMODEL_HH
00043 #define G4PENELOPEBREMSSTRAHLUNGMODEL_HH 1
00044
00045 #include "globals.hh"
00046 #include "G4VEmModel.hh"
00047 #include "G4DataVector.hh"
00048 #include "G4ParticleChangeForLoss.hh"
00049
00050
00051 class G4PhysicsFreeVector;
00052 class G4PhysicsLogVector;
00053 class G4ParticleDefinition;
00054 class G4DynamicParticle;
00055 class G4MaterialCutsCouple;
00056 class G4Material;
00057 class G4PhysicsTable;
00058 class G4PenelopeOscillatorManager;
00059 class G4PenelopeCrossSection;
00060 class G4PenelopeBremsstrahlungFS;
00061 class G4PenelopeBremsstrahlungAngular;
00062
00063 class G4PenelopeBremsstrahlungModel : public G4VEmModel
00064 {
00065
00066 public:
00067
00068 G4PenelopeBremsstrahlungModel(const G4ParticleDefinition* p=0,
00069 const G4String& processName ="PenBrem");
00070
00071 virtual ~G4PenelopeBremsstrahlungModel();
00072
00073 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&);
00074
00075
00076 virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition* theParticle,
00077 G4double kinEnergy,
00078 G4double Z,
00079 G4double A=0,
00080 G4double cut=0,
00081 G4double emax=DBL_MAX);
00082
00083
00084 virtual G4double CrossSectionPerVolume(const G4Material* material,
00085 const G4ParticleDefinition* theParticle,
00086 G4double kineticEnergy,
00087 G4double cutEnergy,
00088 G4double maxEnergy = DBL_MAX);
00089
00090
00091 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
00092 const G4MaterialCutsCouple*,
00093 const G4DynamicParticle*,
00094 G4double tmin,
00095 G4double maxEnergy);
00096
00097 virtual G4double ComputeDEDXPerVolume(const G4Material*,
00098 const G4ParticleDefinition*,
00099 G4double kineticEnergy,
00100 G4double cutEnergy);
00101
00102
00103 virtual G4double MinEnergyCut(const G4ParticleDefinition*,
00104 const G4MaterialCutsCouple*);
00105
00106 void SetVerbosityLevel(G4int lev){verboseLevel = lev;};
00107 G4int GetVerbosityLevel(){return verboseLevel;};
00108
00109 protected:
00110 G4ParticleChangeForLoss* fParticleChange;
00111
00112 private:
00113 void ClearTables();
00114
00115 G4PenelopeBremsstrahlungModel & operator=(const G4PenelopeBremsstrahlungModel &right);
00116 G4PenelopeBremsstrahlungModel(const G4PenelopeBremsstrahlungModel&);
00117
00118 G4PenelopeCrossSection* GetCrossSectionTableForCouple(const G4ParticleDefinition*,
00119 const G4Material*,G4double cut);
00120
00121
00122 G4double fIntrinsicLowEnergyLimit;
00123 G4double fIntrinsicHighEnergyLimit;
00124
00125 G4int verboseLevel;
00126
00127 G4bool isInitialised;
00128
00129 G4PenelopeOscillatorManager* oscManager;
00130
00131
00132
00133 void BuildXSTable(const G4Material*,G4double cut);
00134
00135 G4PhysicsLogVector* energyGrid;
00136 size_t nBins;
00137
00138 std::map< std::pair<const G4Material*,G4double>, G4PenelopeCrossSection*> *XSTableElectron;
00139 std::map< std::pair<const G4Material*,G4double>, G4PenelopeCrossSection*> *XSTablePositron;
00140 G4double GetPositronXSCorrection(const G4Material*,G4double energy);
00141
00142
00143 G4PenelopeBremsstrahlungFS* fPenelopeFSHelper;
00144 G4PenelopeBremsstrahlungAngular* fPenelopeAngular;
00145
00146 };
00147
00148 #endif
00149