#include <G4DNAAttachment.hh>
Inheritance diagram for G4DNAAttachment:
Public Member Functions | |
G4DNAAttachment (const G4String &processName="DNAAttachment", G4ProcessType type=fElectromagnetic) | |
virtual | ~G4DNAAttachment () |
virtual G4bool | IsApplicable (const G4ParticleDefinition &) |
virtual void | PrintInfo () |
Protected Member Functions | |
virtual void | InitialiseProcess (const G4ParticleDefinition *) |
Definition at line 42 of file G4DNAAttachment.hh.
G4DNAAttachment::G4DNAAttachment | ( | const G4String & | processName = "DNAAttachment" , |
|
G4ProcessType | type = fElectromagnetic | |||
) |
Definition at line 36 of file G4DNAAttachment.cc.
References G4VProcess::SetProcessSubType().
00037 :G4VEmProcess (processName, type), 00038 isInitialised(false) 00039 { 00040 SetProcessSubType(55); 00041 }
G4DNAAttachment::~G4DNAAttachment | ( | ) | [virtual] |
void G4DNAAttachment::InitialiseProcess | ( | const G4ParticleDefinition * | ) | [protected, virtual] |
Implements G4VEmProcess.
Definition at line 57 of file G4DNAAttachment.cc.
References G4VEmProcess::AddEmModel(), G4VEmProcess::EmModel(), G4ParticleDefinition::GetParticleName(), G4VEmProcess::SetBuildTableFlag(), G4VEmProcess::SetEmModel(), G4VEmModel::SetHighEnergyLimit(), and G4VEmModel::SetLowEnergyLimit().
00058 { 00059 if(!isInitialised) 00060 { 00061 isInitialised = true; 00062 SetBuildTableFlag(false); 00063 00064 G4String name = p->GetParticleName(); 00065 00066 if(name == "e-") 00067 { 00068 if(!EmModel()) SetEmModel(new G4DNAMeltonAttachmentModel); 00069 EmModel()->SetLowEnergyLimit(4.*eV); 00070 EmModel()->SetHighEnergyLimit(13.*eV); 00071 AddEmModel(1, EmModel()); 00072 } 00073 } 00074 }
G4bool G4DNAAttachment::IsApplicable | ( | const G4ParticleDefinition & | ) | [virtual] |
Implements G4VEmProcess.
Definition at line 50 of file G4DNAAttachment.cc.
References G4Electron::Electron().
00051 { 00052 return (&p == G4Electron::Electron()); 00053 }
void G4DNAAttachment::PrintInfo | ( | ) | [virtual] |
Implements G4VEmProcess.
Definition at line 78 of file G4DNAAttachment.cc.
References G4VEmProcess::EmModel(), G4cout, G4endl, and G4VEmModel::GetName().
00079 { 00080 G4cout 00081 << " Total cross sections computed from " 00082 << EmModel()->GetName() 00083 << G4endl; 00084 }