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

#include <G4DNACPA100IonisationStructure.hh>

Public Member Functions

 G4DNACPA100IonisationStructure ()
 
 ~G4DNACPA100IonisationStructure ()=default
 
G4double IonisationEnergy (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 51 of file G4DNACPA100IonisationStructure.hh.

Constructor & Destructor Documentation

◆ G4DNACPA100IonisationStructure()

G4DNACPA100IonisationStructure::G4DNACPA100IonisationStructure ( )

Definition at line 47 of file G4DNACPA100IonisationStructure.cc.

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

◆ ~G4DNACPA100IonisationStructure()

G4DNACPA100IonisationStructure::~G4DNACPA100IonisationStructure ( )
default

Member Function Documentation

◆ IonisationEnergy()

G4double G4DNACPA100IonisationStructure::IonisationEnergy ( const std::size_t & level,
const std::size_t & MatID )

Definition at line 353 of file G4DNACPA100IonisationStructure.cc.

355{
356 G4double ionisation = 0.;
357
358 if (level < fnLevels[MatID]) {
359 ionisation = fEnergyConstant[MatID][level];
360 }
361 else {
362 std::ostringstream oss;
363 oss << " material was not found. ";
364 G4Exception("G4DNACPA100IonisationStructure::IonisationEnergy", "CPA013", FatalException,
365 oss.str().c_str());
366 }
367
368 return ionisation;
369}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
double G4double
Definition G4Types.hh:83

Referenced by G4DNACPA100IonisationModel::DifferentialCrossSection(), and G4DNACPA100IonisationModel::SampleSecondaries().

◆ NumberOfLevels()

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

Definition at line 62 of file G4DNACPA100IonisationStructure.hh.

63 {
64 return fnLevels[MatID];
65 }

Referenced by G4DNACPA100IonisationModel::ReadDiffCSFile().

◆ UEnergy()

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

Definition at line 373 of file G4DNACPA100IonisationStructure.cc.

374{
375 G4double UEnergy = 0.;
376 if (level < fnLevels[MatID]) {
377 UEnergy = fUConstant[MatID][level];
378 }
379 else {
380 std::ostringstream oss;
381 oss << " material was not found. ";
382 G4Exception("G4DNACPA100IonisationStructure::IonisationEnergy", "CPA001", FatalException,
383 oss.str().c_str());
384 }
385
386 return UEnergy;
387}
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: