Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TransparentRegXTRadiator Class Reference

#include <G4TransparentRegXTRadiator.hh>

+ Inheritance diagram for G4TransparentRegXTRadiator:

Public Member Functions

 G4TransparentRegXTRadiator (G4LogicalVolume *anEnvelope, G4Material *, G4Material *, G4double, G4double, G4int, const G4String &processName="TransparentRegXTRadiator")
 
 ~G4TransparentRegXTRadiator ()
 
G4double SpectralXTRdEdx (G4double energy) override
 
G4double GetStackFactor (G4double energy, G4double gamma, G4double varAngle) override
 
- Public Member Functions inherited from G4VXTRenergyLoss
 G4VXTRenergyLoss (G4LogicalVolume *anEnvelope, G4Material *, G4Material *, G4double, G4double, G4int, const G4String &processName="XTRenergyLoss", G4ProcessType type=fElectromagnetic)
 
virtual ~G4VXTRenergyLoss ()
 
virtual G4double GetStackFactor (G4double energy, G4double gamma, G4double varAngle)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &) override
 
virtual G4VParticleChangePostStepDoIt (const G4Track &aTrack, const G4Step &aStep) override
 
virtual G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition) override
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &) override
 
void BuildEnergyTable ()
 
void BuildAngleForEnergyBank ()
 
void BuildTable ()
 
void BuildAngleTable ()
 
void BuildGlobalAngleTable ()
 
G4complex OneInterfaceXTRdEdx (G4double energy, G4double gamma, G4double varAngle)
 
G4double SpectralAngleXTRdEdx (G4double varAngle)
 
virtual G4double SpectralXTRdEdx (G4double energy)
 
G4double AngleSpectralXTRdEdx (G4double energy)
 
G4double AngleXTRdEdx (G4double varAngle)
 
G4double OneBoundaryXTRNdensity (G4double energy, G4double gamma, G4double varAngle) const
 
G4double XTRNSpectralAngleDensity (G4double varAngle)
 
G4double XTRNSpectralDensity (G4double energy)
 
G4double XTRNAngleSpectralDensity (G4double energy)
 
G4double XTRNAngleDensity (G4double varAngle)
 
void GetNumberOfPhotons ()
 
G4double GetPlateFormationZone (G4double, G4double, G4double)
 
G4complex GetPlateComplexFZ (G4double, G4double, G4double)
 
void ComputePlatePhotoAbsCof ()
 
G4double GetPlateLinearPhotoAbs (G4double)
 
void GetPlateZmuProduct ()
 
G4double GetPlateZmuProduct (G4double, G4double, G4double)
 
G4double GetGasFormationZone (G4double, G4double, G4double)
 
G4complex GetGasComplexFZ (G4double, G4double, G4double)
 
void ComputeGasPhotoAbsCof ()
 
G4double GetGasLinearPhotoAbs (G4double)
 
void GetGasZmuProduct ()
 
G4double GetGasZmuProduct (G4double, G4double, G4double)
 
G4double GetPlateCompton (G4double)
 
G4double GetGasCompton (G4double)
 
G4double GetComptonPerAtom (G4double, G4double)
 
G4double GetXTRrandomEnergy (G4double scaledTkin, G4int iTkin)
 
G4double GetXTRenergy (G4int iPlace, G4double position, G4int iTransfer)
 
G4double GetRandomAngle (G4double energyXTR, G4int iTkin)
 
G4double GetAngleXTR (G4int iTR, G4double position, G4int iAngle)
 
G4double GetGamma ()
 
G4double GetEnergy ()
 
G4double GetVarAngle ()
 
void SetGamma (G4double gamma)
 
void SetEnergy (G4double energy)
 
void SetVarAngle (G4double varAngle)
 
void SetAngleRadDistr (G4bool pAngleRadDistr)
 
void SetCompton (G4bool pC)
 
G4PhysicsLogVectorGetProtonVector ()
 
G4int GetTotBin ()
 
G4PhysicsFreeVectorGetAngleVector (G4double energy, G4int n)
 
- Public Member Functions inherited from G4VDiscreteProcess
 G4VDiscreteProcess (const G4String &aName, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
G4VDiscreteProcessoperator= (const G4VDiscreteProcess &)=delete
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4VParticleChangePostStepDoIt (const G4Track &, const G4Step &)
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &, G4ForceCondition *)
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &, const G4Step &)
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &, const G4Step &)
 
- Public Member Functions inherited from G4VProcess
 G4VProcess (const G4String &aName="NoName", G4ProcessType aType=fNotDefined)
 
 G4VProcess (const G4VProcess &right)
 
virtual ~G4VProcess ()
 
G4VProcessoperator= (const G4VProcess &)=delete
 
G4bool operator== (const G4VProcess &right) const
 
G4bool operator!= (const G4VProcess &right) const
 
virtual G4VParticleChangePostStepDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4VParticleChangeAlongStepDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4VParticleChangeAtRestDoIt (const G4Track &track, const G4Step &stepData)=0
 
virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)=0
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)=0
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)=0
 
G4double GetCurrentInteractionLength () const
 
void SetPILfactor (G4double value)
 
G4double GetPILfactor () const
 
G4double AlongStepGPIL (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
 
G4double AtRestGPIL (const G4Track &track, G4ForceCondition *condition)
 
G4double PostStepGPIL (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
virtual G4bool IsApplicable (const G4ParticleDefinition &)
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
virtual void PreparePhysicsTable (const G4ParticleDefinition &)
 
virtual G4bool StorePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
virtual G4bool RetrievePhysicsTable (const G4ParticleDefinition *, const G4String &, G4bool)
 
const G4StringGetPhysicsTableFileName (const G4ParticleDefinition *, const G4String &directory, const G4String &tableName, G4bool ascii=false)
 
const G4StringGetProcessName () const
 
G4ProcessType GetProcessType () const
 
void SetProcessType (G4ProcessType)
 
G4int GetProcessSubType () const
 
void SetProcessSubType (G4int)
 
virtual void StartTracking (G4Track *)
 
virtual void EndTracking ()
 
virtual void SetProcessManager (const G4ProcessManager *)
 
virtual const G4ProcessManagerGetProcessManager ()
 
virtual void ResetNumberOfInteractionLengthLeft ()
 
G4double GetNumberOfInteractionLengthLeft () const
 
G4double GetTotalNumberOfInteractionLengthTraversed () const
 
G4bool isAtRestDoItIsEnabled () const
 
G4bool isAlongStepDoItIsEnabled () const
 
G4bool isPostStepDoItIsEnabled () const
 
virtual void DumpInfo () const
 
virtual void ProcessDescription (std::ostream &outfile) const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
virtual void SetMasterProcess (G4VProcess *masterP)
 
const G4VProcessGetMasterProcess () const
 
virtual void BuildWorkerPhysicsTable (const G4ParticleDefinition &part)
 
virtual void PrepareWorkerPhysicsTable (const G4ParticleDefinition &)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VProcess
static const G4StringGetProcessTypeName (G4ProcessType)
 
virtual G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)=0
 
- Protected Member Functions inherited from G4VProcess
void SubtractNumberOfInteractionLengthLeft (G4double prevStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 
- Protected Attributes inherited from G4VXTRenergyLoss
G4ParticleDefinitionfPtrGamma
 
G4doublefGammaCutInKineticEnergy
 
G4double fGammaTkinCut
 
G4LogicalVolumefEnvelope
 
G4PhysicsTablefAngleDistrTable
 
G4PhysicsTablefEnergyDistrTable
 
G4PhysicsLogVectorfProtonEnergyVector
 
G4PhysicsLogVectorfXTREnergyVector
 
G4double fTheMinEnergyTR
 
G4double fTheMaxEnergyTR
 
G4double fMinEnergyTR
 
G4double fMaxEnergyTR
 
G4double fTheMaxAngle
 
G4double fTheMinAngle
 
G4double fMaxThetaTR
 
G4int fBinTR
 
G4double fMinProtonTkin
 
G4double fMaxProtonTkin
 
G4int fTotBin
 
G4double fGamma
 
G4double fEnergy
 
G4double fVarAngle
 
G4double fLambda
 
G4double fPlasmaCof
 
G4double fCofTR
 
G4bool fExitFlux
 
G4bool fAngleRadDistr
 
G4bool fCompton
 
G4double fSigma1
 
G4double fSigma2
 
G4int fMatIndex1
 
G4int fMatIndex2
 
G4int fPlateNumber
 
G4double fTotalDist
 
G4double fPlateThick
 
G4double fGasThick
 
G4double fAlphaPlate
 
G4double fAlphaGas
 
G4SandiaTablefPlatePhotoAbsCof
 
G4SandiaTablefGasPhotoAbsCof
 
G4ParticleChange fParticleChange
 
G4PhysicsTablefAngleForEnergyTable
 
std::vector< G4PhysicsTable * > fAngleBank
 
- Protected Attributes inherited from G4VProcess
const G4ProcessManageraProcessManager = nullptr
 
G4VParticleChangepParticleChange = nullptr
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft = -1.0
 
G4double currentInteractionLength = -1.0
 
G4double theInitialNumberOfInteractionLength = -1.0
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType = fNotDefined
 
G4int theProcessSubType = -1
 
G4double thePILfactor = 1.0
 
G4int verboseLevel = 0
 
G4bool enableAtRestDoIt = true
 
G4bool enableAlongStepDoIt = true
 
G4bool enablePostStepDoIt = true
 

Detailed Description

Definition at line 50 of file G4TransparentRegXTRadiator.hh.

Constructor & Destructor Documentation

◆ G4TransparentRegXTRadiator()

G4TransparentRegXTRadiator::G4TransparentRegXTRadiator ( G4LogicalVolume anEnvelope,
G4Material foilMat,
G4Material gasMat,
G4double  a,
G4double  b,
G4int  n,
const G4String processName = "TransparentRegXTRadiator" 
)
explicit

Definition at line 41 of file G4TransparentRegXTRadiator.cc.

44 :
45 G4VXTRenergyLoss(anEnvelope,foilMat,gasMat,a,b,n,processName)
46{
47 if(verboseLevel > 0)
48 G4cout<<"Regular transparent X-ray TR radiator EM process is called"<<G4endl;
49
50 // Build energy and angular integral spectra of X-ray TR photons from
51 // a radiator
52
53 fAlphaPlate = 10000;
54 fAlphaGas = 1000;
55
56 // BuildTable();
57}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4int verboseLevel
Definition: G4VProcess.hh:356

◆ ~G4TransparentRegXTRadiator()

G4TransparentRegXTRadiator::~G4TransparentRegXTRadiator ( )

Definition at line 61 of file G4TransparentRegXTRadiator.cc.

62{
63 ;
64}

Member Function Documentation

◆ GetStackFactor()

G4double G4TransparentRegXTRadiator::GetStackFactor ( G4double  energy,
G4double  gamma,
G4double  varAngle 
)
overridevirtual

Reimplemented from G4VXTRenergyLoss.

Definition at line 168 of file G4TransparentRegXTRadiator.cc.

170{
171 /*
172 G4double result, Za, Zb, Ma, Mb, sigma;
173
174 Za = GetPlateFormationZone(energy,gamma,varAngle);
175 Zb = GetGasFormationZone(energy,gamma,varAngle);
176 Ma = GetPlateLinearPhotoAbs(energy);
177 Mb = GetGasLinearPhotoAbs(energy);
178 sigma = Ma*fPlateThick + Mb*fGasThick;
179
180 G4complex Ca(1.0+0.5*fPlateThick*Ma/fAlphaPlate,fPlateThick/Za/fAlphaPlate);
181 G4complex Cb(1.0+0.5*fGasThick*Mb/fAlphaGas,fGasThick/Zb/fAlphaGas);
182
183 G4complex Ha = std::pow(Ca,-fAlphaPlate);
184 G4complex Hb = std::pow(Cb,-fAlphaGas);
185 G4complex H = Ha*Hb;
186 G4complex F1 = (1.0 - Ha)*(1.0 - Hb )/(1.0 - H)
187 * G4double(fPlateNumber) ;
188 G4complex F2 = (1.0-Ha)*(1.0-Ha)*Hb/(1.0-H)/(1.0-H)
189 * (1.0 - std::exp(-0.5*fPlateNumber*sigma)) ;
190 // *(1.0 - std::pow(H,fPlateNumber)) ;
191 G4complex R = (F1 + F2)*OneInterfaceXTRdEdx(energy,gamma,varAngle);
192 // G4complex R = F2*OneInterfaceXTRdEdx(energy,gamma,varAngle);
193 result = 2.0*std::real(R);
194 return result;
195 */
196 // numerically unstable result
197
198 G4double result, Qa, Qb, Q, aZa, bZb, aMa, bMb, D, sigma;
199
200 aZa = fPlateThick/GetPlateFormationZone(energy,gamma,varAngle);
201 bZb = fGasThick/GetGasFormationZone(energy,gamma,varAngle);
203 bMb = fGasThick*GetGasLinearPhotoAbs(energy);
204 sigma = aMa*fPlateThick + bMb*fGasThick;
205 Qa = std::exp(-0.5*aMa);
206 Qb = std::exp(-0.5*bMb);
207 Q = Qa*Qb;
208
209 G4complex Ha( Qa*std::cos(aZa), -Qa*std::sin(aZa) );
210 G4complex Hb( Qb*std::cos(bZb), -Qb*std::sin(bZb) );
211 G4complex H = Ha*Hb;
212 G4complex Hs = conj(H);
213 D = 1.0 /( (1 - Q)*(1 - Q) +
214 4*Q*std::sin(0.5*(aZa + bZb))*std::sin(0.5*(aZa + bZb)) );
215 G4complex F1 = (1.0 - Ha)*(1.0 - Hb)*(1.0 - Hs)
217 G4complex F2 = (1.0 - Ha)*(1.0 - Ha)*Hb*(1.0 - Hs)*(1.0 - Hs)
218 // * (1.0 - std::pow(H,fPlateNumber)) * D*D;
219 * (1.0 - std::exp(-0.5*fPlateNumber*sigma)) * D*D;
220 G4complex R = (F1 + F2)*OneInterfaceXTRdEdx(energy,gamma,varAngle);
221 result = 2.0*std::real(R);
222 return result;
223
224}
double D(double temp)
double G4double
Definition: G4Types.hh:83
std::complex< G4double > G4complex
Definition: G4Types.hh:88
G4double GetPlateLinearPhotoAbs(G4double)
G4double GetGasFormationZone(G4double, G4double, G4double)
G4complex OneInterfaceXTRdEdx(G4double energy, G4double gamma, G4double varAngle)
G4double GetPlateFormationZone(G4double, G4double, G4double)
G4double GetGasLinearPhotoAbs(G4double)

◆ SpectralXTRdEdx()

G4double G4TransparentRegXTRadiator::SpectralXTRdEdx ( G4double  energy)
overridevirtual

Reimplemented from G4VXTRenergyLoss.

Definition at line 70 of file G4TransparentRegXTRadiator.cc.

71{
72 G4double result, sum = 0., tmp, cof1, cof2, cofMin, cofPHC, theta2, theta2k /*, aMa, bMb ,sigma*/;
73 G4int k, kMax, kMin;
74
75 //aMa = fPlateThick*GetPlateLinearPhotoAbs(energy);
76 //bMb = fGasThick*GetGasLinearPhotoAbs(energy);
77 //sigma = aMa + bMb;
78
79 cofPHC = 4*pi*hbarc;
80 tmp = (fSigma1 - fSigma2)/cofPHC/energy;
81 cof1 = fPlateThick*tmp;
82 cof2 = fGasThick*tmp;
83
85 cofMin += (fPlateThick*fSigma1 + fGasThick*fSigma2)/energy;
86 cofMin /= cofPHC;
87
88 theta2 = cofPHC/(energy*(fPlateThick + fGasThick));
89
90 // if (fGamma < 1200) kMin = G4int(cofMin); // 1200 ?
91 // else kMin = 1;
92
93
94 kMin = G4int(cofMin);
95 if (cofMin > kMin) kMin++;
96
97 // tmp = (fPlateThick + fGasThick)*energy*fMaxThetaTR;
98 // tmp /= cofPHC;
99 // kMax = G4int(tmp);
100 // if(kMax < 0) kMax = 0;
101 // kMax += kMin;
102
103
104 kMax = kMin + 49; // 19; // kMin + G4int(tmp);
105
106 // tmp /= fGamma;
107 // if( G4int(tmp) < kMin ) kMin = G4int(tmp);
108
109 if(verboseLevel > 2)
110 {
111 G4cout<<cof1<<" "<<cof2<<" "<<cofMin<<G4endl;
112 G4cout<<"kMin = "<<kMin<<"; kMax = "<<kMax<<G4endl;
113 }
114 for( k = kMin; k <= kMax; k++ )
115 {
116 tmp = pi*fPlateThick*(k + cof2)/(fPlateThick + fGasThick);
117 result = (k - cof1)*(k - cof1)*(k + cof2)*(k + cof2);
118 // tmp = std::sin(tmp)*std::sin(tmp)*std::abs(k-cofMin)/result;
119 if( k == kMin && kMin == G4int(cofMin) )
120 {
121 sum += 0.5*std::sin(tmp)*std::sin(tmp)*std::abs(k-cofMin)/result;
122 }
123 else
124 {
125 sum += std::sin(tmp)*std::sin(tmp)*std::abs(k-cofMin)/result;
126 }
127 theta2k = std::sqrt(theta2*std::abs(k-cofMin));
128
129 if(verboseLevel > 2)
130 {
131 // G4cout<<"k = "<<k<<"; sqrt(theta2k) = "<<theta2k<<"; tmp = "<<std::sin(tmp)*std::sin(tmp)*std::abs(k-cofMin)/result
132 // <<"; sum = "<<sum<<G4endl;
133 G4cout<<k<<" "<<theta2k<<" "<<std::sin(tmp)*std::sin(tmp)*std::abs(k-cofMin)/result
134 <<" "<<sum<<G4endl;
135 }
136 }
137 result = 4.*( cof1 + cof2 )*( cof1 + cof2 )*sum/energy;
138 // result *= ( 1 - std::exp(-0.5*fPlateNumber*sigma) )/( 1 - std::exp(-0.5*sigma) );
139 // fPlateNumber;
140 result *= fPlateNumber; // *std::exp(-0.5*fPlateNumber*sigma);
141 // +1-std::exp(-0.5*fPlateNumber*sigma);
142 /*
143 fEnergy = energy;
144 // G4Integrator<G4VXTRenergyLoss,G4double(G4VXTRenergyLoss::*)(G4double)> integral;
145 G4Integrator<G4TransparentRegXTRadiator,G4double(G4VXTRenergyLoss::*)(G4double)> integral;
146
147 tmp = integral.Legendre96(this,&G4VXTRenergyLoss::SpectralAngleXTRdEdx,
148 0.0,0.3*fMaxThetaTR) +
149 integral.Legendre96(this,&G4VXTRenergyLoss::SpectralAngleXTRdEdx,
150 0.3*fMaxThetaTR,0.6*fMaxThetaTR) +
151 integral.Legendre96(this,&G4VXTRenergyLoss::SpectralAngleXTRdEdx,
152 0.6*fMaxThetaTR,fMaxThetaTR) ;
153 result += tmp;
154 */
155 return result;
156}
int G4int
Definition: G4Types.hh:85
G4double energy(const ThreeVector &p, const G4double m)
const G4double pi

The documentation for this class was generated from the following files: