22namespace TestStatistics {
35 std::shared_ptr<WrapperCalculationCleanFlags> calculation_is_clean,
56 std::unique_ptr<RooArgSet> vars{
likelihood_->getParameters()};
90 for (std::size_t comp_ix = 0; comp_ix <
likelihood_->getNComponents(); ++comp_ix) {
91 auto component_result =
likelihood_->evaluatePartition({0, 1}, comp_ix, comp_ix + 1);
97 result += component_result;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
The Kahan summation is a compensated summation algorithm, which significantly reduces numerical error...
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
void logEvalError(const char *message, const char *serverValueString=nullptr) const
Log evaluation error message.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgList _saveVars
Copy of variables.
void evaluate() override
Triggers (possibly asynchronous) evaluation of the likelihood.
ROOT::Math::KahanSum< double > result
void initVars()
Helper function for the constructor.
RooArgList _vars
Variables.
LikelihoodSerial(std::shared_ptr< RooAbsL > _likelihood, std::shared_ptr< WrapperCalculationCleanFlags > calculation_is_clean, SharedOffset offset)
Virtual base class for implementation of likelihood calculation strategies.
std::shared_ptr< RooAbsL > likelihood_
SharedOffset shared_offset_
virtual std::string GetName() const
OffsettingMode offsetting_mode_
void calculate_offsets()
(Re)calculate (on each worker) all component offsets.
LikelihoodType likelihood_type_
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Little struct that can pack a float into the unused bits of the mantissa of a NaN double.
float getPayload() const
Retrieve packed float.
double getNaNWithPayload() const
Retrieve a NaN with the current float payload packed into the mantissa.
void accumulate(double val)
Accumulate a packed float from another NaN into this.