62 lowEnergy(emin), highEnergy(emax)
68 if(nElmMinusOne > 0) {
71 xSections.push_back(v0);
75 xSections.push_back(v);
97 if(0 == nElmMinusOne || cut == cutEnergy) {
return; }
106 for(
G4int j=0; j<=nbins; ++j) {
107 G4double e = (xSections[0])->Energy(j);
108 model->SetupForMaterial(part, material, e);
111 for (
G4int i=0; i<=nElmMinusOne; ++i) {
112 cross += theAtomNumDensityVector[i]*
113 model->ComputeCrossSectionPerAtom(part, (*theElementVector)[i], e,
115 xSections[i]->PutValue(j, cross);
120 if(0.0 == (*xSections[nElmMinusOne])[0]) {
121 for (
G4int i=0; i<=nElmMinusOne; ++i) {
122 xSections[i]->PutValue(0, (*xSections[i])[1]);
126 if(0.0 == (*xSections[nElmMinusOne])[nbins]) {
127 for (
G4int i=0; i<=nElmMinusOne; ++i) {
128 xSections[i]->PutValue(nbins, (*xSections[i])[nbins-1]);
132 for(
G4int j=0; j<=nbins; ++j) {
133 cross = (*xSections[nElmMinusOne])[j];
136 for (
G4int i=0; i<nElmMinusOne; ++i) {
138 xSections[i]->PutValue(j, x);
150 G4cout <<
"======== G4EmElementSelector for the " <<
model->GetName();
153 if(0 < nElmMinusOne) {
154 for(
G4int i=0; i<nElmMinusOne; i++) {
155 G4cout <<
" " << (*theElementVector)[i]->GetName() <<
" : " <<
G4endl;
159 G4cout <<
"Last Element in element vector "
160 << (*theElementVector)[nElmMinusOne]->GetName()
const G4String & GetName() const
const G4ElementVector * GetElementVector() const
const G4String & GetParticleName() const
const G4double * GetVecNbOfAtomsPerVolume() const
G4GLOB_DLL std::ostream G4cout
const XML_Char XML_Content * model
void Dump(const G4ParticleDefinition *p=0)
size_t GetNumberOfElements() const
G4EmElementSelector(G4VEmModel *, const G4Material *, G4int bins, G4double emin, G4double emax, G4bool spline=true)
void Initialise(const G4ParticleDefinition *, G4double cut=0.0)