00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooConvIntegrandBinding.h,v 1.3 2007/05/11 09:11:30 verkerke Exp $ 00005 * Authors: * 00006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 00007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 00008 * * 00009 * Copyright (c) 2000-2005, Regents of the University of California * 00010 * and Stanford University. All rights reserved. * 00011 * * 00012 * Redistribution and use in source and binary forms, * 00013 * with or without modification, are permitted according to the terms * 00014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00015 *****************************************************************************/ 00016 #ifndef ROO_CONV_INTEGRAND_BINDING 00017 #define ROO_CONV_INTEGRAND_BINDING 00018 00019 #include "RooAbsFunc.h" 00020 00021 class RooAbsRealLValue; 00022 class RooAbsReal; 00023 class RooArgSet; 00024 00025 class RooConvIntegrandBinding : public RooAbsFunc { 00026 public: 00027 RooConvIntegrandBinding(const RooAbsReal& func, const RooAbsReal& model, 00028 RooAbsReal& x, RooAbsReal& xprime, 00029 const RooArgSet* nset=0, Bool_t clipInvalid=kFALSE); 00030 virtual ~RooConvIntegrandBinding(); 00031 00032 virtual Double_t operator()(const Double_t xvector[]) const; 00033 virtual Double_t getMinLimit(UInt_t dimension) const; 00034 virtual Double_t getMaxLimit(UInt_t dimension) const; 00035 inline void setNormalizationSet(const RooArgSet* nset) { 00036 // Use the supplied nset as normalization set for calls to func and model 00037 _nset = nset ; 00038 } 00039 00040 protected: 00041 void loadValues(const Double_t xvector[], Bool_t clipInvalid=kFALSE) const; 00042 00043 const RooAbsReal *_func; // Pointer to input function 00044 const RooAbsReal *_model ; // Pointer to input resolution model 00045 00046 RooAbsRealLValue **_vars; // Array of pointers to variables 00047 const RooArgSet *_nset; // Normalization set to be used for function evaluations 00048 mutable Bool_t _xvecValid; // If true _xvec defines a valid point 00049 Bool_t _clipInvalid ; // If true, invalid x values are clipped into their valid range 00050 00051 ClassDef(RooConvIntegrandBinding,0) // RooAbsFunc representation of convolution integrands 00052 }; 00053 00054 #endif 00055