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 #include <complex>
00031
00032 #include "G4GammaXTRadiator.hh"
00033 #include "Randomize.hh"
00034
00035 #include "G4Gamma.hh"
00036
00038
00039
00040
00041 G4GammaXTRadiator::G4GammaXTRadiator(G4LogicalVolume* anEnvelope,
00042 G4double alphaPlate,
00043 G4double alphaGas,
00044 G4Material* foilMat,G4Material* gasMat,
00045 G4double a, G4double b, G4int n,
00046 const G4String& processName) :
00047 G4VXTRenergyLoss(anEnvelope,foilMat,gasMat,a,b,n,processName)
00048 {
00049 G4cout<<"Gammma distributed X-ray TR radiator model is called"<<G4endl ;
00050
00051
00052
00053
00054 fAlphaPlate = alphaPlate ;
00055 fAlphaGas = alphaGas ;
00056 G4cout<<"fAlphaPlate = "<<fAlphaPlate<<" ; fAlphaGas = "<<fAlphaGas<<G4endl ;
00057
00058
00059 }
00060
00062
00063 G4GammaXTRadiator::~G4GammaXTRadiator()
00064 {
00065 ;
00066 }
00067
00068
00069
00071
00072
00073
00074
00075
00076
00077
00078 G4double
00079 G4GammaXTRadiator::GetStackFactor( G4double energy,
00080 G4double gamma, G4double varAngle )
00081 {
00082 G4double result, Za, Zb, Ma, Mb ;
00083
00084 Za = GetPlateFormationZone(energy,gamma,varAngle) ;
00085 Zb = GetGasFormationZone(energy,gamma,varAngle) ;
00086
00087 Ma = GetPlateLinearPhotoAbs(energy) ;
00088 Mb = GetGasLinearPhotoAbs(energy) ;
00089
00090
00091 G4complex Ca(1.0+0.5*fPlateThick*Ma/fAlphaPlate,fPlateThick/Za/fAlphaPlate) ;
00092 G4complex Cb(1.0+0.5*fGasThick*Mb/fAlphaGas,fGasThick/Zb/fAlphaGas) ;
00093
00094 G4complex Ha = std::pow(Ca,-fAlphaPlate) ;
00095 G4complex Hb = std::pow(Cb,-fAlphaGas) ;
00096 G4complex H = Ha*Hb ;
00097
00098 G4complex F1 = (1.0 - Ha)*(1.0 - Hb )/(1.0 - H)
00099 * G4double(fPlateNumber) ;
00100
00101 G4complex F2 = (1.0-Ha)*(1.0-Ha)*Hb/(1.0-H)/(1.0-H)
00102 * (1.0 - std::pow(H,fPlateNumber)) ;
00103
00104 G4complex R = (F1 + F2)*OneInterfaceXTRdEdx(energy,gamma,varAngle) ;
00105
00106 result = 2.0*std::real(R) ;
00107
00108 return result ;
00109 }
00110
00111
00112
00113
00115
00116
00117
00118
00119
00120
00121
00122