#ifndef ENERGY_BINNING_H #define ENERGY_BINNING_H #include class EnergyBinning { public: EnergyBinning(double minimal_energy, double maximal_energy, int num_bins); EnergyBinning(std::vector energy_bin_borders); int bin(double energy_eV) const; int numBins() const; std::vector binBorders() const; int binIndexMin() const; int binIndexMax() const; private: const std::vector energy_bin_borders_; }; // do a seperate class for the pitchangles now (questionable if it's // sensible to have it in here) // might become unneccessary in the future once the option for a linear // binning in the EnergyBinning class is implemented class PitchAngleBinning { public: PitchAngleBinning(int num_bins); int bin(double pitch_angle) const; int numBins() const; std::vector binBorders() const; int binIndexMin() const; int binIndexMax() const; private: const std::vector pitch_angle_bin_borders_; }; #endif /* ENERGY_BINNING_H */