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

#include <G4ShellVacancy.hh>

Public Member Functions

 G4ShellVacancy ()
 
 ~G4ShellVacancy ()
 
std::vector< G4intGenerateNumberOfIonisations (const G4MaterialCutsCouple *couple, G4double incidentEnergy, G4double eLoss) const
 
void AddXsiTable (G4VEMDataSet *p)
 

Detailed Description

Definition at line 54 of file G4ShellVacancy.hh.

Constructor & Destructor Documentation

◆ G4ShellVacancy()

G4ShellVacancy::G4ShellVacancy ( )
explicit

Definition at line 44 of file G4ShellVacancy.cc.

45{ }

◆ ~G4ShellVacancy()

G4ShellVacancy::~G4ShellVacancy ( )

Definition at line 48 of file G4ShellVacancy.cc.

49{
50 std::size_t size = xsis.size();
51 for (std::size_t k =0; k<size; ++k)
52 {
53 delete xsis[k];
54 xsis[k] = nullptr;
55 }
56}

Member Function Documentation

◆ AddXsiTable()

void G4ShellVacancy::AddXsiTable ( G4VEMDataSet p)

Definition at line 59 of file G4ShellVacancy.cc.

60{
61 xsis.push_back(p);
62}

◆ GenerateNumberOfIonisations()

std::vector< G4int > G4ShellVacancy::GenerateNumberOfIonisations ( const G4MaterialCutsCouple couple,
G4double  incidentEnergy,
G4double  eLoss 
) const

Definition at line 66 of file G4ShellVacancy.cc.

71{
72 std::vector<G4int> numberOfIonisations;
73 const G4Material* material = couple->GetMaterial();
74 G4int numberOfElements = (G4int)material->GetNumberOfElements();
75
76 for (G4int i = 0; i<numberOfElements; ++i)
77 {
78 G4double averageNumberOfIonisations = AverageNOfIonisations(couple,
79 i,
80 incidentEnergy,
81 eLoss);
82 G4int ionisations = 0;
83 if(averageNumberOfIonisations > 0.0) {
84 ionisations = (G4int) G4Poisson(averageNumberOfIonisations);
85 }
86
87 numberOfIonisations.push_back(ionisations);
88
89 }
90 return numberOfIonisations;
91
92}
G4long G4Poisson(G4double mean)
Definition: G4Poisson.hh:50
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
const G4Material * GetMaterial() const
size_t GetNumberOfElements() const
Definition: G4Material.hh:181

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