13#ifndef ROOT_ROOFIT_TESTSTATISTICS_RooAbsL
14#define ROOT_ROOFIT_TESTSTATISTICS_RooAbsL
31namespace TestStatistics {
52 RooAbsL(std::shared_ptr<RooAbsPdf> pdf, std::shared_ptr<RooAbsData>
data, std::size_t
N_events,
69 throw std::domain_error(
"Invalid input values for section; begin must be >= 0, end <= 1 and begin < end.");
86 return lhs.begin_fraction ==
rhs.begin_fraction &&
lhs.end_fraction ==
rhs.end_fraction;
118 virtual std::string
GetName()
const;
119 virtual std::string
GetTitle()
const;
142 std::shared_ptr<RooAbsPdf>
pdf_;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
The Kahan summation is a compensated summation algorithm, which significantly reduces numerical error...
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
Convenience wrapper class used to distinguish between pdf/data owning and non-owning constructors.
ClonePdfData(RooAbsPdf *inPdf, RooAbsData *inData)
std::shared_ptr< RooAbsPdf > ownedPdf
ClonePdfData(std::unique_ptr< RooAbsPdf > inPdf, RooAbsData *inData)
virtual double defaultErrorLevel() const
std::shared_ptr< RooAbsData > data_
std::size_t getNComponents() const
virtual std::string GetClassName() const =0
std::size_t N_components_
virtual ROOT::Math::KahanSum< double > evaluatePartition(Section events, std::size_t components_begin, std::size_t components_end)=0
virtual ~RooAbsL()=default
static bool isExtendedHelper(RooAbsPdf *pdf, Extended extended)
virtual std::string GetInfo() const
virtual std::string GetName() const
virtual std::string GetTitle() const
std::unique_ptr< RooArgSet > normSet_
Pointer to set with observables used for normalization.
void initClones(RooAbsPdf &inpdf, RooAbsData &indata)
virtual std::unique_ptr< RooArgSet > getParameters()
virtual void constOptimizeTestStatistic(RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt)
Interface function signaling a request to perform constant term optimization.
void setSimCount(std::size_t value)
RooAbsL(std::shared_ptr< RooAbsPdf > pdf, std::shared_ptr< RooAbsData > data, std::size_t N_events, std::size_t N_components, Extended extended)
After handling cloning (or not) of the pdf and dataset, the public constructors call this private con...
virtual std::size_t numDataEntries() const
Number of dataset entries.
std::size_t getNEvents() const
std::shared_ptr< RooAbsPdf > pdf_
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
A part of some range delimited by two fractional points between 0 and 1 (inclusive).
std::size_t begin(std::size_t N_total) const
std::size_t end(std::size_t N_total) const
friend bool operator==(const Section &lhs, const Section &rhs)
Section(double begin, double end)