BinnedSpectrum::BinnedSpectrum(const BinnedSpectrum& source) :
   bin_spread_(source.getBinSpread()), bin_size_(source.getBinSize()), bins_(source.getBins()), raw_spec_(source.raw_spec_)
 {
 }
 //yields false if given BinnedSpectrum size or spread differs from this one (comparing those might crash)
 bool BinnedSpectrum::checkCompliance(const BinnedSpectrum& bs) const
 {
   return (this->bin_size_ == bs.getBinSize()) &&
          (this->bin_spread_ == bs.getBinSpread());
 }