Likelihood class that sums over multiple -log components.
The likelihood is often a product of components, for instance when fitting simultaneous pdfs, but also when using subsidiary pdfs. Hence, the negative log likelihood that we, in fact, calculate is often a sum over these components. This sum is implemented by this class.
Private Attributes | |
std::vector< std::unique_ptr< RooAbsL > > | components_ |
Additional Inherited Members | |
![]() | |
enum class | Extended { Auto , Yes , No } |
![]() | |
static bool | isExtendedHelper (RooAbsPdf *pdf, Extended extended) |
![]() | |
std::shared_ptr< RooAbsData > | data_ |
bool | extended_ = false |
std::size_t | N_components_ = 1 |
std::size_t | N_events_ = 1 |
std::unique_ptr< RooArgSet > | normSet_ |
Pointer to set with observables used for normalization. | |
std::shared_ptr< RooAbsPdf > | pdf_ |
std::size_t | sim_count_ = 1 |
#include <RooFit/TestStatistics/RooSumL.h>
RooFit::TestStatistics::RooSumL::RooSumL | ( | RooAbsPdf * | pdf, |
RooAbsData * | data, | ||
std::vector< std::unique_ptr< RooAbsL > > | components, | ||
RooAbsL::Extended | extended = RooAbsL::Extended::Auto ) |
[in] | Raw pointer to the pdf; will not be cloned in this object. | |
[in] | data | Raw pointer to the dataset; will not be cloned in this object. |
[in] | components | The component likelihoods. |
extended | Set extended term calculation on, off or use Extended::Auto to determine automatically based on the pdf whether to activate or not. |
Definition at line 43 of file RooSumL.cxx.
|
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 123 of file RooSumL.cxx.
|
overridevirtual |
Implements RooFit::TestStatistics::RooAbsL.
Definition at line 92 of file RooSumL.cxx.
|
inlineoverridevirtual |
Implements RooFit::TestStatistics::RooAbsL.
ROOT::Math::KahanSum< double > RooFit::TestStatistics::RooSumL::getSubsidiaryValue | ( | ) |
Definition at line 112 of file RooSumL.cxx.
|
private |