Logo ROOT  
Reference Guide
RooFit::TestStatistics::RooUnbinnedL Class Reference

Definition at line 32 of file RooUnbinnedL.h.

Public Member Functions

 RooUnbinnedL (const RooUnbinnedL &other)
 
 RooUnbinnedL (RooAbsPdf *pdf, RooAbsData *data, RooAbsL::Extended extended=RooAbsL::Extended::Auto, bool useBatchedEvaluations=false)
 
 ~RooUnbinnedL ()
 
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'. More...
 
virtual std::string GetClassName () const override
 
bool setApplyWeightSquared (bool flag)
 Returns true if value was changed, false otherwise. More...
 
void setUseBatchedEvaluations (bool flag)
 
- Public Member Functions inherited from RooFit::TestStatistics::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. 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 GetClassName () const =0
 
virtual std::string GetInfo () const
 
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)
 

Private Attributes

bool _first = true
 ! More...
 
bool apply_weight_squared = false
 Apply weights squared? More...
 
ROOT::Math::KahanSum< doublecachedResult_ = 0
 
Section lastSection_ = {0, 0}
 
std::unique_ptr< RooChangeTrackerparamTracker_
 
bool useBatchedEvaluations_ = false
 

Additional Inherited Members

- Public Types inherited from RooFit::TestStatistics::RooAbsL
enum class  Extended { Auto , Yes , No }
 
- Static Public Member Functions inherited from RooFit::TestStatistics::RooAbsL
static bool isExtendedHelper (RooAbsPdf *pdf, Extended extended)
 
- Protected Attributes inherited from RooFit::TestStatistics::RooAbsL
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. More...
 
std::shared_ptr< RooAbsPdfpdf_
 
std::size_t sim_count_ = 1
 

#include <RooFit/TestStatistics/RooUnbinnedL.h>

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

Constructor & Destructor Documentation

◆ RooUnbinnedL() [1/2]

RooUnbinnedL::RooUnbinnedL ( RooAbsPdf pdf,
RooAbsData data,
RooAbsL::Extended  extended = RooAbsL::Extended::Auto,
bool  useBatchedEvaluations = false 
)

Definition at line 39 of file RooUnbinnedL.cxx.

◆ RooUnbinnedL() [2/2]

RooUnbinnedL::RooUnbinnedL ( const RooUnbinnedL other)

Definition at line 48 of file RooUnbinnedL.cxx.

◆ ~RooUnbinnedL()

RooUnbinnedL::~RooUnbinnedL ( )
default

Member Function Documentation

◆ 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 82 of file RooUnbinnedL.cxx.

◆ GetClassName()

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

Implements RooFit::TestStatistics::RooAbsL.

Definition at line 45 of file RooUnbinnedL.h.

◆ setApplyWeightSquared()

bool RooUnbinnedL::setApplyWeightSquared ( bool  flag)

Returns true if value was changed, false otherwise.

Definition at line 61 of file RooUnbinnedL.cxx.

◆ setUseBatchedEvaluations()

void RooUnbinnedL::setUseBatchedEvaluations ( bool  flag)

Definition at line 71 of file RooUnbinnedL.cxx.

Member Data Documentation

◆ _first

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

!

Definition at line 49 of file RooUnbinnedL.h.

◆ apply_weight_squared

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

Apply weights squared?

Definition at line 48 of file RooUnbinnedL.h.

◆ cachedResult_

ROOT::Math::KahanSum<double> RooFit::TestStatistics::RooUnbinnedL::cachedResult_ = 0
mutableprivate

Definition at line 53 of file RooUnbinnedL.h.

◆ lastSection_

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

Definition at line 52 of file RooUnbinnedL.h.

◆ paramTracker_

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

Definition at line 51 of file RooUnbinnedL.h.

◆ useBatchedEvaluations_

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

Definition at line 50 of file RooUnbinnedL.h.

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

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