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:
2024-10-28 15:00:19 +01:00
parent b4cbd8c44c
commit 5fc227e1b1
24 changed files with 1126 additions and 42 deletions
+18
View File
@@ -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 */