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++)
112 G4double value = *(channelWidth+ i) * GeV;
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;
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(std::size_t index, G4double energy, G4double dValue)
G4double GetValue(G4double theEnergy, G4bool &isOutRange) const