1#ifndef __JASTRONOMY__JGEN2__
2#define __JASTRONOMY__JGEN2__
49 return std::accumulate(this->begin(), this->end(), 0.0, [](
const double y,
const JPseudoExperiment& px) {
return y + px.
getSignal(); } );
70 virtual void set(
const double fS,
const double fB = 1.0)
override
120 for (
size_t i = 0; i != nb; ++i) {
122 const double X = gRandom->Uniform(0.0, B);
128 x += px.getBackground();
132 ps += px.run(out, 1);
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure to fit signal strength using likelihood ratio.
Auxiliary data structure to fit signal strength using likelihood ratio for multiple pseudo experiment...
virtual JAspera & getAspera() override
Get fit method.
virtual stats_type run(JAspera &out, const size_t nb) const
Generate background only pseudo experiment and transfer S/N values to fit method.
virtual stats_type run(JAspera &out) const
Generate pseudo experiment and transfer S/N values to fit method.
double getSignal() const
Get total signal.
virtual void set(const double fS, const double fB=1.0) override
Set scaling factors of signal and background strengths.
void configure(size_t N)
Configure lookup tables.
double getBackground() const
Get total background.
Statistics of pseudo experiment.
Auxiliary interface for pseudo experiment.
Pseudo experiment using CDF for combined generation and likelihood evaluation.
double getSignal() const
Get total signal.
double getBackground() const
Get total background.