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

#include <G4DNACPA100ExcitationStructure.hh>

Public Member Functions

 G4DNACPA100ExcitationStructure ()
 
 ~G4DNACPA100ExcitationStructure ()=default
 
G4double ExcitationEnergy (const std::size_t &level, const std::size_t &MatID)
 
G4double UEnergy (const std::size_t &level, const std::size_t &MatID)
 
std::size_t NumberOfLevels (const std::size_t &MatID)
 

Detailed Description

Definition at line 47 of file G4DNACPA100ExcitationStructure.hh.

Constructor & Destructor Documentation

◆ G4DNACPA100ExcitationStructure()

G4DNACPA100ExcitationStructure::G4DNACPA100ExcitationStructure ( )

Definition at line 46 of file G4DNACPA100ExcitationStructure.cc.

47{
48 fpGuanine = G4Material::GetMaterial("G4_GUANINE", false);
49 fpG4_WATER = G4Material::GetMaterial("G4_WATER", false);
50 fpDeoxyribose = G4Material::GetMaterial("G4_DEOXYRIBOSE", false);
51 fpCytosine = G4Material::GetMaterial("G4_CYTOSINE", false);
52 fpThymine = G4Material::GetMaterial("G4_THYMINE", false);
53 fpAdenine = G4Material::GetMaterial("G4_ADENINE", false);
54 fpPhosphate = G4Material::GetMaterial("G4_PHOSPHORIC_ACID", false);
55
56 if (fpGuanine != nullptr) {
57 InitialiseGuanine();
58 }
59
60 if (fpG4_WATER != nullptr) {
61 InitialiseWater();
62 }
63
64 if (fpDeoxyribose != nullptr) {
65 InitialiseDeoxyribose();
66 }
67
68 if (fpCytosine != nullptr) {
69 InitialiseCytosine();
70 }
71
72 if (fpThymine != nullptr) {
73 InitialiseThymine();
74 }
75
76 if (fpAdenine != nullptr) {
77 InitialiseAdenine();
78 }
79
80 if (fpPhosphate != nullptr) {
81 InitialisePhosphate();
82 }
83}
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)

◆ ~G4DNACPA100ExcitationStructure()

G4DNACPA100ExcitationStructure::~G4DNACPA100ExcitationStructure ( )
default

Member Function Documentation

◆ ExcitationEnergy()

G4double G4DNACPA100ExcitationStructure::ExcitationEnergy ( const std::size_t & level,
const std::size_t & MatID )

Definition at line 227 of file G4DNACPA100ExcitationStructure.cc.

229{
230 G4double ionisation = 0.;
231
232 if (level < fnLevels[MatID]) {
233 ionisation = fEnergyConstant[MatID][level];
234 }
235 else {
236 std::ostringstream oss;
237 oss << " material was not found. ";
238 G4Exception("G4DNACPA100ExcitationStructure::ExcitationEnergy", "CPA001", FatalException,
239 oss.str().c_str());
240 }
241
242 return ionisation;
243}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
double G4double
Definition G4Types.hh:83

Referenced by G4DNACPA100ExcitationModel::SampleSecondaries().

◆ NumberOfLevels()

std::size_t G4DNACPA100ExcitationStructure::NumberOfLevels ( const std::size_t & MatID)
inline

Definition at line 54 of file G4DNACPA100ExcitationStructure.hh.

55 {
56 return fnLevels[MatID];
57 }

Referenced by G4DNACPA100ExcitationModel::SampleSecondaries().

◆ UEnergy()

G4double G4DNACPA100ExcitationStructure::UEnergy ( const std::size_t & level,
const std::size_t & MatID )

Definition at line 247 of file G4DNACPA100ExcitationStructure.cc.

248{
249 G4double UEnergy = 0.;
250 if (level < fnLevels[MatID]) {
251 UEnergy = fUConstant[MatID][level];
252 }
253 else {
254 std::ostringstream oss;
255 oss << " material was not found. ";
256 G4Exception("G4DNACPA100ExcitationStructure::ExcitationEnergy", "CPA001", FatalException,
257 oss.str().c_str());
258 }
259
260 return UEnergy;
261}
G4double UEnergy(const std::size_t &level, const std::size_t &MatID)

Referenced by UEnergy().


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