00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitModels * 00004 * File: $Id: RooExponential.h,v 1.10 2007/07/12 20:30:49 wouter 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_EXPONENTIAL 00017 #define ROO_EXPONENTIAL 00018 00019 #include "RooAbsPdf.h" 00020 #include "RooRealProxy.h" 00021 00022 class RooRealVar; 00023 class RooAbsReal; 00024 00025 class RooExponential : public RooAbsPdf { 00026 public: 00027 RooExponential() {} ; 00028 RooExponential(const char *name, const char *title, 00029 RooAbsReal& _x, RooAbsReal& _c); 00030 RooExponential(const RooExponential& other, const char* name=0); 00031 virtual TObject* clone(const char* newname) const { return new RooExponential(*this,newname); } 00032 inline virtual ~RooExponential() { } 00033 00034 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ; 00035 Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ; 00036 00037 protected: 00038 RooRealProxy x; 00039 RooRealProxy c; 00040 00041 Double_t evaluate() const; 00042 00043 private: 00044 ClassDef(RooExponential,1) // Exponential PDF 00045 }; 00046 00047 #endif