Logo ROOT   6.16/01
Reference Guide
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\file RooRealAnalytic.cxx
19\class RooRealAnalytic
20\ingroup Roofitcore
21
22Lightweight RooAbsFunc interface adaptor that binds an analytic integral of a
23RooAbsReal object (specified by a code) to a set of dependent variables.
24**/
25
26
27#include "RooFit.h"
28
29#include "RooRealAnalytic.h"
30#include "RooRealAnalytic.h"
31#include "RooAbsReal.h"
32
33#include <assert.h>
34
35using namespace std;
36
38;
39
40
41////////////////////////////////////////////////////////////////////////////////
42/// Evaluate our analytic integral at the specified values of the dependents.
43
45{
46 assert(isValid());
47 loadValues(xvector);
48 _ncall++ ;
50}
double Double_t
Definition: RtypesCore.h:55
#define ClassImp(name)
Definition: Rtypes.h:363
Bool_t isValid() const
Definition: RooAbsFunc.h:33
Int_t _ncall
Definition: RooAbsFunc.h:73
virtual Double_t analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
Definition: RooAbsReal.cxx:348
Double_t getVal(const RooArgSet *set=0) const
Evaluate object. Returns either cached value or triggers a recalculation.
Definition: RooAbsReal.h:64
Lightweight RooAbsFunc interface adaptor that binds an analytic integral of a RooAbsReal object (spec...
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate our analytic integral at the specified values of the dependents.
void loadValues(const Double_t xvector[]) const
Load the vector of variable values into the RooRealVars associated as variables with the bound RooAbs...
const RooArgSet * _nset
const RooAbsReal * _func
const TNamed * _rangeName
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
STL namespace.