ROOT
6.10/09
Reference Guide
roofit
roofitcore
src
RooAbsMoment.cxx
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* @(#)root/roofitcore:$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 RooAbsMoment.cxx
19
\class RooAbsMoment
20
\ingroup Roofitcore
21
22
RooAbsMoment represents the first, second, or third order derivative
23
of any RooAbsReal as calculated (numerically) by the MathCore Richardson
24
derivator class.
25
**/
26
27
28
#include "
RooFit.h
"
29
30
#include "
Riostream.h
"
31
#include "
Riostream.h
"
32
#include <math.h>
33
#include <string>
34
35
#include "
RooAbsMoment.h
"
36
#include "
RooAbsReal.h
"
37
#include "
RooAbsPdf.h
"
38
#include "
RooErrorHandler.h
"
39
#include "
RooArgSet.h
"
40
#include "
RooMsgService.h
"
41
#include "
RooRealVar.h
"
42
#include "
RooFunctor.h
"
43
#include "
RooFormulaVar.h
"
44
#include "
RooGlobalFunc.h
"
45
#include "
RooConstVar.h
"
46
#include "
RooRealIntegral.h
"
47
#include <string>
48
using namespace
std
;
49
50
51
ClassImp
(
RooAbsMoment
)
52
;
53
54
55
////////////////////////////////////////////////////////////////////////////////
56
/// Default constructor
57
58
RooAbsMoment::RooAbsMoment
() : _order(1), _takeRoot(
kFALSE
)
59
{
60
}
61
62
63
64
////////////////////////////////////////////////////////////////////////////////
65
66
RooAbsMoment::RooAbsMoment
(
const
char
*
name
,
const
char
* title,
RooAbsReal
&
func
,
RooRealVar
&
x
,
Int_t
orderIn,
Bool_t
takeRoot) :
67
RooAbsReal
(name, title),
68
_order
(orderIn),
69
_takeRoot
(takeRoot),
70
_nset
(
"nset"
,
"nset"
,this,
kFALSE
,
kFALSE
),
71
_func
(
"function"
,
"function"
,this,func,
kFALSE
,
kFALSE
),
72
_x
(
"x"
,
"x"
,this,x,
kFALSE
,
kFALSE
),
73
_mean
(
"!mean"
,
"!mean"
,this,
kFALSE
,
kFALSE
)
74
{
75
}
76
77
78
////////////////////////////////////////////////////////////////////////////////
79
80
RooAbsMoment::RooAbsMoment
(
const
RooAbsMoment
& other,
const
char
*
name
) :
81
RooAbsReal
(other, name),
82
_order
(other.
_order
),
83
_takeRoot
(other.
_takeRoot
),
84
_nset
(
"nset"
,this,other.
_nset
),
85
_func
(
"function"
,this,other.
_func
),
86
_x
(
"x"
,this,other.
_x
),
87
_mean
(
"!mean"
,
"!mean"
,this,
kFALSE
,
kFALSE
)
88
{
89
}
90
91
92
93
////////////////////////////////////////////////////////////////////////////////
94
/// Destructor
95
96
RooAbsMoment::~RooAbsMoment
()
97
{
98
}
99
100
101
RooGlobalFunc.h
RooAbsMoment::~RooAbsMoment
virtual ~RooAbsMoment()
Destructor.
Definition:
RooAbsMoment.cxx:96
RooArgSet.h
RooAbsMoment.h
RegressionKeras.name
name
Definition:
RegressionKeras.py:30
RooRealVar.h
RooMsgService.h
RooAbsMoment::_takeRoot
Int_t _takeRoot
Definition:
RooAbsMoment.h:43
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
std
STL namespace.
RooAbsMoment
RooAbsMoment represents the first, second, or third order derivative of any RooAbsReal as calculated ...
Definition:
RooAbsMoment.h:27
x
Double_t x[n]
Definition:
legend1.C:17
RooRealIntegral.h
RooErrorHandler.h
RooAbsPdf.h
RooAbsMoment::_x
RooRealProxy _x
Definition:
RooAbsMoment.h:46
RooRealVar
RooRealVar represents a fundamental (non-derived) real valued object.
Definition:
RooRealVar.h:36
RooConstVar.h
RooFunctor.h
RooAbsMoment::_mean
RooRealProxy _mean
Definition:
RooAbsMoment.h:47
Riostream.h
kFALSE
const Bool_t kFALSE
Definition:
RtypesCore.h:92
RooAbsMoment::_order
Int_t _order
Definition:
RooAbsMoment.h:42
RooAbsMoment::_nset
RooSetProxy _nset
Definition:
RooAbsMoment.h:44
RooAbsReal.h
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:336
RooFormulaVar.h
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition:
RooAbsReal.h:53
func
double func(double *x, double *p)
Definition:
stressTF1.cxx:213
RooFit.h
RooAbsMoment::_func
RooRealProxy _func
Definition:
RooAbsMoment.h:45
RooAbsMoment::RooAbsMoment
RooAbsMoment()
Default constructor.
Definition:
RooAbsMoment.cxx:58