Logo ROOT  
Reference Guide
RooFit::TestStatistics::RooAbsL Class Referenceabstract

Definition at line 36 of file RooAbsL.h.

Classes

struct  ClonePdfData
 Convenience wrapper class used to distinguish between pdf/data owning and non-owning constructors. More...
 
struct  Section
 A part of some range delimited by two fractional points between 0 and 1 (inclusive). More...
 

Public Types

enum class  Extended { Auto , Yes , No }
 

Public Member Functions

 RooAbsL (ClonePdfData in, std::size_t N_events, std::size_t N_components, Extended extended=Extended::Auto)
 Constructor that clones the pdf/data and owns those cloned copies. More...
 
 RooAbsL (const RooAbsL &other)
 
 RooAbsL (RooAbsPdf *pdf, RooAbsData *data, std::size_t N_events, std::size_t N_components, Extended extended=Extended::Auto)
 Constructor that does not clone pdf/data and uses the shared_ptr aliasing constructor to make it non-owning. More...
 
virtual ~RooAbsL ()=default
 
virtual void constOptimizeTestStatistic (RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt)
 Interface function signaling a request to perform constant term optimization. More...
 
virtual double defaultErrorLevel () const
 
virtual ROOT::Math::KahanSum< doubleevaluatePartition (Section events, std::size_t components_begin, std::size_t components_end)=0
 
virtual std::string GetName () const
 
std::size_t getNComponents () const
 
std::size_t getNEvents () const
 
virtual RooArgSetgetParameters ()
 
virtual std::string GetTitle () const
 
void initClones (RooAbsPdf &inpdf, RooAbsData &indata)
 
bool isExtended () const
 
virtual std::size_t numDataEntries () const
 Number of dataset entries. More...
 
void setSimCount (std::size_t value)
 

Static Public Member Functions

static bool isExtendedHelper (RooAbsPdf *pdf, Extended extended)
 

Protected Attributes

std::shared_ptr< RooAbsDatadata_
 
bool extended_ = false
 
std::size_t N_components_ = 1
 
std::size_t N_events_ = 1
 
std::unique_ptr< RooArgSetnormSet_
 
std::shared_ptr< RooAbsPdfpdf_
 
std::size_t sim_count_ = 1
 

Private Member Functions

 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 constructor to handle common tasks. More...
 

#include <TestStatistics/RooAbsL.h>

Inheritance diagram for RooFit::TestStatistics::RooAbsL:
[legend]

Member Enumeration Documentation

◆ Extended

Enumerator
Auto 
Yes 
No 

Definition at line 38 of file RooAbsL.h.

Constructor & Destructor Documentation

◆ RooAbsL() [1/4]

RooFit::TestStatistics::RooAbsL::RooAbsL ( std::shared_ptr< RooAbsPdf pdf,
std::shared_ptr< RooAbsData data,
std::size_t  N_events,
std::size_t  N_components,
Extended  extended 
)
private

After handling cloning (or not) of the pdf and dataset, the public constructors call this private constructor to handle common tasks.

Definition at line 58 of file RooAbsL.cxx.

◆ RooAbsL() [2/4]

RooFit::TestStatistics::RooAbsL::RooAbsL ( RooAbsPdf inpdf,
RooAbsData indata,
std::size_t  N_events,
std::size_t  N_components,
Extended  extended = Extended::Auto 
)

Constructor that does not clone pdf/data and uses the shared_ptr aliasing constructor to make it non-owning.

This constructor is used for classes where a reference to the external pdf/dataset is good enough (RooSumL and RooSubsidiaryL).

Parameters
inpdfRaw pointer to the pdf.
indataRaw pointer to the dataset.
N_eventsThe number of events in this likelihood's dataset.
N_componentsThe number of components in the likelihood.
extendedSet extended term calculation on, off or use Extended::Auto to determine automatically based on the pdf whether to activate or not.

Definition at line 96 of file RooAbsL.cxx.

◆ RooAbsL() [3/4]

RooFit::TestStatistics::RooAbsL::RooAbsL ( RooAbsL::ClonePdfData  in,
std::size_t  N_events,
std::size_t  N_components,
Extended  extended = Extended::Auto 
)

Constructor that clones the pdf/data and owns those cloned copies.

This constructor is used for classes that need a pdf/data clone (RooBinnedL and RooUnbinnedL).

Parameters
inStruct containing raw pointers to the pdf and dataset that are to be cloned.
N_eventsThe number of events in this likelihood's dataset.
N_componentsThe number of components in the likelihood.
extendedSet extended term calculation on, off or use Extended::Auto to determine automatically based on the pdf whether to activate or not.

Definition at line 80 of file RooAbsL.cxx.

◆ RooAbsL() [4/4]

RooFit::TestStatistics::RooAbsL::RooAbsL ( const RooAbsL other)

Definition at line 102 of file RooAbsL.cxx.

◆ ~RooAbsL()

virtual RooFit::TestStatistics::RooAbsL::~RooAbsL ( )
virtualdefault

Member Function Documentation

◆ constOptimizeTestStatistic()

void RooFit::TestStatistics::RooAbsL::constOptimizeTestStatistic ( RooAbsArg::ConstOpCode  opcode,
bool  doAlsoTrackingOpt 
)
virtual

Interface function signaling a request to perform constant term optimization.

The default implementation takes no action other than to forward the calls to all servers. May be overridden in likelihood classes without a cached dataset, like RooSubsidiaryL.

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL, and RooFit::TestStatistics::RooSumL.

Definition at line 226 of file RooAbsL.cxx.

◆ defaultErrorLevel()

virtual double RooFit::TestStatistics::RooAbsL::defaultErrorLevel ( ) const
inlinevirtual

Definition at line 115 of file RooAbsL.h.

◆ evaluatePartition()

virtual ROOT::Math::KahanSum< double > RooFit::TestStatistics::RooAbsL::evaluatePartition ( Section  events,
std::size_t  components_begin,
std::size_t  components_end 
)
pure virtual

◆ GetName()

std::string RooFit::TestStatistics::RooAbsL::GetName ( ) const
virtual

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 234 of file RooAbsL.cxx.

◆ getNComponents()

std::size_t RooFit::TestStatistics::RooAbsL::getNComponents ( ) const
inline

Definition at line 122 of file RooAbsL.h.

◆ getNEvents()

std::size_t RooFit::TestStatistics::RooAbsL::getNEvents ( ) const
inline

Definition at line 121 of file RooAbsL.h.

◆ getParameters()

RooArgSet * RooFit::TestStatistics::RooAbsL::getParameters ( )
virtual

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 220 of file RooAbsL.cxx.

◆ GetTitle()

std::string RooFit::TestStatistics::RooAbsL::GetTitle ( ) const
virtual

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 241 of file RooAbsL.cxx.

◆ initClones()

void RooFit::TestStatistics::RooAbsL::initClones ( RooAbsPdf inpdf,
RooAbsData indata 
)

Definition at line 114 of file RooAbsL.cxx.

◆ isExtended()

bool RooFit::TestStatistics::RooAbsL::isExtended ( ) const
inline

Definition at line 123 of file RooAbsL.h.

◆ isExtendedHelper()

bool RooFit::TestStatistics::RooAbsL::isExtendedHelper ( RooAbsPdf pdf,
Extended  extended 
)
static

Definition at line 39 of file RooAbsL.cxx.

◆ numDataEntries()

std::size_t RooFit::TestStatistics::RooAbsL::numDataEntries ( ) const
virtual

Number of dataset entries.

Typically equal to the number of dataset events, except in RooSubsidiaryL, which has no events.

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 248 of file RooAbsL.cxx.

◆ setSimCount()

void RooFit::TestStatistics::RooAbsL::setSimCount ( std::size_t  value)
inline

Definition at line 124 of file RooAbsL.h.

Member Data Documentation

◆ data_

std::shared_ptr<RooAbsData> RooFit::TestStatistics::RooAbsL::data_
protected

Definition at line 134 of file RooAbsL.h.

◆ extended_

bool RooFit::TestStatistics::RooAbsL::extended_ = false
protected

Definition at line 140 of file RooAbsL.h.

◆ N_components_

std::size_t RooFit::TestStatistics::RooAbsL::N_components_ = 1
protected

Definition at line 138 of file RooAbsL.h.

◆ N_events_

std::size_t RooFit::TestStatistics::RooAbsL::N_events_ = 1
protected

Definition at line 137 of file RooAbsL.h.

◆ normSet_

std::unique_ptr<RooArgSet> RooFit::TestStatistics::RooAbsL::normSet_
protected

Definition at line 135 of file RooAbsL.h.

◆ pdf_

std::shared_ptr<RooAbsPdf> RooFit::TestStatistics::RooAbsL::pdf_
protected

Definition at line 133 of file RooAbsL.h.

◆ sim_count_

std::size_t RooFit::TestStatistics::RooAbsL::sim_count_ = 1
protected

Definition at line 142 of file RooAbsL.h.

Libraries for RooFit::TestStatistics::RooAbsL:
[legend]

The documentation for this class was generated from the following files: