rmf operator* (const rmf&, const arf&)
rmf operator* (const arf&, const rmf&)
Multiply an rmf by an arf.
rmf operator* (const rmf&, const Real&)
rmf operator* (const Real&, const rmf&)
Multiply an rmf by a factor.
rmf operator+ (const rmf&, const rmf&)
Add two rmfs.
vector<Integer> RMFeboundsExtensions(
const string filename, const string extname="")
Return a vector containing the extension numbers of all
EBOUNDS extensions in the file.
vector<Integer> RMFmatrixExtensions(
const string filename, const string extname="")
Return a vector containing the extension numbers of all
MATRIX extensions in the file.
void calcGaussResp(const Real width, const Real energ,
const Real threshold,
const vector<Real>& ChannelLowEnergy,
const vector<Real>& ChannelHighEnergy,
vector<Real>& ResponseVector)
Calculate the response vector for some energy give a gaussian width.
The gaussian is assumed to be in the units of energy,
ChannelLowEnergy and ChannelHighEnergy. The resulting
response vector can be added into a response using addRow.
size\_t binarySearch(const Real energy, const vector<Real>& lowEnergy,
const vector<Real>& highEnergy)
Return the index in the energy array containing the input
energy using binary search.