|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #ifndef APWeightSumEnsemble_h
19 #define APWeightSumEnsemble_h
double GetQuantile(const double prob)
Returns the quantlile for p=prob for the distribution.
TH1F * GetPDF()
Returns the calculated PDF.
double m_rel_prec
Holds the relative precision of the gaussian fit to stop the ensemble test at.
double m_ensemble_sigma
Holds the standard deviation from ensemble test.
void SetRelPrecision(double rel_prec)
Sets the relative precision of the gaussian fit to stop the ensemble test at.
bool m_ensembleTest_done
Flag if the ensemble test has been performed with the current set of weights.
double GetRandom()
Returns a random value according to the pdf.
std::vector< APWeightEntry * > m_current_evt_pdfs
Holds the weight objects for the current event.
APWeightSumEnsemble()
Default constructor.
double GetEnsemblePDFMode()
Returns the Mode (= sum of weights from PDF).
void AddWeightToEvt(APWeightEntry *weight)
Adds a weight to the sum of weights.
std::vector< double > m_ext_weights
Holds the external event weight provided when finishing the respective events.
virtual ~APWeightSumEnsemble()
Default destructor.
TH1F * m_pdf
Holds the TH1F instance from the arrays if computed.
double GetEnsemblePDFStdDev()
Returns the standard deviation from PDF .
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
void FinishEvt(double ext_weight=1.0)
Finishes the current event and calculates the event weight.
double m_ensemble_mode
Holds the Mode (= sum of weights from PDF) from ensemble test.
ClassDef(APWeightSumEnsemble, 1) private std::vector< std::vector< APWeightEntry * > > m_weight_vector
< Performs the ensemble test to model final PDF.