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

#include <G4DNAQuinnPlasmonExcitationModel.hh>

+ Inheritance diagram for G4DNAQuinnPlasmonExcitationModel:

Public Member Functions

 G4DNAQuinnPlasmonExcitationModel (const G4ParticleDefinition *p=0, const G4String &nam="DNAQuinnPlasmonExcitationModel")
 
virtual ~G4DNAQuinnPlasmonExcitationModel ()
 
virtual void Initialise (const G4ParticleDefinition *, const G4DataVector &= *(new G4DataVector()))
 
virtual G4double CrossSectionPerVolume (const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
 
virtual G4double GetCrossSection (const G4Material *material, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
 
void SelectStationary (G4bool input)
 
- Public Member Functions inherited from G4VEmModel
 G4VEmModel (const G4String &nam)
 
virtual ~G4VEmModel ()
 
virtual void Initialise (const G4ParticleDefinition *, const G4DataVector &)=0
 
virtual void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX)=0
 
virtual void InitialiseLocal (const G4ParticleDefinition *, G4VEmModel *masterModel)
 
virtual void InitialiseForMaterial (const G4ParticleDefinition *, const G4Material *)
 
virtual void InitialiseForElement (const G4ParticleDefinition *, G4int Z)
 
virtual G4double ComputeDEDXPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
virtual G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double GetPartialCrossSection (const G4Material *, G4int level, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ComputeCrossSectionPerShell (const G4ParticleDefinition *, G4int Z, G4int shellIdx, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ChargeSquareRatio (const G4Track &)
 
virtual G4double GetChargeSquareRatio (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual G4double GetParticleCharge (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void StartTracking (G4Track *)
 
virtual void CorrectionsAlongStep (const G4MaterialCutsCouple *, const G4DynamicParticle *, const G4double &length, G4double &eloss)
 
virtual G4double Value (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double MinPrimaryEnergy (const G4Material *, const G4ParticleDefinition *, G4double cut=0.0)
 
virtual G4double MinEnergyCut (const G4ParticleDefinition *, const G4MaterialCutsCouple *)
 
virtual void SetupForMaterial (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void DefineForRegion (const G4Region *)
 
virtual void FillNumberOfSecondaries (G4int &numberOfTriplets, G4int &numberOfRecoil)
 
virtual void ModelDescription (std::ostream &outFile) const
 
void InitialiseElementSelectors (const G4ParticleDefinition *, const G4DataVector &)
 
std::vector< G4EmElementSelector * > * GetElementSelectors ()
 
void SetElementSelectors (std::vector< G4EmElementSelector * > *)
 
G4double ComputeDEDX (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
G4double CrossSection (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeMeanFreePath (const G4ParticleDefinition *, G4double kineticEnergy, const G4Material *, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, const G4Element *, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectTargetAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementGetCurrentElement (const G4Material *mat=nullptr) const
 
G4int SelectRandomAtomNumber (const G4Material *) const
 
const G4IsotopeGetCurrentIsotope (const G4Element *elm=nullptr) const
 
G4int SelectIsotopeNumber (const G4Element *) const
 
void SetParticleChange (G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
 
void SetCrossSectionTable (G4PhysicsTable *, G4bool isLocal)
 
G4ElementDataGetElementData ()
 
G4PhysicsTableGetCrossSectionTable ()
 
G4VEmFluctuationModelGetModelOfFluctuations ()
 
G4VEmAngularDistributionGetAngularDistribution ()
 
G4VEmModelGetTripletModel ()
 
void SetTripletModel (G4VEmModel *)
 
void SetAngularDistribution (G4VEmAngularDistribution *)
 
G4double HighEnergyLimit () const
 
G4double LowEnergyLimit () const
 
G4double HighEnergyActivationLimit () const
 
G4double LowEnergyActivationLimit () const
 
G4double PolarAngleLimit () const
 
G4double SecondaryThreshold () const
 
G4bool LPMFlag () const
 
G4bool DeexcitationFlag () const
 
G4bool ForceBuildTableFlag () const
 
G4bool UseAngularGeneratorFlag () const
 
void SetAngularGeneratorFlag (G4bool)
 
void SetHighEnergyLimit (G4double)
 
void SetLowEnergyLimit (G4double)
 
void SetActivationHighEnergyLimit (G4double)
 
void SetActivationLowEnergyLimit (G4double)
 
G4bool IsActive (G4double kinEnergy) const
 
void SetPolarAngleLimit (G4double)
 
void SetSecondaryThreshold (G4double)
 
void SetLPMFlag (G4bool val)
 
void SetDeexcitationFlag (G4bool val)
 
void SetForceBuildTable (G4bool val)
 
void SetFluctuationFlag (G4bool val)
 
void SetMasterThread (G4bool val)
 
G4bool IsMaster () const
 
void SetUseBaseMaterials (G4bool val)
 
G4bool UseBaseMaterials () const
 
G4double MaxSecondaryKinEnergy (const G4DynamicParticle *dynParticle)
 
const G4StringGetName () const
 
void SetCurrentCouple (const G4MaterialCutsCouple *)
 
G4bool IsLocked () const
 
void SetLocked (G4bool)
 
G4VEmModeloperator= (const G4VEmModel &right)=delete
 
 G4VEmModel (const G4VEmModel &)=delete
 

Protected Attributes

G4ParticleChangeForGammafParticleChangeForGamma
 
- Protected Attributes inherited from G4VEmModel
G4ElementDatafElementData = nullptr
 
G4VParticleChangepParticleChange = nullptr
 
G4PhysicsTablexSectionTable = nullptr
 
const G4MaterialpBaseMaterial = nullptr
 
const std::vector< G4double > * theDensityFactor = nullptr
 
const std::vector< G4int > * theDensityIdx = nullptr
 
G4double inveplus
 
G4double pFactor = 1.0
 
size_t currentCoupleIndex = 0
 
size_t basedCoupleIndex = 0
 
G4bool lossFlucFlag = true
 

Additional Inherited Members

- Protected Member Functions inherited from G4VEmModel
G4ParticleChangeForLossGetParticleChangeForLoss ()
 
G4ParticleChangeForGammaGetParticleChangeForGamma ()
 
virtual G4double MaxSecondaryEnergy (const G4ParticleDefinition *, G4double kineticEnergy)
 
const G4MaterialCutsCoupleCurrentCouple () const
 
void SetCurrentElement (const G4Element *)
 

Detailed Description

Definition at line 41 of file G4DNAQuinnPlasmonExcitationModel.hh.

Constructor & Destructor Documentation

◆ G4DNAQuinnPlasmonExcitationModel()

G4DNAQuinnPlasmonExcitationModel::G4DNAQuinnPlasmonExcitationModel ( const G4ParticleDefinition p = 0,
const G4String nam = "DNAQuinnPlasmonExcitationModel" 
)

Definition at line 43 of file G4DNAQuinnPlasmonExcitationModel.cc.

45 :
46G4VEmModel(nam), isInitialised(false)
47{
48 fpMaterialDensity = 0;
49 fLowEnergyLimit = 10 * eV;
50 fHighEnergyLimit = 1.0 * GeV;
51
52 for(G4int i=0;i<100;i++) nValenceElectron[i]=0;
53
54 verboseLevel = 0;
55
56 if (verboseLevel > 0)
57 {
58 G4cout << "Quinn plasmon excitation model is constructed " << G4endl;
59 }
61 statCode = false;
62}
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

◆ ~G4DNAQuinnPlasmonExcitationModel()

G4DNAQuinnPlasmonExcitationModel::~G4DNAQuinnPlasmonExcitationModel ( )
virtual

Definition at line 66 of file G4DNAQuinnPlasmonExcitationModel.cc.

67{
68}

Member Function Documentation

◆ CrossSectionPerVolume()

G4double G4DNAQuinnPlasmonExcitationModel::CrossSectionPerVolume ( const G4Material material,
const G4ParticleDefinition p,
G4double  ekin,
G4double  emin,
G4double  emax 
)
virtual

Reimplemented from G4VEmModel.

Definition at line 149 of file G4DNAQuinnPlasmonExcitationModel.cc.

155{
156 if (verboseLevel > 3)
157 {
158 G4cout <<
159 "Calling CrossSectionPerVolume() of G4DNAQuinnPlasmonExcitationModel"
160 << G4endl;
161 }
162
163 // Protection: only for single element
164 if(material->GetNumberOfElements()>1) return 0.;
165 G4double z = material->GetZ();
166
167 // Protection: only for Gold
168 if (z!=79){return 0.;}
169
170
171 G4double sigma = 0;
172 G4double atomicNDensity = material->GetAtomicNumDensityVector()[0];
173
174 if(atomicNDensity!= 0.0)
175 {
176 if (ekin >= fLowEnergyLimit && ekin < fHighEnergyLimit)
177 {
178 sigma = GetCrossSection(material,particleDefinition,ekin);
179 }
180
181 if (verboseLevel > 2)
182 {
183 G4cout<<"__________________________________" << G4endl;
184 G4cout<<"=== G4DNAQuinnPlasmonExcitationModel - XS INFO START"<<G4endl;
185 G4cout<<"=== Kinetic energy (eV)=" << ekin/eV << " particle : "
186 <<particleDefinition->GetParticleName() << G4endl;
187 G4cout<<"=== Cross section per atom for Z="<<z<<" is (cm^2)"
188 <<sigma/cm/cm << G4endl;
189 G4cout<<"=== Cross section per atom for Z="<<z<<" is (cm^-1)="
190 <<sigma*atomicNDensity/(1./cm) << G4endl;
191 G4cout<<"=== G4DNAQuinnPlasmonExcitationModel - XS INFO END" << G4endl;
192 }
193 }
194
195 return sigma*atomicNDensity;
196}
double G4double
Definition: G4Types.hh:83
virtual G4double GetCrossSection(const G4Material *material, const G4ParticleDefinition *, G4double kineticEnergy)
G4double GetZ() const
Definition: G4Material.cc:745
size_t GetNumberOfElements() const
Definition: G4Material.hh:181
const G4double * GetAtomicNumDensityVector() const
Definition: G4Material.hh:211

◆ GetCrossSection()

G4double G4DNAQuinnPlasmonExcitationModel::GetCrossSection ( const G4Material material,
const G4ParticleDefinition particle,
G4double  kineticEnergy 
)
virtual

Definition at line 263 of file G4DNAQuinnPlasmonExcitationModel.cc.

267{
268 G4double value=0;
269
270 if(particle == G4Electron::ElectronDefinition())
271 {
272 G4double e = 1.;
273 G4int z = material->GetZ();
274 G4int Nve = 0;
275 if(z<100) Nve = nValenceElectron[z];
276 G4double A = material->GetA()/g/mole;
277 G4double Dens = material->GetDensity()/g*cm*cm*cm;
278 G4double veDens = Dens*CLHEP::Avogadro*Nve/A;
279
280 G4double omega_p = std::sqrt(veDens*std::pow(e,2)
281 /(CLHEP::epsilon0/(1./cm)*CLHEP::electron_mass_c2/
282 (CLHEP::c_squared/cm/cm)));
283
284 G4double fEnergy = std::pow(CLHEP::h_Planck,2)/(8*CLHEP::electron_mass_c2)*
285 std::pow(3*veDens/CLHEP::pi,2./3.)/e
286 *(CLHEP::c_squared/cm/cm);
287
288 G4double p0 = sqrt(2*CLHEP::electron_mass_c2
289 /(CLHEP::c_squared/cm/cm)*fEnergy);
290
291 G4double p = sqrt(2*CLHEP::electron_mass_c2
292 /(CLHEP::c_squared/cm/cm)*kineticEnergy);
293
294 G4double mfp = 2*CLHEP::Bohr_radius/cm*kineticEnergy
295 /(CLHEP::hbar_Planck*omega_p)/
296 (G4Log((std::pow(std::pow(p0,2)
297 +2*CLHEP::electron_mass_c2/
298 (CLHEP::c_squared/cm/cm)*omega_p
299 *CLHEP::hbar_Planck,1./2.)-p0)
300 /(p-std::pow(std::pow(p,2)-2*CLHEP::electron_mass_c2/
301 (CLHEP::c_squared/cm/cm)*omega_p
302 *CLHEP::hbar_Planck,1./2.))));
303
304 G4double excitationEnergy = CLHEP::hbar_Planck*omega_p;
305
306 if((0<mfp)&&(0<veDens)&&(excitationEnergy<kineticEnergy)){
307 value = 1./(veDens*mfp);
308 }
309 }
310 return value*cm*cm;
311}
G4double G4Log(G4double x)
Definition: G4Log.hh:227
const G4double A[17]
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:88
G4double GetDensity() const
Definition: G4Material.hh:175
G4double GetA() const
Definition: G4Material.cc:759

Referenced by CrossSectionPerVolume().

◆ Initialise()

void G4DNAQuinnPlasmonExcitationModel::Initialise ( const G4ParticleDefinition particle,
const G4DataVector = *(new G4DataVector()) 
)
virtual

Implements G4VEmModel.

Definition at line 72 of file G4DNAQuinnPlasmonExcitationModel.cc.

75{
76 for(G4int i=0;i<100;i++) nValenceElectron[i]=0;
77
78 if (verboseLevel > 3)
79 {
80 G4cout <<
81 "Calling G4DNAQuinnPlasmonExcitationModel::Initialise()"
82 << G4endl;
83 }
84
85 if(particle == G4Electron::ElectronDefinition())
86 {
87 fLowEnergyLimit = 10 * eV;
88 fHighEnergyLimit = 1.0 * GeV;
89 }
90 else
91 {
92 G4Exception("G4DNAQuinnPlasmonExcitationModel::Initialise","em0001",
93 FatalException,"Not defined for other particles than electrons.");
94 return;
95 }
96
97 // Get Number of valence electrons
98 G4ProductionCutsTable* theCoupleTable =
100
101 G4int numOfCouples = (G4int)theCoupleTable->GetTableSize();
102
103 for(G4int i=0;i<numOfCouples;i++){
104
105 const G4MaterialCutsCouple* couple =
106 theCoupleTable->GetMaterialCutsCouple(i);
107
108 const G4Material* material = couple->GetMaterial();
109
110 const G4ElementVector* theElementVector =material->GetElementVector();
111
112 std::size_t nelm = material->GetNumberOfElements();
113 if (nelm==1) // Protection: only for single element
114 {
115 G4int z = G4lrint((*theElementVector)[0]->GetZ());
116 if(z<=100)
117 {
118 nValenceElectron[z] = GetNValenceElectron(z);
119 }
120 else
121 {
122 G4Exception("G4DNAQuinnPlasmonExcitationModel::Initialise","em0002",
123 FatalException,"The model is not applied for z>100");
124 }
125 }
126 //for(G4int j=0;j<nelm;j++){
127 // G4int z=G4lrint((*theElementVector)[j]->GetZ());
128 // if(z<=100){nValenceElectron[z] = GetNValenceElectron(z);}
129 //}
130 }
131
132 if( verboseLevel>0 )
133 {
134 G4cout << "Quinn plasmon excitation model is initialized " << G4endl
135 << "Energy range: "
136 << LowEnergyLimit() / eV << " eV - "
137 << HighEnergyLimit() / keV << " keV for "
138 << particle->GetParticleName()
139 << G4endl;
140 }
141
142 if (isInitialised){return;}
144 isInitialised = true;
145}
std::vector< const G4Element * > G4ElementVector
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:59
const G4Material * GetMaterial() const
const G4ElementVector * GetElementVector() const
Definition: G4Material.hh:185
const G4String & GetParticleName() const
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
std::size_t GetTableSize() const
static G4ProductionCutsTable * GetProductionCutsTable()
G4ParticleChangeForGamma * GetParticleChangeForGamma()
Definition: G4VEmModel.cc:124
G4double LowEnergyLimit() const
Definition: G4VEmModel.hh:641
G4double HighEnergyLimit() const
Definition: G4VEmModel.hh:634
int G4lrint(double ad)
Definition: templates.hh:134

◆ SampleSecondaries()

void G4DNAQuinnPlasmonExcitationModel::SampleSecondaries ( std::vector< G4DynamicParticle * > *  ,
const G4MaterialCutsCouple couple,
const G4DynamicParticle aDynamicParticle,
G4double  tmin,
G4double  maxEnergy 
)
virtual

Implements G4VEmModel.

Definition at line 200 of file G4DNAQuinnPlasmonExcitationModel.cc.

205{
206
207 if (verboseLevel > 3)
208 {
209 G4cout <<
210 "Calling SampleSecondaries() of G4DNAQuinnPlasmonExcitationModel"
211 << G4endl;
212 }
213
214 const G4Material *material = couple->GetMaterial();
215
216 G4ParticleDefinition* particle = aDynamicParticle->GetDefinition();
217
218 G4double k = aDynamicParticle->GetKineticEnergy();
219
220 if(particle == G4Electron::ElectronDefinition())
221 {
222 G4double e = 1.;
223 G4int z = material->GetZ();
224 G4int Nve = 0;
225
226 //TODO: have to be change to realistic!!
227 if(z<100) Nve = nValenceElectron[z];
228
229 G4double A = material->GetA()/g/mole;
230 G4double Dens = material->GetDensity()/g*cm*cm*cm;
231 G4double veDens = Dens*CLHEP::Avogadro*Nve/A;
232
233 G4double omega_p = std::sqrt(veDens*std::pow(e,2)/
234 (CLHEP::epsilon0/(1./cm)*CLHEP::electron_mass_c2
235 /(CLHEP::c_squared/cm/cm)));
236
237 G4double excitationEnergy = CLHEP::hbar_Planck*omega_p;
238 G4double newEnergy = k - excitationEnergy;
239
240
241 if (newEnergy > 0)
242 {
244 ProposeMomentumDirection(aDynamicParticle->GetMomentumDirection());
245
247
248 if(!statCode)
249 {
251 }
252 else
253 {
255
256 }
257 }
258 }
259}
const G4ThreeVector & GetMomentumDirection() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)

◆ SelectStationary()

void G4DNAQuinnPlasmonExcitationModel::SelectStationary ( G4bool  input)
inline

Definition at line 97 of file G4DNAQuinnPlasmonExcitationModel.hh.

98{
99 statCode = input;
100}

Member Data Documentation

◆ fParticleChangeForGamma

G4ParticleChangeForGamma* G4DNAQuinnPlasmonExcitationModel::fParticleChangeForGamma
protected

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