00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitCore * 00004 * File: $Id: RooTFoamBinding.h 28259 2009-04-16 16:21:16Z wouter $ 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_TFOAM_BINDING 00017 #define ROO_TFOAM_BINDING 00018 00019 #include "TFoamIntegrand.h" 00020 #include "RooArgSet.h" 00021 #include "RooRealBinding.h" 00022 class RooAbsPdf ; 00023 00024 class RooTFoamBinding : public TFoamIntegrand { 00025 public: 00026 RooTFoamBinding(const RooAbsReal& pdf, const RooArgSet& observables) ; 00027 virtual ~RooTFoamBinding(); 00028 00029 virtual Double_t Density(Int_t ndim, Double_t *) ; 00030 00031 RooRealBinding& binding() { return *_binding ; } 00032 00033 protected: 00034 00035 RooArgSet _nset ; 00036 RooRealBinding* _binding ; 00037 00038 ClassDef(RooTFoamBinding,0) // Function binding to RooAbsReal object 00039 }; 00040 00041 #endif 00042