Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.26
master
v6.34
v6.32
v6.30
v6.28
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
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
\file RooExtendedTerm.cxx
19
\class RooExtendedTerm
20
\ingroup Roofitcore
21
22
RooExtendedTerm is a p.d.f with no observables that only introduces
23
an extended ML term for a given number of expected events term when an extended ML
24
is constructed.
25
**/
26
27
#include "
RooFit.h
"
28
#include "
RooExtendedTerm.h
"
29
30
using namespace
std;
31
32
ClassImp
(
RooExtendedTerm
);
33
;
34
35
36
////////////////////////////////////////////////////////////////////////////////
37
/// Constructor
38
39
RooExtendedTerm::RooExtendedTerm
()
40
{
41
}
42
43
44
45
////////////////////////////////////////////////////////////////////////////////
46
/// Constructor. An ExtendedTerm has no observables, it only introduces an extended
47
/// ML term with the given number of expected events when an extended ML is constructed
48
/// from this p.d.f.
49
50
RooExtendedTerm::RooExtendedTerm
(
const
char
*
name
,
const
char
*title,
const
RooAbsReal
&
n
) :
51
RooAbsPdf
(
name
,title),
52
_n(
"n"
,
"Nexpected"
,this,(
RooAbsReal
&)
n
)
53
{
54
}
55
56
57
58
////////////////////////////////////////////////////////////////////////////////
59
/// Copy constructor
60
61
RooExtendedTerm::RooExtendedTerm
(
const
RooExtendedTerm
& other,
const
char
*
name
) :
62
RooAbsPdf
(other,
name
),
63
_n(
"n"
,this,other._n)
64
{
65
}
66
67
68
69
////////////////////////////////////////////////////////////////////////////////
70
/// Destructor
71
72
RooExtendedTerm::~RooExtendedTerm
()
73
{
74
}
75
76
77
////////////////////////////////////////////////////////////////////////////////
78
/// Return number of expected events from associated event count variable
79
80
Double_t
RooExtendedTerm::expectedEvents
(
const
RooArgSet
*
/*nset*/
)
const
81
{
82
return
_n
;
83
}
84
85
86
RooExtendedTerm.h
RooFit.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:364
name
char name[80]
Definition
TGX11.cxx:110
Double_t
RooAbsPdf
Definition
RooAbsPdf.h:43
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition
RooAbsReal.h:64
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgSet.h:35
RooExtendedTerm
RooExtendedTerm is a p.d.f with no observables that only introduces an extended ML term for a given n...
Definition
RooExtendedTerm.h:22
RooExtendedTerm::~RooExtendedTerm
virtual ~RooExtendedTerm()
Destructor.
Definition
RooExtendedTerm.cxx:72
RooExtendedTerm::_n
RooRealProxy _n
Definition
RooExtendedTerm.h:39
RooExtendedTerm::RooExtendedTerm
RooExtendedTerm()
Constructor.
Definition
RooExtendedTerm.cxx:39
RooExtendedTerm::expectedEvents
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return number of expected events, in other words the value of the associated n parameter.
Definition
RooExtendedTerm.cxx:80
n
const Int_t n
Definition
legend1.C:16
roofit
roofitcore
src
RooExtendedTerm.cxx
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:50 (GVA Time) using Doxygen 1.9.8