Public Methods |
|
| SpectObj () |
| | SpectObj (double enmin, double enmax,double enstep) |
| | SpectObj (std::map< double, double >::const_iterator start, std::map< double, double >::const_iterator end) |
|
| ~SpectObj () |
| double | integrated_E_Flux (double enmin, double enmax) |
| double | integrated_Flux (double enmin, double enmax) |
| double | binSize (std::map< double, double >::const_iterator it) |
| double | size () |
| void | clear () |
| double | getBinContent (double index) |
| double | getBinValue (double index) |
|
SpectObj | operator+ (const SpectObj inputObj) |
| | adds a spectrum object.
|
|
SpectObj | operator+= (const SpectObj inputObj) |
|
SpectObj | operator * (const double value) |
| | scales the spectrum values.
|
|
SpectObj | operator *= (const double value) |
|
SpectObj | operator/ (const double value) |
| | divide a spectrum object for a value.
|
|
SpectObj | operator/= (const double value) |
| std::vector< double > | getEnergyVector (const double value=1.) |
| std::vector< double > | getBinVector (const double value=1.) |
| std::vector< double > | getSpectrumVector (const double value=1.) |
| SpectObj | extractSub (std::map< double, double >::const_iterator start, std::map< double, double >::const_iterator end) |
| SpectObj | SetSpectrum (double energy, double spectrum) |
| SpectObj | SetSpectrum (std::vector< double > energy, std::vector< double > spectrum) |
A Spectrum Object is basically a map containing in the first entry the energy and in the second entry the value of the spectrum. The spectrum is in