Geant4 10.7.0
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 ( )

Definition at line 43 of file G4ShellVacancy.cc.

45{ }

◆ ~G4ShellVacancy()

G4ShellVacancy::~G4ShellVacancy ( )

Definition at line 47 of file G4ShellVacancy.cc.

48{
49 G4int size = xsis.size();
50 for (G4int k =0; k<size; k++)
51 {
52 delete xsis[k];
53 xsis[k] = 0;
54 }
55}
int G4int
Definition: G4Types.hh:85

Member Function Documentation

◆ AddXsiTable()

void G4ShellVacancy::AddXsiTable ( G4VEMDataSet p)

Definition at line 57 of file G4ShellVacancy.cc.

58{
59 xsis.push_back(p);
60}

◆ GenerateNumberOfIonisations()

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

Definition at line 62 of file G4ShellVacancy.cc.

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

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