Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#ifndef ENERGY_BINNING_H
|
||||
#define ENERGY_BINNING_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
class EnergyBinning {
|
||||
public:
|
||||
EnergyBinning(double minimal_energy, double maximal_energy, int num_bins);
|
||||
EnergyBinning(std::vector<double> energy_bin_borders);
|
||||
|
||||
int bin(double energy_eV) const;
|
||||
int numBins() const;
|
||||
std::vector<double> binBorders() const;
|
||||
int binIndexMin() const;
|
||||
int binIndexMax() const;
|
||||
|
||||
private:
|
||||
const std::vector<double> energy_bin_borders_;
|
||||
};
|
||||
|
||||
#endif /* ENERGY_BINNING_H */
|
||||
Reference in New Issue
Block a user