Logo ROOT  
Reference Guide
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=0, Bool_t clipInvalid=kFALSE);
31
32 virtual Double_t operator()(const Double_t xvector[]) const;
33 virtual Double_t getMinLimit(UInt_t dimension) const;
34 virtual Double_t getMaxLimit(UInt_t dimension) const;
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_t xvector[], Bool_t clipInvalid=kFALSE) 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_t _xvecValid; // If true _xvec defines a valid point
49 Bool_t _clipInvalid ; // If true, invalid x values are clipped into their valid range
50
51 ClassDef(RooConvIntegrandBinding,0) // RooAbsFunc representation of convolution integrands
52};
53
54#endif
55
unsigned int UInt_t
Definition: RtypesCore.h:42
const Bool_t kFALSE
Definition: RtypesCore.h:88
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:326
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition: RooAbsFunc.h:23
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:59
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
Implementation of RooAbsFunc that represent the the integrand of a generic (numeric) convolution A (x...
virtual Double_t getMinLimit(UInt_t dimension) const
Retrieve lower limit of i-th observable.
void loadValues(const Double_t xvector[], Bool_t clipInvalid=kFALSE) const
Load external input values.
virtual Double_t getMaxLimit(UInt_t dimension) const
Retrieve upper limit of i-th observable.
virtual ~RooConvIntegrandBinding()
Destructor.
void setNormalizationSet(const RooArgSet *nset)
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate self at given parameter values.
RooConvIntegrandBinding(const RooAbsReal &func, const RooAbsReal &model, RooAbsReal &x, RooAbsReal &xprime, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE)
Double_t x[n]
Definition: legend1.C:17