Geant4 9.6.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)
 
- 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)
 
G4bool IsApplicable (const G4ParticleDefinition &)
 
G4VParticleChangePostStepDoIt (const G4Track &aTrack, const G4Step &aStep)
 
G4double GetMeanFreePath (const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
 
void BuildPhysicsTable (const G4ParticleDefinition &)
 
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 &, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
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 ()
 
G4int operator== (const G4VProcess &right) const
 
G4int 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 

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
 
G4VParticleChangepParticleChange
 
G4ParticleChange aParticleChange
 
G4double theNumberOfInteractionLengthLeft
 
G4double currentInteractionLength
 
G4double theInitialNumberOfInteractionLength
 
G4String theProcessName
 
G4String thePhysicsTableFileName
 
G4ProcessType theProcessType
 
G4int theProcessSubType
 
G4double thePILfactor
 
G4bool enableAtRestDoIt
 
G4bool enableAlongStepDoIt
 
G4bool enablePostStepDoIt
 
G4int verboseLevel
 

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 previousStepSize)
 
void ClearNumberOfInteractionLengthLeft ()
 

Detailed Description

Definition at line 53 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" 
)

Definition at line 40 of file G4StrawTubeXTRadiator.cc.

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

◆ ~G4StrawTubeXTRadiator()

G4StrawTubeXTRadiator::~G4StrawTubeXTRadiator ( )
virtual

Definition at line 93 of file G4StrawTubeXTRadiator.cc.

94{
95}

Member Function Documentation

◆ ComputeMediumPhotoAbsCof()

void G4StrawTubeXTRadiator::ComputeMediumPhotoAbsCof ( )

Definition at line 184 of file G4StrawTubeXTRadiator.cc.

185{
186 const G4MaterialTable* theMaterialTable = G4Material::GetMaterialTable();
187 const G4Material* mat = (*theMaterialTable)[fMatIndex3];
189}
std::vector< G4Material * > G4MaterialTable
static const G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:562
G4SandiaTable * GetSandiaTable() const
Definition: G4Material.hh:228
G4SandiaTable * fMediumPhotoAbsCof

Referenced by G4StrawTubeXTRadiator().

◆ GetMediumComplexFZ()

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

Definition at line 162 of file G4StrawTubeXTRadiator.cc.

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

Referenced by GetStackFactor().

◆ GetMediumFormationZone()

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

Definition at line 148 of file G4StrawTubeXTRadiator.cc.

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

Referenced by GetMediumComplexFZ().

◆ GetMediumLinearPhotoAbs()

G4double G4StrawTubeXTRadiator::GetMediumLinearPhotoAbs ( G4double  omega)

Definition at line 196 of file G4StrawTubeXTRadiator.cc.

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

Referenced by GetMediumComplexFZ().

◆ GetStackFactor()

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

Reimplemented from G4VXTRenergyLoss.

Definition at line 106 of file G4StrawTubeXTRadiator.cc.

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

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: