Geant4 11.2.2
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=nullptr, const G4String &nam="DNAQuinnPlasmonExcitationModel")
 
 ~G4DNAQuinnPlasmonExcitationModel () override
 
G4DNAQuinnPlasmonExcitationModeloperator= (const G4DNAQuinnPlasmonExcitationModel &right)=delete
 
 G4DNAQuinnPlasmonExcitationModel (const G4DNAQuinnPlasmonExcitationModel &)=delete
 
void Initialise (const G4ParticleDefinition *, const G4DataVector &= *(new G4DataVector())) override
 
G4double CrossSectionPerVolume (const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax) override
 
virtual G4double GetCrossSection (const G4Material *material, const G4ParticleDefinition *, G4double kineticEnergy)
 
void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
 
void SelectStationary (G4bool input)
 
- Public Member Functions inherited from G4VEmModel
 G4VEmModel (const G4String &nam)
 
virtual ~G4VEmModel ()
 
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 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 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 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)
 
void SetLPMFlag (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
 
std::size_t currentCoupleIndex = 0
 
std::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() [1/2]

G4DNAQuinnPlasmonExcitationModel::G4DNAQuinnPlasmonExcitationModel ( const G4ParticleDefinition * p = nullptr,
const G4String & nam = "DNAQuinnPlasmonExcitationModel" )

Definition at line 43 of file G4DNAQuinnPlasmonExcitationModel.cc.

45 :
46G4VEmModel(nam)
47{
48 fpMaterialDensity = nullptr;
49 fLowEnergyLimit = 10 * eV;
50 fHighEnergyLimit = 1.0 * GeV;
51
52 for(int & 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}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4VEmModel(const G4String &nam)
Definition G4VEmModel.cc:67

◆ ~G4DNAQuinnPlasmonExcitationModel()

G4DNAQuinnPlasmonExcitationModel::~G4DNAQuinnPlasmonExcitationModel ( )
overridedefault

◆ G4DNAQuinnPlasmonExcitationModel() [2/2]

G4DNAQuinnPlasmonExcitationModel::G4DNAQuinnPlasmonExcitationModel ( const G4DNAQuinnPlasmonExcitationModel & )
delete

Member Function Documentation

◆ CrossSectionPerVolume()

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

Reimplemented from G4VEmModel.

Definition at line 148 of file G4DNAQuinnPlasmonExcitationModel.cc.

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

◆ GetCrossSection()

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

Definition at line 262 of file G4DNAQuinnPlasmonExcitationModel.cc.

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

Referenced by CrossSectionPerVolume().

◆ Initialise()

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

Implements G4VEmModel.

Definition at line 71 of file G4DNAQuinnPlasmonExcitationModel.cc.

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

◆ operator=()

G4DNAQuinnPlasmonExcitationModel & G4DNAQuinnPlasmonExcitationModel::operator= ( const G4DNAQuinnPlasmonExcitationModel & right)
delete

◆ SampleSecondaries()

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

Implements G4VEmModel.

Definition at line 199 of file G4DNAQuinnPlasmonExcitationModel.cc.

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