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**/
22
23#include <RooAbsMoment.h>
24#include <RooRealVar.h>
25
26#include <Riostream.h>
27
28#include <cmath>
29#include <string>
30
32
33////////////////////////////////////////////////////////////////////////////////
34
35RooAbsMoment::RooAbsMoment(const char* name, const char* title, RooAbsReal& func, RooRealVar& x, Int_t orderIn, bool takeRoot) :
36 RooAbsReal(name, title),
37 _order(orderIn),
38 _takeRoot(takeRoot),
39 _nset("nset","nset",this,false,false),
40 _func("function","function",this,func,false,false),
41 _x("x","x",this,x,false,false),
42 _mean("!mean","!mean",this,false,false)
43{
44}
45
46
47////////////////////////////////////////////////////////////////////////////////
48
49RooAbsMoment::RooAbsMoment(const RooAbsMoment& other, const char* name) :
50 RooAbsReal(other, name),
51 _order(other._order),
52 _takeRoot(other._takeRoot),
53 _nset("nset",this,other._nset),
54 _func("function",this,other._func),
55 _x("x",this,other._x),
56 _mean("!mean","!mean",this,false,false)
57{
58}
RooAbsReal * _func
Pointer to original input function.
#define ClassImp(name)
Definition Rtypes.h:377
char name[80]
Definition TGX11.cxx:110
RooAbsMoment()=default
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Double_t x[n]
Definition legend1.C:17