CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
fit::Likelihood< Sample, PDF, Yield > Class Template Reference

#include <Likelihood.h>

Public Member Functions

double absoluteLog () const
 
 Likelihood ()
 
 Likelihood (const Sample &sample, PDF &pdf, Yield &yield)
 
double log () const
 
double logNFactorial () const
 
double operator() () const
 
PDF & pdf ()
 
const PDF & pdf () const
 
unsigned int sampleSize () const
 
Yield & yield ()
 
const Yield & yield () const
 

Private Types

typedef LikelihoodEvaluator< PDF, typename Sample::value_type > Evaluator
 

Private Attributes

PDF * pdf_
 
Sample sample_
 
unsigned int sampleSize_ = 0u
 
Yield * yield_
 

Detailed Description

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
class fit::Likelihood< Sample, PDF, Yield >

Definition at line 23 of file Likelihood.h.

Member Typedef Documentation

◆ Evaluator

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
typedef LikelihoodEvaluator<PDF, typename Sample::value_type> fit::Likelihood< Sample, PDF, Yield >::Evaluator
private

Definition at line 46 of file Likelihood.h.

Constructor & Destructor Documentation

◆ Likelihood() [1/2]

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
fit::Likelihood< Sample, PDF, Yield >::Likelihood ( )
inline

Definition at line 25 of file Likelihood.h.

25 {}

◆ Likelihood() [2/2]

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
fit::Likelihood< Sample, PDF, Yield >::Likelihood ( const Sample &  sample,
PDF &  pdf,
Yield &  yield 
)
inline

Definition at line 26 of file Likelihood.h.

26 : pdf_(&pdf), yield_(&yield), sample_(sample) {}

Member Function Documentation

◆ absoluteLog()

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
double fit::Likelihood< Sample, PDF, Yield >::absoluteLog ( ) const
inline

◆ log()

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
double fit::Likelihood< Sample, PDF, Yield >::log ( ) const
inline

◆ logNFactorial()

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
double fit::Likelihood< Sample, PDF, Yield >::logNFactorial ( ) const
inline

Definition at line 37 of file Likelihood.h.

37 { return std::log(TMath::Factorial(sampleSize_)); }

References dqm-mbProfile::log, and fit::Likelihood< Sample, PDF, Yield >::sampleSize_.

Referenced by fit::Likelihood< Sample, PDF, Yield >::absoluteLog().

◆ operator()()

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
double fit::Likelihood< Sample, PDF, Yield >::operator() ( ) const
inline

Definition at line 27 of file Likelihood.h.

27 { return log(); }

References fit::Likelihood< Sample, PDF, Yield >::log().

◆ pdf() [1/2]

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
PDF& fit::Likelihood< Sample, PDF, Yield >::pdf ( )
inline

Definition at line 39 of file Likelihood.h.

39 { return *pdf_; }

References fit::Likelihood< Sample, PDF, Yield >::pdf_.

◆ pdf() [2/2]

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
const PDF& fit::Likelihood< Sample, PDF, Yield >::pdf ( ) const
inline

Definition at line 40 of file Likelihood.h.

40 { return *pdf_; }

References fit::Likelihood< Sample, PDF, Yield >::pdf_.

◆ sampleSize()

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
unsigned int fit::Likelihood< Sample, PDF, Yield >::sampleSize ( ) const
inline

Definition at line 43 of file Likelihood.h.

43 { return sampleSize_; }

References fit::Likelihood< Sample, PDF, Yield >::sampleSize_.

◆ yield() [1/2]

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
Yield& fit::Likelihood< Sample, PDF, Yield >::yield ( )
inline

Definition at line 41 of file Likelihood.h.

41 { return *yield_; }

References fit::Likelihood< Sample, PDF, Yield >::yield_.

◆ yield() [2/2]

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
const Yield& fit::Likelihood< Sample, PDF, Yield >::yield ( ) const
inline

Definition at line 42 of file Likelihood.h.

42 { return *yield_; }

References fit::Likelihood< Sample, PDF, Yield >::yield_.

Member Data Documentation

◆ pdf_

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
PDF* fit::Likelihood< Sample, PDF, Yield >::pdf_
private

◆ sample_

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
Sample fit::Likelihood< Sample, PDF, Yield >::sample_
private

◆ sampleSize_

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
unsigned int fit::Likelihood< Sample, PDF, Yield >::sampleSize_ = 0u
mutableprivate

◆ yield_

template<typename Sample, typename PDF, typename Yield = NoExtendedLikelihood>
Yield* fit::Likelihood< Sample, PDF, Yield >::yield_
private

Definition at line 48 of file Likelihood.h.

Referenced by fit::Likelihood< Sample, PDF, Yield >::yield().

mps_fire.i
i
Definition: mps_fire.py:428
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
fit::Likelihood::yield_
Yield * yield_
Definition: Likelihood.h:48
fit::LikelihoodEvaluator::evaluate
static double evaluate(const PDF &pdf, const Tuple &tuple)
Definition: Likelihood.h:11
fit::Likelihood::pdf_
PDF * pdf_
Definition: Likelihood.h:47
fit::Likelihood::yield
Yield & yield()
Definition: Likelihood.h:41
fit::Likelihood::sampleSize_
unsigned int sampleSize_
Definition: Likelihood.h:50
fit::Likelihood::log
double log() const
Definition: Likelihood.h:28
fit::Likelihood::logNFactorial
double logNFactorial() const
Definition: Likelihood.h:37
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
fit::Likelihood::sample_
Sample sample_
Definition: Likelihood.h:49
fit::Likelihood::pdf
PDF & pdf()
Definition: Likelihood.h:39
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17