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

#include <G4StrawTubeXTRadiator.hh>

+ Inheritance diagram for G4StrawTubeXTRadiator:

Public Member Functions

 G4StrawTubeXTRadiator (G4LogicalVolume *anEnvelope, G4Material *, G4Material *, G4double, G4double, G4Material *, G4bool unishut=false, const G4String &processName="StrawTubeXTRadiator")
 
virtual ~G4StrawTubeXTRadiator ()
 
G4double GetMediumFormationZone (G4double, G4double, G4double)
 
void ComputeMediumPhotoAbsCof ()
 
G4double GetMediumLinearPhotoAbs (G4double)
 
G4complex GetMediumComplexFZ (G4double, G4double, G4double)
 
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 &)
 

Protected Attributes

G4int fMatIndex3
 
G4double fSigma3
 
G4SandiaTablefMediumPhotoAbsCof
 
- 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
 

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 ()
 

Detailed Description

Definition at line 52 of file G4StrawTubeXTRadiator.hh.

Constructor & Destructor Documentation

◆ G4StrawTubeXTRadiator()

G4StrawTubeXTRadiator::G4StrawTubeXTRadiator ( G4LogicalVolume anEnvelope,
G4Material foilMat,
G4Material gasMat,
G4double  a,
G4double  b,
G4Material mediumMat,
G4bool  unishut = false,
const G4String processName = "StrawTubeXTRadiator" 
)
explicit

Definition at line 39 of file G4StrawTubeXTRadiator.cc.

43 :
44 G4VXTRenergyLoss(anEnvelope,foilMat,gasMat,a,b,1,processName)
45{
46 if(verboseLevel > 0)
47 G4cout<<"Straw tube X-ray TR radiator EM process is called"<<G4endl;
48
49 if( unishut )
50 {
51 fAlphaPlate = 1./3.;
52 fAlphaGas = 12.4;
53 if(verboseLevel > 0)
54 G4cout<<"straw uniform shooting: "<<"fAlphaPlate = "
55 <<fAlphaPlate<<" ; fAlphaGas = "<<fAlphaGas<<G4endl;
56
57 }
58 else
59 {
60 fAlphaPlate = 0.5;
61 fAlphaGas = 5.;
62 if(verboseLevel > 0)
63 G4cout<<"straw isotropical shooting: "<<"fAlphaPlate = "
64 <<fAlphaPlate<<" ; fAlphaGas = "<<fAlphaGas<<G4endl;
65
66
67 }
68 // index of medium material
69
70 fMatIndex3 = mediumMat->GetIndex();
71 if(verboseLevel > 0)
72 G4cout<<"medium material = "<<mediumMat->GetName()<<G4endl;
73
74 // plasma energy squared for plate material
75
77 if(verboseLevel > 0)
78 G4cout<<"medium plasma energy = "<<std::sqrt(fSigma3)/eV<<" eV"<<G4endl;
79
80 // Compute cofs for preparation of linear photo absorption in external medium
81
83
84 // Build energy and angular integral spectra of X-ray TR photons from
85 // a radiator
86
87 // BuildTable();
88}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
G4double GetElectronDensity() const
Definition: G4Material.hh:215
const G4String & GetName() const
Definition: G4Material.hh:175
size_t GetIndex() const
Definition: G4Material.hh:258
G4int verboseLevel
Definition: G4VProcess.hh:356

◆ ~G4StrawTubeXTRadiator()

G4StrawTubeXTRadiator::~G4StrawTubeXTRadiator ( )
virtual

Definition at line 92 of file G4StrawTubeXTRadiator.cc.

93{
94}

Member Function Documentation

◆ ComputeMediumPhotoAbsCof()

void G4StrawTubeXTRadiator::ComputeMediumPhotoAbsCof ( )

Definition at line 183 of file G4StrawTubeXTRadiator.cc.

184{
185 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
186 const G4Material* mat = (*theMaterialTable)[fMatIndex3];
188}
std::vector< G4Material * > G4MaterialTable
G4SandiaTable * GetSandiaTable() const
Definition: G4Material.hh:227
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:637
G4SandiaTable * fMediumPhotoAbsCof

Referenced by G4StrawTubeXTRadiator().

◆ GetMediumComplexFZ()

G4complex G4StrawTubeXTRadiator::GetMediumComplexFZ ( G4double  omega,
G4double  gamma,
G4double  varAngle 
)

Definition at line 161 of file G4StrawTubeXTRadiator.cc.

164{
165 G4double cof, length,delta, real_v, image_v;
166
167 length = 0.5*GetMediumFormationZone(omega,gamma,varAngle);
168 delta = length*GetMediumLinearPhotoAbs(omega);
169 cof = 1.0/(1.0 + delta*delta);
170
171 real_v = length*cof;
172 image_v = real_v*delta;
173
174 G4complex zone(real_v,image_v);
175 return zone;
176}
double G4double
Definition: G4Types.hh:83
std::complex< G4double > G4complex
Definition: G4Types.hh:88
G4double GetMediumFormationZone(G4double, G4double, G4double)
G4double GetMediumLinearPhotoAbs(G4double)

Referenced by GetStackFactor().

◆ GetMediumFormationZone()

G4double G4StrawTubeXTRadiator::GetMediumFormationZone ( G4double  omega,
G4double  gamma,
G4double  varAngle 
)

Definition at line 147 of file G4StrawTubeXTRadiator.cc.

150{
151 G4double cof, lambda;
152 lambda = 1.0/gamma/gamma + varAngle + fSigma3/omega/omega;
153 cof = 2.0*hbarc/omega/lambda ;
154 return cof ;
155}

Referenced by GetMediumComplexFZ().

◆ GetMediumLinearPhotoAbs()

G4double G4StrawTubeXTRadiator::GetMediumLinearPhotoAbs ( G4double  omega)

Definition at line 195 of file G4StrawTubeXTRadiator.cc.

196{
197 G4double omega2, omega3, omega4;
198
199 omega2 = omega*omega;
200 omega3 = omega2*omega;
201 omega4 = omega2*omega2;
202
203 const G4double* SandiaCof = fMediumPhotoAbsCof->GetSandiaCofForMaterial(omega);
204
205 G4double cross = SandiaCof[0]/omega + SandiaCof[1]/omega2 +
206 SandiaCof[2]/omega3 + SandiaCof[3]/omega4;
207 return cross;
208}
G4double GetSandiaCofForMaterial(G4int, G4int) const

Referenced by GetMediumComplexFZ().

◆ GetStackFactor()

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

Reimplemented from G4VXTRenergyLoss.

Definition at line 105 of file G4StrawTubeXTRadiator.cc.

107{
108
109
110 G4double result, L2, L3, M2, M3;
111
112 L2 = GetPlateFormationZone(energy,gamma,varAngle);
113 L3 = GetGasFormationZone(energy,gamma,varAngle);
114
115 M2 = GetPlateLinearPhotoAbs(energy);
116 M3 = GetGasLinearPhotoAbs(energy);
117
120
121 G4complex H2 = std::pow(C2,-fAlphaPlate);
122 G4complex H3 = std::pow(C3,-fAlphaGas);
123 G4complex H = H2*H3;
124
125 G4complex Z1 = GetMediumComplexFZ(energy,gamma,varAngle);
126 G4complex Z2 = GetPlateComplexFZ(energy,gamma,varAngle);
127 G4complex Z3 = GetGasComplexFZ(energy,gamma,varAngle);
128
129
130 G4complex R = ( Z1 - Z2 )*( Z1 - Z2 )*( 1. - H2*H ) +
131 ( Z2 - Z3 )*( Z2 - Z3 )*( 1. - H3 ) +
132 2.*( Z1 - Z2 )*( Z2 - Z3 )*H2*( 1. - H3 ) ;
133
134 result = 2.0*std::real(R)*(varAngle*energy/hbarc/hbarc);
135
136 return result;
137
138}
const double C2
#define C3
G4complex GetMediumComplexFZ(G4double, G4double, G4double)
G4double GetPlateLinearPhotoAbs(G4double)
G4double GetGasFormationZone(G4double, G4double, G4double)
G4complex GetPlateComplexFZ(G4double, G4double, G4double)
G4double GetPlateFormationZone(G4double, G4double, G4double)
G4double GetGasLinearPhotoAbs(G4double)
G4complex GetGasComplexFZ(G4double, G4double, G4double)
G4double energy(const ThreeVector &p, const G4double m)

Member Data Documentation

◆ fMatIndex3

G4int G4StrawTubeXTRadiator::fMatIndex3
protected

Definition at line 74 of file G4StrawTubeXTRadiator.hh.

Referenced by ComputeMediumPhotoAbsCof(), and G4StrawTubeXTRadiator().

◆ fMediumPhotoAbsCof

G4SandiaTable* G4StrawTubeXTRadiator::fMediumPhotoAbsCof
protected

Definition at line 77 of file G4StrawTubeXTRadiator.hh.

Referenced by ComputeMediumPhotoAbsCof(), and GetMediumLinearPhotoAbs().

◆ fSigma3

G4double G4StrawTubeXTRadiator::fSigma3
protected

Definition at line 75 of file G4StrawTubeXTRadiator.hh.

Referenced by G4StrawTubeXTRadiator(), and GetMediumFormationZone().


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