20 void Yield(
double yield);
29 void Weight(
double weight);
double Weight() const
Get the effective weight for the sample.
double CorrectedUncertainty() const
Get the "sqrt(N+1)"-like uncertainty on the yield/rate.
Represents a yield and uncertainty obtained by counting weighted events.
GammaParams & operator+=(const GammaParams &gp)
Adds another GammaParams to *this.
void SetYieldAndUncertainty(double yield, double uncertainty)
Sets GammaParams by yield and uncertainty.
GammaParams & operator*=(double scale)
Scale/multiply *this by a constant.
GammaParams()
Standard constructor initializing to unweighted count = 0, weight = 0.
double Yield() const
Get the yield/rate.
std::ostream & operator<<(std::ostream &stream, const GammaParams &gp)
Print GammaParams to output stream.
GammaParams & operator=(const GammaParams &)=default
double Uncertainty() const
Get the "sqrt(N)"-like uncertainty on the yield/rate.
double NEffective() const
Get the effective number of unweighted events.
GammaParams operator*(double scale, GammaParams gp)
Scale/multiply a GammaParams by a constant on the left.
GammaParams operator+(GammaParams gp1, GammaParams gp2)
Add two GammaParams.
void SetNEffectiveAndWeight(double n_effective, double weight)
Sets GammaParams by unweighted event count and weight.