Logo ROOT   6.12/07
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 
21 class RooAbsRealLValue;
22 class RooAbsReal;
23 class RooArgSet;
24 
26 public:
28  RooAbsReal& x, RooAbsReal& xprime,
29  const RooArgSet* nset=0, Bool_t clipInvalid=kFALSE);
30  virtual ~RooConvIntegrandBinding();
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 
40 protected:
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 
virtual Double_t getMinLimit(UInt_t dimension) const
Retrieve lower limit of i-th observable.
bool Bool_t
Definition: RtypesCore.h:59
void setNormalizationSet(const RooArgSet *nset)
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual Double_t getMaxLimit(UInt_t dimension) const
Retrieve upper limit of i-th observable.
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate self at given parameter values.
const Bool_t kFALSE
Definition: RtypesCore.h:88
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
virtual ~RooConvIntegrandBinding()
Destructor.
RooConvIntegrandBinding(const RooAbsReal &func, const RooAbsReal &model, RooAbsReal &x, RooAbsReal &xprime, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE)
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
void loadValues(const Double_t xvector[], Bool_t clipInvalid=kFALSE) const
Load external input values.
Implementation of RooAbsFunc that represent the the integrand of a generic (numeric) convolution A (x...
Abstract interface for evaluating a real-valued function of one real variable and performing numerica...
Definition: RooAbsFunc.h:23