Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooConvIntegrandBinding.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id: RooConvIntegrandBinding.h,v 1.3 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_CONV_INTEGRAND_BINDING
17#define ROO_CONV_INTEGRAND_BINDING
18
19#include "RooAbsFunc.h"
20
22class RooAbsReal;
23class RooArgSet;
24
26public:
27 RooConvIntegrandBinding(const RooAbsReal& func, const RooAbsReal& model,
28 RooAbsReal& x, RooAbsReal& xprime,
29 const RooArgSet* nset=nullptr, bool clipInvalid=false);
30 ~RooConvIntegrandBinding() override;
31
32 double operator()(const double xvector[]) const override;
33 double getMinLimit(UInt_t dimension) const override;
34 double getMaxLimit(UInt_t dimension) const override;
35 inline void setNormalizationSet(const RooArgSet* nset) {
36 // Use the supplied nset as normalization set for calls to func and model
37 _nset = nset ;
38 }
39
40protected:
41 void loadValues(const double xvector[], bool clipInvalid=false) const;
42
43 const RooAbsReal *_func; ///< Pointer to input function
44 const RooAbsReal *_model ; ///< Pointer to input resolution model
45
46 RooAbsRealLValue **_vars; ///< Array of pointers to variables
47 const RooArgSet *_nset; ///< Normalization set to be used for function evaluations
48 mutable bool _xvecValid; ///< If true _xvec defines a valid point
49 bool _clipInvalid ; ///< If true, invalid x values are clipped into their valid range
50
51 ClassDefOverride(RooConvIntegrandBinding,0) // RooAbsFunc representation of convolution integrands
52};
53
54#endif
55
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition RooAbsFunc.h:27
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:62
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Implementation of RooAbsFunc that represent the integrand of a generic (numeric) convolution A (x) B ...
bool _xvecValid
If true _xvec defines a valid point.
double getMaxLimit(UInt_t dimension) const override
Retrieve upper limit of i-th observable.
double operator()(const double xvector[]) const override
Evaluate self at given parameter values.
const RooAbsReal * _func
Pointer to input function.
const RooAbsReal * _model
Pointer to input resolution model.
double getMinLimit(UInt_t dimension) const override
Retrieve lower limit of i-th observable.
void setNormalizationSet(const RooArgSet *nset)
void loadValues(const double xvector[], bool clipInvalid=false) const
Load external input values.
RooAbsRealLValue ** _vars
Array of pointers to variables.
bool _clipInvalid
If true, invalid x values are clipped into their valid range.
const RooArgSet * _nset
Normalization set to be used for function evaluations.
~RooConvIntegrandBinding() override
Destructor.
Double_t x[n]
Definition legend1.C:17