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 56 of file G4ShellVacancy.hh.


Constructor & Destructor Documentation

G4ShellVacancy::G4ShellVacancy (  ) 

Definition at line 45 of file G4ShellVacancy.cc.

00047 { }

G4ShellVacancy::~G4ShellVacancy (  ) 

Definition at line 49 of file G4ShellVacancy.cc.

00050 {
00051   G4int size = xsis.size();
00052   for (G4int k =0; k<size; k++)
00053     {
00054       delete xsis[k];
00055       xsis[k] = 0;
00056     }
00057 }


Member Function Documentation

void G4ShellVacancy::AddXsiTable ( G4VEMDataSet p  ) 

Definition at line 59 of file G4ShellVacancy.cc.

00060 {
00061   xsis.push_back(p);
00062 }

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

Definition at line 64 of file G4ShellVacancy.cc.

References G4Poisson(), G4MaterialCutsCouple::GetMaterial(), and G4Material::GetNumberOfElements().

00070 {
00071   std::vector<G4int> numberOfIonisations;
00072   const G4Material* material = couple->GetMaterial();
00073   G4int numberOfElements = material->GetNumberOfElements();
00074 
00075   for (G4int i = 0; i<numberOfElements; i++)
00076     {
00077       G4double averageNumberOfIonisations = AverageNOfIonisations(couple,
00078                                                                   i,
00079                                                                   incidentEnergy,
00080                                                                   eLoss);
00081       G4int ionisations = 0;
00082       if(averageNumberOfIonisations > 0.0) {
00083         ionisations = (G4int) G4Poisson(averageNumberOfIonisations);
00084       }
00085 
00086       numberOfIonisations.push_back(ionisations);
00087 
00088     }
00089   return numberOfIonisations;
00090 
00091 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:22 2013 for Geant4 by  doxygen 1.4.7