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
25// RooAbsFunc representation of convolution integrands
27public:
28 RooConvIntegrandBinding(const RooAbsReal &func, const RooAbsReal &model, 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 {
37 // Use the supplied nset as normalization set for calls to func and model
38 _nset = nset;
39 }
40
41protected:
42 void loadValues(const double xvector[], bool clipInvalid = false) const;
43
44 const RooAbsReal *_func; ///< Pointer to input function
45 const RooAbsReal *_model; ///< Pointer to input resolution model
46
47 RooAbsRealLValue **_vars; ///< Array of pointers to variables
48 const RooArgSet *_nset; ///< Normalization set to be used for function evaluations
49 mutable bool _xvecValid; ///< If true _xvec defines a valid point
50 bool _clipInvalid; ///< If true, invalid x values are clipped into their valid range
51};
52
53#endif
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition RooAbsFunc.h:27
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
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