Logo ROOT  
Reference Guide
RooRealAnalytic.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooRealAnalytic.h,v 1.8 2007/05/11 09:11:30 verkerke Exp $
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 #ifndef ROO_REAL_ANALYTIC
17 #define ROO_REAL_ANALYTIC
18 
19 #include "RooRealBinding.h"
20 
22 public:
23  inline RooRealAnalytic(const RooAbsReal &func, const RooArgSet &vars, Int_t code, const RooArgSet* normSet=0, const TNamed* rangeName=0) :
24  RooRealBinding(func,vars,normSet,rangeName), _code(code) { }
25  inline virtual ~RooRealAnalytic() { }
26 
27  virtual Double_t operator()(const Double_t xvector[]) const override;
28  RooSpan<const double> getValues(std::vector<RooSpan<const double>> coordinates) const override;
29 
30 protected:
32 
33 private:
34  mutable std::unique_ptr<std::vector<double>> _batchBuffer; //! Buffer for handing out spans.
35 
36  ClassDefOverride(RooRealAnalytic,0) // Function binding to an analytical integral of a RooAbsReal
37 };
38 
39 #endif
40 
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:61
RooRealAnalytic::_batchBuffer
std::unique_ptr< std::vector< double > > _batchBuffer
Definition: RooRealAnalytic.h:34
RooRealAnalytic::_code
Int_t _code
Definition: RooRealAnalytic.h:31
ClassDefOverride
#define ClassDefOverride(name, id)
Definition: Rtypes.h:329
RooRealAnalytic::operator()
virtual Double_t operator()(const Double_t xvector[]) const override
Evaluate our analytic integral at the specified values of the dependents.
Definition: RooRealAnalytic.cxx:44
RooRealAnalytic::~RooRealAnalytic
virtual ~RooRealAnalytic()
Definition: RooRealAnalytic.h:25
RooRealBinding
Lightweight interface adaptor that binds a RooAbsReal object to a subset of its servers and present i...
Definition: RooRealBinding.h:29
RooRealAnalytic::getValues
RooSpan< const double > getValues(std::vector< RooSpan< const double >> coordinates) const override
Evaluate the analytic integral of the function at the specified values of the dependents.
Definition: RooRealAnalytic.cxx:55
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
RooRealAnalytic
Lightweight RooAbsFunc interface adaptor that binds an analytic integral of a RooAbsReal object (spec...
Definition: RooRealAnalytic.h:21
RooRealAnalytic::RooRealAnalytic
RooRealAnalytic(const RooAbsReal &func, const RooArgSet &vars, Int_t code, const RooArgSet *normSet=0, const TNamed *rangeName=0)
Definition: RooRealAnalytic.h:23
Double_t
double Double_t
Definition: RtypesCore.h:59
RooRealBinding.h
RooSpan
A simple container to hold a batch of data values.
Definition: RooSpan.h:34
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:33
int