ROOT
6.06/08
Reference Guide
roofit
roofitcore
src
RooExtendedTerm.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* @(#)root/roofitcore:$Name: $:$Id$
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2005, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
17
//////////////////////////////////////////////////////////////////////////////
18
//
19
// BEGIN_HTML
20
// RooExtendedTerm is a p.d.f with no observables that only introduces
21
// an extended ML term for a given number of expected events term when an extended ML
22
// is constructed.
23
// END_HTML
24
//
25
26
#include "
RooFit.h
"
27
#include "
RooExtendedTerm.h
"
28
29
using namespace
std
;
30
31
ClassImp
(
RooExtendedTerm
)
32
;
33
34
35
////////////////////////////////////////////////////////////////////////////////
36
/// Constructor
37
38
RooExtendedTerm::RooExtendedTerm
()
39
{
40
}
41
42
43
44
////////////////////////////////////////////////////////////////////////////////
45
/// Constructor. An ExtendedTerm has no observables, it only introduces an extended
46
/// ML term with the given number of expected events when an extended ML is constructed
47
/// from this p.d.f.
48
49
RooExtendedTerm::RooExtendedTerm
(
const
char
*
name
,
const
char
*title,
const
RooAbsReal
&
n
) :
50
RooAbsPdf
(name,title),
51
_n(
"n"
,
"Nexpected"
,this,(
RooAbsReal
&)n)
52
{
53
}
54
55
56
57
////////////////////////////////////////////////////////////////////////////////
58
/// Copy constructor
59
60
RooExtendedTerm::RooExtendedTerm
(
const
RooExtendedTerm
& other,
const
char
*
name
) :
61
RooAbsPdf
(other,name),
62
_n
(
"n"
,this,other.
_n
)
63
{
64
}
65
66
67
68
////////////////////////////////////////////////////////////////////////////////
69
/// Destructor
70
71
RooExtendedTerm::~RooExtendedTerm
()
72
{
73
}
74
75
76
////////////////////////////////////////////////////////////////////////////////
77
/// Return number of expected events from associated event count variable
78
79
Double_t
RooExtendedTerm::expectedEvents
(
const
RooArgSet
*
/*nset*/
)
const
80
{
81
return
_n
;
82
}
83
84
85
RooArgSet
Definition:
RooArgSet.h:26
std
STL namespace.
RooExtendedTerm::~RooExtendedTerm
virtual ~RooExtendedTerm()
Destructor.
Definition:
RooExtendedTerm.cxx:71
RooExtendedTerm::RooExtendedTerm
RooExtendedTerm()
Constructor.
Definition:
RooExtendedTerm.cxx:38
RooExtendedTerm::expectedEvents
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return number of expected events from associated event count variable.
Definition:
RooExtendedTerm.cxx:79
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:279
Double_t
double Double_t
Definition:
RtypesCore.h:55
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition:
RooAbsReal.h:53
RooExtendedTerm.h
name
#define name(a, b)
Definition:
linkTestLib0.cpp:5
RooExtendedTerm
Definition:
RooExtendedTerm.h:22
RooAbsPdf
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition:
RooAbsPdf.h:41
RooFit.h
n
const Int_t n
Definition:
legend1.C:16
RooExtendedTerm::_n
RooRealProxy _n
Definition:
RooExtendedTerm.h:42