Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
22RooAbsMoment represents the first, second, or third order derivative
23of any RooAbsReal as calculated (numerically) by the MathCore Richardson
24derivator class.
25**/
26
27#include "Riostream.h"
28#include <cmath>
29
30#include "RooAbsMoment.h"
31#include "RooAbsReal.h"
32#include "RooAbsPdf.h"
33#include "RooErrorHandler.h"
34#include "RooArgSet.h"
35#include "RooMsgService.h"
36#include "RooRealVar.h"
37#include "RooFunctor.h"
38#include "RooFormulaVar.h"
39#include "RooGlobalFunc.h"
40#include "RooConstVar.h"
41#include "RooRealIntegral.h"
42#include <string>
43using namespace std ;
44
45
47;
48
49
50////////////////////////////////////////////////////////////////////////////////
51/// Default constructor
52
53RooAbsMoment::RooAbsMoment() : _order(1), _takeRoot(false)
54{
55}
56
57
58
59////////////////////////////////////////////////////////////////////////////////
60
61RooAbsMoment::RooAbsMoment(const char* name, const char* title, RooAbsReal& func, RooRealVar& x, Int_t orderIn, bool takeRoot) :
62 RooAbsReal(name, title),
63 _order(orderIn),
64 _takeRoot(takeRoot),
65 _nset("nset","nset",this,false,false),
66 _func("function","function",this,func,false,false),
67 _x("x","x",this,x,false,false),
68 _mean("!mean","!mean",this,false,false)
69{
70}
71
72
73////////////////////////////////////////////////////////////////////////////////
74
75RooAbsMoment::RooAbsMoment(const RooAbsMoment& other, const char* name) :
76 RooAbsReal(other, name),
77 _order(other._order),
78 _takeRoot(other._takeRoot),
79 _nset("nset",this,other._nset),
80 _func("function",this,other._func),
81 _x("x",this,other._x),
82 _mean("!mean","!mean",this,false,false)
83{
84}
85
86
87
88////////////////////////////////////////////////////////////////////////////////
89/// Destructor
90
92{
93}
94
95
96
#define ClassImp(name)
Definition Rtypes.h:377
char name[80]
Definition TGX11.cxx:110
RooAbsMoment represents the first, second, or third order derivative of any RooAbsReal as calculated ...
RooAbsMoment()
Default constructor.
~RooAbsMoment() override
Destructor.
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:37
Double_t x[n]
Definition legend1.C:17