35 #ifndef __SpectrumRecord_h 36 #define __SpectrumRecord_h 105 std::istream&
operator>>(std::istream& is, SpectrumRecord& obj);
116 std::ostream&
operator<<(std::ostream& os,
const SpectrumRecord& obj);
201 #endif // __SpectrumRecord_h XRayBeam is a class to handle the X-Ray beam. The beam spectrum is discretised into energy channels...
RATIONAL_NUMBER getPhotonEnergy() const
Accessor on the energy of photons.
SpectrumRecord is a class to handle a record of the X-Ray beam, i.e. an energy bin (number of photons...
friend std::ostream & operator<<(std::ostream &os, const SpectrumRecord &obj)
operator<<
RATIONAL_NUMBER m_energy
The energy of the photons.
RATIONAL_NUMBER m_photon_number
The number of photons.
std::istream & operator>>(std::istream &anInputSream, gVirtualXRay::AtomicElement &anElement)
operator >>
bool operator<(const SpectrumRecord &aRecord) const
operator<.
float RATIONAL_NUMBER
Type of data used to store real numbers.
friend std::istream & operator>>(std::istream &is, SpectrumRecord &obj)
operator>>
std::ostream & operator<<(std::ostream &anOutputSream, const gVirtualXRay::AtomicElement &anElement)
operator <<
RATIONAL_NUMBER getPhotonNumber() const
Accessor on the number of photons in the bin.
SpectrumRecord(const RATIONAL_NUMBER &aPhotonNumber=0, const RATIONAL_NUMBER &anIncidentEnergy=0)
Default constructor.
Class to manage a record of the X-Ray beam, i.e. an energy bin (number of photons, energy of the photons in the bin).