53 for (i=0; i<entries; i++)
89 G4int entries = widths.size();
90 for (i=0; i<entries; i++)
92 if ( (daughter1[i] == name1 && daughter2[i] == name2) ||
93 (daughter2[i] == name1 && daughter1[i] == name2) )
99 if (n > 1)
throw G4HadronicException(__FILE__, __LINE__,
"G4PartialWidthTable::Width - ambiguity");
110 for (i=0; i<nEnergies; i++)
117 widths.push_back(width);
118 daughter1.push_back(name1);
119 daughter2.push_back(name2);
127 G4int entries = widths.size();
130 for (i=0; i<entries; i++)
132 G4cout <<
" Channel " << i <<
": "
133 << daughter1[i] <<
" " << daughter2[i] <<
G4endl;
136 for (j=0; j<nEnergies; j++)
141 G4cout << j <<
") Energy = " << e <<
", Width = " << w <<
G4endl;
G4PartialWidthTable(const G4double *energies, G4int entries)
G4double GetValue(G4double theEnergy, G4bool &isOutRange) const
void PutValue(size_t binNumber, G4double binValue, G4double dataValue)
G4bool operator==(const G4PartialWidthTable &right) const
G4GLOB_DLL std::ostream G4cout
virtual ~G4PartialWidthTable()
G4int NumberOfChannels() const
const G4PhysicsVector * Width(const G4String &name1, const G4String &name2) const
const XML_Char int const XML_Char * value
G4bool operator!=(const G4PartialWidthTable &right) const
void AddWidths(const G4double *widths, const G4String &name1, const G4String &name2)