Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooNLLVar.h File Reference
#include "RooAbsOptTestStatistic.h"
#include "RooCmdArg.h"
#include "RooAbsPdf.h"
#include <vector>
#include <utility>
Include dependency graph for RooNLLVar.h:
This graph shows which files directly or indirectly include this file:

Classes

class  RooNLLVar
 Implements a -log(likelihood) calculation from a dataset and a PDF. More...
 

Typedefs

using ComputeResult = std::pair< ROOT::Math::KahanSum< double >, double >
 

Functions

 ~RooNLLVar () override
 
void applyWeightSquared (bool flag) override
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
TObjectclone (const char *newname) const override
 
ComputeResult computeScalar (std::size_t stepSize, std::size_t firstEvent, std::size_t lastEvent) const
 
static RooNLLVar::ComputeResult computeScalarFunc (const RooAbsPdf *pdfClone, RooAbsData *dataClone, RooArgSet *normSet, bool weightSq, std::size_t stepSize, std::size_t firstEvent, std::size_t lastEvent, RooAbsPdf const *offsetPdf=nullptr)
 
RooAbsTestStatisticcreate (const char *name, const char *title, RooAbsReal &pdf, RooAbsData &adata, const RooArgSet &projDeps, RooAbsTestStatistic::Configuration const &cfg) override
 
static const char * DeclFileName ()
 
double defaultErrorLevel () const override
 
void enableBinOffsetting (bool on=true)
 
double evaluatePartition (std::size_t firstEvent, std::size_t lastEvent, std::size_t stepSize) const override
 
TClassIsA () const override
 
bool processEmptyDataSets () const override
 
RooNLLVar RooAbsOptTestStatistic R__DEPRECATED (6, 34, "Please use RooAbsPdf::createNLL() to create likelihood objects")
 
 RooNLLVar (const char *name, const char *title, RooAbsPdf &pdf, RooAbsData &data, bool extended, RooAbsTestStatistic::Configuration const &cfg=RooAbsTestStatistic::Configuration{})
 
 RooNLLVar (const char *name, const char *title, RooAbsPdf &pdf, RooAbsData &data, const RooArgSet &projDeps, bool extended=false, RooAbsTestStatistic::Configuration const &cfg=RooAbsTestStatistic::Configuration{})
 
 RooNLLVar (const RooNLLVar &other, const char *name=nullptr)
 
bool setDataSlave (RooAbsData &data, bool cloneData=true, bool ownNewDataAnyway=false) override
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Variables

RooAbsPdf_binnedPdf {nullptr}
 !
 
std::vector< double_binw
 !
 
bool _doBinOffset {false}
 
static RooArgSet _emptySet
 
bool _extended {false}
 
bool _first {true}
 !
 
std::unique_ptr< RooAbsPdf_offsetPdf
 ! An optional per-bin likelihood offset
 
ROOT::Math::KahanSum< double_offsetSaveW2 {0.0}
 !
 
bool _weightSq {false}
 Apply weights squared?
 

Typedef Documentation

◆ ComputeResult

Definition at line 25 of file RooNLLVar.h.

Function Documentation

◆ ~RooNLLVar()

R__DEPRECATED::~RooNLLVar ( )
override

◆ applyWeightSquared()

void R__DEPRECATED::applyWeightSquared ( bool  flag)
override

◆ Class()

static TClass * R__DEPRECATED::Class ( )
static
Returns
TClass describing this class

Definition at line 29 of file Class.C.

◆ Class_Name()

static const char * R__DEPRECATED::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t R__DEPRECATED::Class_Version ( )
staticconstexpr
Returns
Version of this class

Definition at line 53 of file RooNLLVar.h.

◆ clone()

TObject * R__DEPRECATED::clone ( const char *  newname) const
override

Definition at line 12 of file RooNLLVar.h.

◆ computeScalar()

ComputeResult R__DEPRECATED::computeScalar ( std::size_t  stepSize,
std::size_t  firstEvent,
std::size_t  lastEvent 
) const
private

◆ computeScalarFunc()

static RooNLLVar::ComputeResult R__DEPRECATED::computeScalarFunc ( const RooAbsPdf pdfClone,
RooAbsData dataClone,
RooArgSet normSet,
bool  weightSq,
std::size_t  stepSize,
std::size_t  firstEvent,
std::size_t  lastEvent,
RooAbsPdf const *  offsetPdf = nullptr 
)
static

◆ create()

RooAbsTestStatistic * R__DEPRECATED::create ( const char *  name,
const char *  title,
RooAbsReal pdf,
RooAbsData adata,
const RooArgSet projDeps,
RooAbsTestStatistic::Configuration const &  cfg 
)
override

Definition at line 11 of file RooChi2Var.h.

◆ DeclFileName()

static const char * R__DEPRECATED::DeclFileName ( )
static
Returns
Name of the file containing the class declaration

Definition at line 53 of file RooNLLVar.h.

◆ defaultErrorLevel()

double R__DEPRECATED::defaultErrorLevel ( ) const
override

Definition at line 21 of file RooNLLVar.h.

◆ enableBinOffsetting()

void R__DEPRECATED::enableBinOffsetting ( bool  on = true)

◆ evaluatePartition()

double R__DEPRECATED::evaluatePartition ( std::size_t  firstEvent,
std::size_t  lastEvent,
std::size_t  stepSize 
) const
overrideprotected

◆ IsA()

TClass * R__DEPRECATED::IsA ( ) const
override
Returns
TClass describing current object

Definition at line 53 of file RooNLLVar.h.

◆ processEmptyDataSets()

bool R__DEPRECATED::processEmptyDataSets ( ) const
overrideprotected

Definition at line 35 of file RooNLLVar.h.

◆ R__DEPRECATED()

RooNLLVar RooAbsOptTestStatistic R__DEPRECATED ( ,
34  ,
"Please use RooAbsPdf::createNLL() to create likelihood objects"   
)

◆ RooNLLVar() [1/3]

R__DEPRECATED::RooNLLVar ( const char *  name,
const char *  title,
RooAbsPdf pdf,
RooAbsData data,
bool  extended,
RooAbsTestStatistic::Configuration const &  cfg = RooAbsTestStatistic::Configuration{} 
)

◆ RooNLLVar() [2/3]

R__DEPRECATED::RooNLLVar ( const char *  name,
const char *  title,
RooAbsPdf pdf,
RooAbsData data,
const RooArgSet projDeps,
bool  extended = false,
RooAbsTestStatistic::Configuration const &  cfg = RooAbsTestStatistic::Configuration{} 
)

◆ RooNLLVar() [3/3]

R__DEPRECATED::RooNLLVar ( const RooNLLVar other,
const char *  name = nullptr 
)

◆ setDataSlave()

bool R__DEPRECATED::setDataSlave ( RooAbsData data,
bool  cloneData = true,
bool  ownNewDataAnyway = false 
)
override

Definition at line 92 of file RooAbsTestStatistic.h.

◆ Streamer()

void R__DEPRECATED::Streamer ( TBuffer )
override

◆ StreamerNVirtual()

void R__DEPRECATED::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)

Definition at line 53 of file RooNLLVar.h.

Variable Documentation

◆ _binnedPdf

RooAbsPdf* _binnedPdf {nullptr}
mutableprivate

!

Definition at line 50 of file RooNLLVar.h.

◆ _binw

std::vector<double> _binw
mutableprivate

!

Definition at line 49 of file RooNLLVar.h.

◆ _doBinOffset

bool _doBinOffset {false}
private

Definition at line 44 of file RooNLLVar.h.

◆ _emptySet

RooArgSet _emptySet
staticprotected

Definition at line 38 of file RooNLLVar.h.

◆ _extended

bool _extended {false}
private

Definition at line 43 of file RooNLLVar.h.

◆ _first

bool _first {true}
mutableprivate

!

Definition at line 46 of file RooNLLVar.h.

◆ _offsetPdf

std::unique_ptr<RooAbsPdf> _offsetPdf
private

! An optional per-bin likelihood offset

Definition at line 51 of file RooNLLVar.h.

◆ _offsetSaveW2

ROOT::Math::KahanSum<double> _offsetSaveW2 {0.0}
private

!

Definition at line 47 of file RooNLLVar.h.

◆ _weightSq

bool _weightSq {false}
private

Apply weights squared?

Definition at line 45 of file RooNLLVar.h.