ROOT
master
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
31
32
////////////////////////////////////////////////////////////////////////////////
33
34
RooAbsMoment::RooAbsMoment
(
const
char
*
name
,
const
char
* title,
RooAbsReal
& func,
RooRealVar
&
x
,
Int_t
orderIn
,
bool
takeRoot
) :
35
RooAbsReal
(
name
, title),
36
_order(
orderIn
),
37
_takeRoot(
takeRoot
),
38
_nset(
"nset"
,
"nset"
,
this
,
false
,
false
),
39
_func(
"function"
,
"function"
,
this
,func,
false
,
false
),
40
_x(
"x"
,
"x"
,
this
,
x
,
false
,
false
),
41
_mean(
"!mean"
,
"!mean"
,
this
,
false
,
false
)
42
{
43
}
44
45
46
////////////////////////////////////////////////////////////////////////////////
47
48
RooAbsMoment::RooAbsMoment
(
const
RooAbsMoment
&
other
,
const
char
*
name
) :
49
RooAbsReal
(
other
,
name
),
50
_order(
other
._order),
51
_takeRoot(
other
._takeRoot),
52
_nset(
"nset"
,
this
,
other
._nset),
53
_func(
"function"
,
this
,
other
._func),
54
_x(
"x"
,
this
,
other
._x),
55
_mean(
"!mean"
,
"!mean"
,
this
,
false
,
false
)
56
{
57
}
Riostream.h
RooAbsMoment.h
RooRealVar.h
name
char name[80]
Definition
TGX11.cxx:110
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
RooAbsMoment
Definition
RooAbsMoment.h:27
RooAbsMoment::RooAbsMoment
RooAbsMoment()=default
RooAbsReal
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition
RooAbsReal.h:59
RooRealVar
Variable that can be changed from the outside.
Definition
RooRealVar.h:37
int
x
Double_t x[n]
Definition
legend1.C:17
roofit
roofitcore
src
RooAbsMoment.cxx
ROOT master - Reference Guide Generated on Sun Mar 23 2025 04:31:11 (GVA Time) using Doxygen 1.10.0