53 for (i=0; i<entries; i++)
79 return (
G4int)widths.size();
88 std::size_t entries = widths.size();
89 for (std::size_t i=0; i<entries; ++i)
91 if ( (daughter1[i] == name1 && daughter2[i] == name2) ||
92 (daughter2[i] == name1 && daughter1[i] == name2) )
98 if (n > 1)
throw G4HadronicException(__FILE__, __LINE__,
"G4PartialWidthTable::Width - ambiguity");
109 for (i=0; i<nEnergies; i++)
111 G4double value = *(channelWidth+ i) * GeV;
116 widths.push_back(width);
117 daughter1.push_back(name1);
118 daughter2.push_back(name2);
126 std::size_t entries = widths.size();
128 for (std::size_t i=0; i<entries; ++i)
130 G4cout <<
" Channel " << i <<
": "
131 << daughter1[i] <<
" " << daughter2[i] <<
G4endl;
133 for (
G4int j=0; j<nEnergies; ++j)
138 G4cout << j <<
") Energy = " << e <<
", Width = " << w <<
G4endl;
G4GLOB_DLL std::ostream G4cout
const G4PhysicsVector * Width(const G4String &name1, const G4String &name2) const
G4bool operator!=(const G4PartialWidthTable &right) const
G4PartialWidthTable(const G4double *energies, G4int entries)
void AddWidths(const G4double *widths, const G4String &name1, const G4String &name2)
virtual ~G4PartialWidthTable()
G4int NumberOfChannels() const
G4bool operator==(const G4PartialWidthTable &right) const
void PutValue(const std::size_t index, const G4double e, const G4double value)
G4double GetValue(const G4double energy, G4bool &isOutRange) const