ra4_stats  0341147a0dc35f80f4e12c6003afb76a38e2ed6e
gamma_params.hpp
Go to the documentation of this file.
1 #ifndef H_GAMMA_PARAM
2 #define H_GAMMA_PARAM
3 
4 #include <ostream>
5 
6 class GammaParams{
7 public:
8  GammaParams();
9  GammaParams(double n_effective, double weight);
10 
11  void SetNEffectiveAndWeight(double n_effective, double weight);
12  void SetYieldAndUncertainty(double yield, double uncertainty);
13 
14  double Yield() const;
15  void Yield(double yield);
16 
17  double Uncertainty() const;
18  void Uncertainty(double uncertainty);
19 
20  double NEffective() const;
21  void NEffective(double n_effective);
22 
23  double Weight() const;
24  void Weight(double weight);
25 
26  double CorrectedUncertainty() const;
27 
28  GammaParams & operator+=(const GammaParams &gp);
29  GammaParams & operator*=(double scale);
30 
31 private:
33 };
34 
36 GammaParams operator*(double scale, GammaParams gp);
37 GammaParams operator*(GammaParams gp, double scale);
38 std::ostream & operator<<(std::ostream &stream, const GammaParams &gp);
39 
40 #endif
double Weight() const
double weight_
double CorrectedUncertainty() const
GammaParams & operator+=(const GammaParams &gp)
void SetYieldAndUncertainty(double yield, double uncertainty)
GammaParams & operator*=(double scale)
double Yield() const
double n_effective_
std::ostream & operator<<(std::ostream &stream, const GammaParams &gp)
double Uncertainty() const
double NEffective() const
GammaParams operator*(double scale, GammaParams gp)
GammaParams operator+(GammaParams gp1, GammaParams gp2)
void SetNEffectiveAndWeight(double n_effective, double weight)