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 
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 
RooConvIntegrandBinding::_func
const RooAbsReal * _func
Definition: RooConvIntegrandBinding.h:43
RooConvIntegrandBinding::getMinLimit
virtual Double_t getMinLimit(UInt_t dimension) const
Retrieve lower limit of i-th observable.
Definition: RooConvIntegrandBinding.cxx:156
RooConvIntegrandBinding::_model
const RooAbsReal * _model
Definition: RooConvIntegrandBinding.h:44
RooConvIntegrandBinding::_xvecValid
Bool_t _xvecValid
Definition: RooConvIntegrandBinding.h:48
RooConvIntegrandBinding::_clipInvalid
Bool_t _clipInvalid
Definition: RooConvIntegrandBinding.h:49
x
Double_t x[n]
Definition: legend1.C:17
RooAbsFunc.h
RooAbsReal
Definition: RooAbsReal.h:61
RooConvIntegrandBinding::_vars
RooAbsRealLValue ** _vars
Definition: RooConvIntegrandBinding.h:46
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
RooConvIntegrandBinding::getMaxLimit
virtual Double_t getMaxLimit(UInt_t dimension) const
Retrieve upper limit of i-th observable.
Definition: RooConvIntegrandBinding.cxx:166
bool
RooConvIntegrandBinding::setNormalizationSet
void setNormalizationSet(const RooArgSet *nset)
Definition: RooConvIntegrandBinding.h:35
RooAbsFunc
Definition: RooAbsFunc.h:23
RooConvIntegrandBinding::_nset
const RooArgSet * _nset
Definition: RooConvIntegrandBinding.h:47
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooConvIntegrandBinding::operator()
virtual Double_t operator()(const Double_t xvector[]) const
Evaluate self at given parameter values.
Definition: RooConvIntegrandBinding.cxx:126
RooConvIntegrandBinding
Definition: RooConvIntegrandBinding.h:25
unsigned int
Double_t
double Double_t
Definition: RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooConvIntegrandBinding::~RooConvIntegrandBinding
virtual ~RooConvIntegrandBinding()
Destructor.
Definition: RooConvIntegrandBinding.cxx:100
make_cnn_model.model
model
Definition: make_cnn_model.py:6
RooConvIntegrandBinding::RooConvIntegrandBinding
RooConvIntegrandBinding(const RooAbsReal &func, const RooAbsReal &model, RooAbsReal &x, RooAbsReal &xprime, const RooArgSet *nset=0, Bool_t clipInvalid=kFALSE)
Definition: RooConvIntegrandBinding.cxx:46
RooConvIntegrandBinding::loadValues
void loadValues(const Double_t xvector[], Bool_t clipInvalid=kFALSE) const
Load external input values.
Definition: RooConvIntegrandBinding.cxx:109
RooAbsRealLValue
Definition: RooAbsRealLValue.h:31
RooArgSet
Definition: RooArgSet.h:28