Implemented pitch angle resolution.
Still includes (and uses) the non-pitch angle resolved fields as well; have to be either removed completely or refactored s.t. one of the two options is chosen. Pitch angle distribution has a hardcoded number of bins for now, and exists in 'energy_binning.h'
This commit is contained in:
@@ -18,4 +18,22 @@ class EnergyBinning {
|
||||
const std::vector<double> 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<double> binBorders() const;
|
||||
int binIndexMin() const;
|
||||
int binIndexMax() const;
|
||||
|
||||
private:
|
||||
const std::vector<double> pitch_angle_bin_borders_;
|
||||
};
|
||||
|
||||
#endif /* ENERGY_BINNING_H */
|
||||
|
||||
Reference in New Issue
Block a user