Loading [MathJax]/extensions/tex2jax.js
ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
roofit
roofitcore
src
RooRealAnalytic.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
//
19
// BEGIN_HTML
20
// Lightweight RooAbsFunc interface adaptor that binds an analytic integral of a
21
// RooAbsReal object (specified by a code) to a set of dependent variables.
22
// END_HTML
23
//
24
25
26
#include "
RooFit.h
"
27
28
#include "
RooRealAnalytic.h
"
29
#include "
RooRealAnalytic.h
"
30
#include "
RooAbsReal.h
"
31
32
#include <assert.h>
33
34
using namespace
std
;
35
36
ClassImp
(
RooRealAnalytic
)
37
;
38
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// Evaluate our analytic integral at the specified values of the dependents.
42
43
Double_t
RooRealAnalytic::operator()
(
const
Double_t
xvector[])
const
44
{
45
assert
(isValid());
46
loadValues(xvector);
47
_ncall++ ;
48
return
_code ? _func->analyticalIntegralWN(_code,_nset,_rangeName?_rangeName->GetName():0):_func->getVal(_nset) ;
49
}
assert
#define assert(cond)
Definition:
unittest.h:542
std
STL namespace.
ClassImp
ClassImp(RooRealAnalytic)
RooRealAnalytic
Definition:
RooRealAnalytic.h:21
RooAbsReal.h
Double_t
double Double_t
Definition:
RtypesCore.h:55
RooRealAnalytic.h
RooFit.h
RooRealAnalytic::operator()
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate our analytic integral at the specified values of the dependents.
Definition:
RooRealAnalytic.cxx:43