37 EnergyMesh(
double femin,
double femax,
long fq);
42 inline long get_q()
const {
return q; }
44 inline double get_emin()
const {
return emin; }
46 inline double get_emax()
const {
return emax; }
48 inline double get_e(
long n)
const {
return e[n]; }
50 inline double get_ec(
long n)
const {
return ec[n]; }
52 inline const double*
get_ae(
void)
const {
return e; }
54 inline const double*
get_aec(
void)
const {
return ec; }
61 void print(std::ostream& file,
int l)
const;
65 static const int pqener = 1001;
75 double ec[pqener - 1];
const double * get_ae(void) const
Return all left sides.
void print(std::ostream &file, int l) const
double get_emin() const
Return left side of the first bin.
EnergyMesh * copy() const
long get_q() const
Return number of bins.
friend std::ostream & operator<<(std::ostream &file, EnergyMesh &f)
double get_emax() const
Return right side of the last bin.
EnergyMesh()=default
Default constructor.
const double * get_aec(void) const
Return all interval centres.
double get_ec(long n) const
Return center of a given bin.
double get_e(long n) const
Return left side of a given bin.
long get_interval_number_between_centers(const double ener) const
long get_interval_number(const double ener) const