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

Definition at line 33 of file RooUnbinnedL.h.

Public Types

enum class  Extended { Auto , Yes , No }

Public Member Functions

 RooUnbinnedL (const RooUnbinnedL &other)
 RooUnbinnedL (RooAbsPdf *pdf, RooAbsData *data, RooAbsL::Extended extended=RooAbsL::Extended::Auto, RooFit::EvalBackend evalBackend=RooFit::EvalBackend::Legacy())
 ~RooUnbinnedL () override
virtual void constOptimizeTestStatistic (RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt)
 Interface function signaling a request to perform constant term optimization.
virtual double defaultErrorLevel () const
ROOT::Math::KahanSum< doubleevaluatePartition (Section events, std::size_t components_begin, std::size_t components_end) override
 Calculate and return likelihood on subset of data from firstEvent to lastEvent processed with a step size of 'stepSize'.
std::string GetClassName () const override
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.
bool setApplyWeightSquared (bool flag)
 Returns true if value was changed, false otherwise.
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 Attributes

bool _first = true
 !
std::stack< std::vector< double > > _vectorBuffers
bool apply_weight_squared = false
 Apply weights squared?
ROOT::Math::KahanSum< doublecachedResult_ {0.}
std::shared_ptr< RooFit::Evaluatorevaluator_
 ! For batched evaluation
Section lastSection_ = {0, 0}
std::unique_ptr< RooChangeTrackerparamTracker_

#include <RooFit/TestStatistics/RooUnbinnedL.h>

Inheritance diagram for RooFit::TestStatistics::RooUnbinnedL:
RooFit::TestStatistics::RooAbsL

Member Enumeration Documentation

◆ Extended

enum class RooFit::TestStatistics::RooAbsL::Extended
stronginherited
Enumerator
Auto 
Yes 
No 

Definition at line 35 of file RooAbsL.h.

Constructor & Destructor Documentation

◆ RooUnbinnedL() [1/2]

RooUnbinnedL::RooUnbinnedL ( RooAbsPdf * pdf,
RooAbsData * data,
RooAbsL::Extended extended = RooAbsL::Extended::Auto,
RooFit::EvalBackend evalBackend = RooFit::EvalBackend::Legacy() )

Definition at line 55 of file RooUnbinnedL.cxx.

◆ RooUnbinnedL() [2/2]

RooUnbinnedL::RooUnbinnedL ( const RooUnbinnedL & other)

Definition at line 74 of file RooUnbinnedL.cxx.

◆ ~RooUnbinnedL()

RooUnbinnedL::~RooUnbinnedL ( )
overridedefault

Member Function Documentation

◆ constOptimizeTestStatistic()

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

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
inlinevirtualinherited

Definition at line 124 of file RooAbsL.h.

◆ evaluatePartition()

ROOT::Math::KahanSum< double > RooUnbinnedL::evaluatePartition ( Section events,
std::size_t components_begin,
std::size_t components_end )
overridevirtual

Calculate and return likelihood on subset of data from firstEvent to lastEvent processed with a step size of 'stepSize'.

If this an extended likelihood and and the zero event is processed the extended term is added to the return likelihood.

Implements RooFit::TestStatistics::RooAbsL.

Definition at line 187 of file RooUnbinnedL.cxx.

◆ GetClassName()

std::string RooFit::TestStatistics::RooUnbinnedL::GetClassName ( ) const
inlineoverridevirtual

Implements RooFit::TestStatistics::RooAbsL.

Definition at line 44 of file RooUnbinnedL.h.

◆ GetInfo()

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

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 120 of file RooAbsL.h.

◆ GetName()

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

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 287 of file RooAbsL.cxx.

◆ getNComponents()

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

Definition at line 131 of file RooAbsL.h.

◆ getNEvents()

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

Definition at line 130 of file RooAbsL.h.

◆ getParameters()

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

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 238 of file RooAbsL.cxx.

◆ GetTitle()

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

Reimplemented in RooFit::TestStatistics::RooSubsidiaryL.

Definition at line 294 of file RooAbsL.cxx.

◆ initClones()

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

Definition at line 125 of file RooAbsL.cxx.

◆ isExtended()

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

Definition at line 132 of file RooAbsL.h.

◆ isExtendedHelper()

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

Definition at line 35 of file RooAbsL.cxx.

◆ numDataEntries()

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

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.

◆ setApplyWeightSquared()

bool RooUnbinnedL::setApplyWeightSquared ( bool flag)

Returns true if value was changed, false otherwise.

Definition at line 90 of file RooUnbinnedL.cxx.

◆ setSimCount()

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

Definition at line 133 of file RooAbsL.h.

Member Data Documentation

◆ _first

bool RooFit::TestStatistics::RooUnbinnedL::_first = true
mutableprivate

!

Definition at line 48 of file RooUnbinnedL.h.

◆ _vectorBuffers

std::stack<std::vector<double> > RooFit::TestStatistics::RooUnbinnedL::_vectorBuffers
private

Definition at line 53 of file RooUnbinnedL.h.

◆ apply_weight_squared

bool RooFit::TestStatistics::RooUnbinnedL::apply_weight_squared = false
private

Apply weights squared?

Definition at line 47 of file RooUnbinnedL.h.

◆ cachedResult_

ROOT::Math::KahanSum<double> RooFit::TestStatistics::RooUnbinnedL::cachedResult_ {0.}
mutableprivate

Definition at line 51 of file RooUnbinnedL.h.

◆ data_

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

Definition at line 143 of file RooAbsL.h.

◆ evaluator_

std::shared_ptr<RooFit::Evaluator> RooFit::TestStatistics::RooUnbinnedL::evaluator_
private

! For batched evaluation

Definition at line 52 of file RooUnbinnedL.h.

◆ extended_

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

Definition at line 149 of file RooAbsL.h.

◆ lastSection_

Section RooFit::TestStatistics::RooUnbinnedL::lastSection_ = {0, 0}
private

Definition at line 50 of file RooUnbinnedL.h.

◆ N_components_

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

Definition at line 147 of file RooAbsL.h.

◆ N_events_

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

Definition at line 146 of file RooAbsL.h.

◆ normSet_

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

Pointer to set with observables used for normalization.

Definition at line 144 of file RooAbsL.h.

◆ paramTracker_

std::unique_ptr<RooChangeTracker> RooFit::TestStatistics::RooUnbinnedL::paramTracker_
private

Definition at line 49 of file RooUnbinnedL.h.

◆ pdf_

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

Definition at line 142 of file RooAbsL.h.

◆ sim_count_

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

Definition at line 151 of file RooAbsL.h.


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