00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * Package: RooFitModels * 00004 * File: $Id: RooChebychev.h,v 1.6 2007/05/11 09:13:07 verkerke Exp $ 00005 * Authors: * 00006 * GR, Gerhard Raven, UC San Diego, Gerhard.Raven@slac.stanford.edu 00007 * * 00008 * Copyright (c) 2000-2005, Regents of the University of California * 00009 * and Stanford University. All rights reserved. * 00010 * * 00011 * Redistribution and use in source and binary forms, * 00012 * with or without modification, are permitted according to the terms * 00013 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00014 *****************************************************************************/ 00015 #ifndef ROO_CHEBYCHEV 00016 #define ROO_CHEBYCHEV 00017 00018 #include "RooAbsPdf.h" 00019 #include "RooRealProxy.h" 00020 #include "RooListProxy.h" 00021 00022 class RooRealVar; 00023 class RooArgList ; 00024 00025 class RooChebychev : public RooAbsPdf { 00026 public: 00027 00028 RooChebychev() ; 00029 RooChebychev(const char *name, const char *title, 00030 RooAbsReal& _x, const RooArgList& _coefList) ; 00031 00032 RooChebychev(const RooChebychev& other, const char* name = 0); 00033 virtual TObject* clone(const char* newname) const { return new RooChebychev(*this, newname); } 00034 inline virtual ~RooChebychev() { } 00035 00036 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ; 00037 Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ; 00038 00039 private: 00040 00041 RooRealProxy _x; 00042 RooListProxy _coefList ; 00043 00044 Double_t evaluate() const; 00045 00046 ClassDef(RooChebychev,1) // Chebychev polynomial PDF 00047 }; 00048 00049 #endif