Loading [MathJax]/extensions/tex2jax.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
roofit
roostats
src
Heaviside.cxx
Go to the documentation of this file.
1
// @(#)root/roostats:$Id: MetropolisHastings.cxx 28978 2009-06-17 14:33:31Z kbelasco $
2
// Authors: Kevin Belasco 17/06/2009
3
// Authors: Kyle Cranmer 17/06/2009
4
/*************************************************************************
5
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
* *
11
* This code was autogenerated by RooClassFactory *
12
*************************************************************************/
13
////////////////////////////////////////////////////////////////////////////////
14
15
16
#ifndef RooStats_Heaviside
17
#include "
RooStats/Heaviside.h
"
18
#endif
19
#ifndef ROO_ABS_REAL
20
#include "
RooAbsReal.h
"
21
#endif
22
23
using namespace
std
;
24
25
ClassImp
(
RooStats::Heaviside
)
26
27
using namespace
RooFit
;
28
using namespace
RooStats
;
29
30
Heaviside::Heaviside(
const
char
*
name
,
const
char
*title,
31
RooAbsReal
& _x,
32
RooAbsReal
& _c) :
33
RooAbsReal
(name,title),
34
x
(
"x"
,
"x"
,this,_x),
35
c
(
"c"
,
"c"
,this,_c)
36
{
37
}
38
39
Heaviside::Heaviside
(
const
Heaviside
& other,
const
char
*
name
) :
40
RooAbsReal
(other,name),
41
x
(
"x"
,this,other.
x
),
42
c
(
"c"
,this,other.
c
)
43
{
44
}
45
46
Double_t
Heaviside::evaluate
()
const
47
{
48
// ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
49
if
(((
Double_t
)
x
) >= ((
Double_t
)
c
))
50
return
1.0;
51
else
52
return
0.0;
53
}
RooStats::Heaviside::evaluate
Double_t evaluate() const
Definition:
Heaviside.cxx:46
c
return c
Definition:
entrylist_figure1.C:47
RooStats::Heaviside::c
RooRealProxy c
Definition:
Heaviside.h:50
RooStats::Heaviside::Heaviside
Heaviside()
Definition:
Heaviside.h:39
std
STL namespace.
x
Double_t x[n]
Definition:
legend1.C:17
RooFit
Definition:
RooCFunction1Binding.h:29
RooStats::Heaviside
Represents the Heaviside function.
Definition:
Heaviside.h:37
Heaviside.h
RooStats
Namespace for the RooStats classes.
Definition:
Asimov.h:20
RooAbsReal.h
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
RooStats::Heaviside::x
RooRealProxy x
Definition:
Heaviside.h:49
name
char name[80]
Definition:
TGX11.cxx:109