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

Definition at line 25 of file RooSubsidiaryL.h.

Public Member Functions

 RooSubsidiaryL (const std::string &parent_pdf_name, const RooArgSet &pdfs, const RooArgSet &parameter_set)
 
void constOptimizeTestStatistic (RooAbsArg::ConstOpCode opcode, bool doAlsoTrackingOpt) override
 Interface function signaling a request to perform constant term optimization. More...
 
ROOT::Math::KahanSum< doubleevaluatePartition (Section events, std::size_t components_begin, std::size_t components_end) override
 
virtual std::string GetClassName () const override
 
virtual std::string GetInfo () const override
 
std::string GetName () const override
 
RooArgSetgetParameters () override
 
std::string GetTitle () const override
 
std::size_t numDataEntries () const override
 Number of dataset entries. More...
 
- 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

RooArgSet parameter_set_ {"parameter_set"}
 Set of parameters to which constraints apply. More...
 
std::string parent_pdf_name_
 
RooArgList subsidiary_pdfs_ {"subsidiary_pdfs"}
 Set of subsidiary PDF or "constraint" terms. More...
 

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/RooSubsidiaryL.h>

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

Constructor & Destructor Documentation

◆ RooSubsidiaryL()

RooSubsidiaryL::RooSubsidiaryL ( const std::string &  parent_pdf_name,
const RooArgSet pdfs,
const RooArgSet parameter_set 
)

Definition at line 43 of file RooSubsidiaryL.cxx.

Member Function Documentation

◆ constOptimizeTestStatistic()

void RooSubsidiaryL::constOptimizeTestStatistic ( RooAbsArg::ConstOpCode  opcode,
bool  doAlsoTrackingOpt 
)
overridevirtual

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 from RooFit::TestStatistics::RooAbsL.

Definition at line 77 of file RooSubsidiaryL.cxx.

◆ evaluatePartition()

ROOT::Math::KahanSum< double > RooSubsidiaryL::evaluatePartition ( RooAbsL::Section  events,
std::size_t  components_begin,
std::size_t  components_end 
)
overridevirtual
Note
The subsidiary term is only calculated together with the last event. While this is meaningless for the subsidiary term itself (it has no events), it is useful when calculating RooSumLs by parts. The Section from each part is forwarded here if the component is a RooSubsidiaryL.

Implements RooFit::TestStatistics::RooAbsL.

Definition at line 62 of file RooSubsidiaryL.cxx.

◆ GetClassName()

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

Implements RooFit::TestStatistics::RooAbsL.

Definition at line 41 of file RooSubsidiaryL.h.

◆ GetInfo()

virtual std::string RooFit::TestStatistics::RooSubsidiaryL::GetInfo ( ) const
inlineoverridevirtual

Reimplemented from RooFit::TestStatistics::RooAbsL.

Definition at line 39 of file RooSubsidiaryL.h.

◆ GetName()

std::string RooFit::TestStatistics::RooSubsidiaryL::GetName ( ) const
inlineoverridevirtual

Reimplemented from RooFit::TestStatistics::RooAbsL.

Definition at line 32 of file RooSubsidiaryL.h.

◆ getParameters()

RooArgSet * RooFit::TestStatistics::RooSubsidiaryL::getParameters ( )
inlineoverridevirtual

Reimplemented from RooFit::TestStatistics::RooAbsL.

Definition at line 31 of file RooSubsidiaryL.h.

◆ GetTitle()

std::string RooFit::TestStatistics::RooSubsidiaryL::GetTitle ( ) const
inlineoverridevirtual

Reimplemented from RooFit::TestStatistics::RooAbsL.

Definition at line 34 of file RooSubsidiaryL.h.

◆ numDataEntries()

std::size_t RooFit::TestStatistics::RooSubsidiaryL::numDataEntries ( ) const
inlineoverridevirtual

Number of dataset entries.

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

Reimplemented from RooFit::TestStatistics::RooAbsL.

Definition at line 43 of file RooSubsidiaryL.h.

Member Data Documentation

◆ parameter_set_

RooArgSet RooFit::TestStatistics::RooSubsidiaryL::parameter_set_ {"parameter_set"}
private

Set of parameters to which constraints apply.

Definition at line 55 of file RooSubsidiaryL.h.

◆ parent_pdf_name_

std::string RooFit::TestStatistics::RooSubsidiaryL::parent_pdf_name_
private

Definition at line 53 of file RooSubsidiaryL.h.

◆ subsidiary_pdfs_

RooArgList RooFit::TestStatistics::RooSubsidiaryL::subsidiary_pdfs_ {"subsidiary_pdfs"}
private

Set of subsidiary PDF or "constraint" terms.

Definition at line 54 of file RooSubsidiaryL.h.

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

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