Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RooFit::TestStatistics::RooAbsL Class Referenceabstract

Definition at line 33 of file RooAbsL.h.

Classes

class  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.
 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.
virtual ~RooAbsL ()=default
virtual void constOptimizeTestStatistic (RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt)
 Interface function signaling a request to perform constant term optimization.
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 GetClassName () const =0
virtual std::string GetInfo () const
virtual std::string GetName () const
std::size_t getNComponents () const
std::size_t getNEvents () const
virtual std::unique_ptr< 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.
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_
 Pointer to set with observables used for normalization.
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.

#include <RooFit/TestStatistics/RooAbsL.h>

Inheritance diagram for RooFit::TestStatistics::RooAbsL:
RooFit::TestStatistics::RooBinnedL RooFit::TestStatistics::RooSubsidiaryL RooFit::TestStatistics::RooSumL RooFit::TestStatistics::RooUnbinnedL

Member Enumeration Documentation

◆ Extended

Enumerator
Auto 
Yes 
No 

Definition at line 35 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 55 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 100 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 81 of file RooAbsL.cxx.

◆ RooAbsL() [4/4]

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

Definition at line 107 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 243 of file RooAbsL.cxx.

◆ defaultErrorLevel()

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

Definition at line 124 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

◆ GetClassName()

virtual std::string RooFit::TestStatistics::RooAbsL::GetClassName ( ) const
pure virtual

◆ GetInfo()

virtual std::string RooFit::TestStatistics::RooAbsL::GetInfo ( ) const
inlinevirtual

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 120 of file RooAbsL.h.

◆ GetName()

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

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 287 of file RooAbsL.cxx.

◆ getNComponents()

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

Definition at line 131 of file RooAbsL.h.

◆ getNEvents()

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

Definition at line 130 of file RooAbsL.h.

◆ getParameters()

std::unique_ptr< RooArgSet > RooFit::TestStatistics::RooAbsL::getParameters ( )
virtual

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 238 of file RooAbsL.cxx.

◆ GetTitle()

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

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 294 of file RooAbsL.cxx.

◆ initClones()

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

Definition at line 125 of file RooAbsL.cxx.

◆ isExtended()

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

Definition at line 132 of file RooAbsL.h.

◆ isExtendedHelper()

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

Definition at line 35 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 301 of file RooAbsL.cxx.

◆ setSimCount()

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

Definition at line 133 of file RooAbsL.h.

Member Data Documentation

◆ data_

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

Definition at line 143 of file RooAbsL.h.

◆ extended_

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

Definition at line 149 of file RooAbsL.h.

◆ N_components_

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

Definition at line 147 of file RooAbsL.h.

◆ N_events_

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

Definition at line 146 of file RooAbsL.h.

◆ normSet_

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

Pointer to set with observables used for normalization.

Definition at line 144 of file RooAbsL.h.

◆ pdf_

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

Definition at line 142 of file RooAbsL.h.

◆ sim_count_

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

Definition at line 151 of file RooAbsL.h.


The documentation for this class was generated from the following files:
  • roofit/roofitcore/inc/RooFit/TestStatistics/RooAbsL.h
  • roofit/roofitcore/src/TestStatistics/RooAbsL.cxx