Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4StrawTubeXTRadiator Class Reference

#include <G4StrawTubeXTRadiator.hh>

Inheritance diagram for G4StrawTubeXTRadiator:
Collaboration 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 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 &, G4ProcessType aType=fNotDefined)
 
 G4VDiscreteProcess (G4VDiscreteProcess &)
 
virtual ~G4VDiscreteProcess ()
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 
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
 
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 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
 
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
 
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)
 
- 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 ( G4LogicalVolume anEnvelope,
G4Material foilMat,
G4Material gasMat,
G4double  a,
G4double  b,
G4Material mediumMat,
G4bool  unishut = false,
const G4String processName = "StrawTubeXTRadiator" 
)
explicit

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 
77  fSigma3 = fPlasmaCof*mediumMat->GetElectronDensity();
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 }
G4int verboseLevel
Definition: G4VProcess.hh:368
size_t GetIndex() const
Definition: G4Material.hh:262
const G4String & GetName() const
Definition: G4Material.hh:178
G4GLOB_DLL std::ostream G4cout
G4double GetElectronDensity() const
Definition: G4Material.hh:217
static constexpr double eV
Definition: G4SIunits.hh:215
G4VXTRenergyLoss(G4LogicalVolume *anEnvelope, G4Material *, G4Material *, G4double, G4double, G4int, const G4String &processName="XTRenergyLoss", G4ProcessType type=fElectromagnetic)
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4StrawTubeXTRadiator::~G4StrawTubeXTRadiator ( )
virtual

Definition at line 93 of file G4StrawTubeXTRadiator.cc.

94 {
95 }

Member Function Documentation

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 }
G4SandiaTable * fMediumPhotoAbsCof
static G4MaterialTable * GetMaterialTable()
Definition: G4Material.cc:587
std::vector< G4Material * > G4MaterialTable
G4SandiaTable * GetSandiaTable() const
Definition: G4Material.hh:229

Here is the call graph for this function:

Here is the caller graph for this function:

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 }
G4double GetMediumFormationZone(G4double, G4double, G4double)
G4double GetMediumLinearPhotoAbs(G4double)
std::complex< G4double > G4complex
Definition: G4Types.hh:81
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

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 }
static constexpr double hbarc
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

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 
204  const G4double* SandiaCof = fMediumPhotoAbsCof->GetSandiaCofForMaterial(omega);
205 
206  G4double cross = SandiaCof[0]/omega + SandiaCof[1]/omega2 +
207  SandiaCof[2]/omega3 + SandiaCof[3]/omega4;
208  return cross;
209 }
G4SandiaTable * fMediumPhotoAbsCof
G4double GetSandiaCofForMaterial(G4int, G4int) const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

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

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 
118 
120  G4complex C3(1.0 + 0.5*fGasThick*M3/fAlphaGas, fGasThick/L3/fAlphaGas);
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 }
G4double G4ParticleHPJENDLHEData::G4double result
const double C2
G4double GetGasFormationZone(G4double, G4double, G4double)
G4double GetPlateLinearPhotoAbs(G4double)
static constexpr double hbarc
G4double GetGasLinearPhotoAbs(G4double)
G4double GetPlateFormationZone(G4double, G4double, G4double)
#define C3
G4complex GetPlateComplexFZ(G4double, G4double, G4double)
G4complex GetMediumComplexFZ(G4double, G4double, G4double)
std::complex< G4double > G4complex
Definition: G4Types.hh:81
G4double energy(const ThreeVector &p, const G4double m)
G4complex GetGasComplexFZ(G4double, G4double, G4double)
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Member Data Documentation

G4int G4StrawTubeXTRadiator::fMatIndex3
protected

Definition at line 75 of file G4StrawTubeXTRadiator.hh.

G4SandiaTable* G4StrawTubeXTRadiator::fMediumPhotoAbsCof
protected

Definition at line 78 of file G4StrawTubeXTRadiator.hh.

G4double G4StrawTubeXTRadiator::fSigma3
protected

Definition at line 76 of file G4StrawTubeXTRadiator.hh.


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