ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitModels                                                     *
 *    File: $Id: RooChebychev.h,v 1.6 2007/05/11 09:13:07 verkerke Exp $
 * Authors:                                                                  *
 *   GR, Gerhard Raven,   UC San Diego, Gerhard.Raven@slac.stanford.edu
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_CHEBYCHEV
#define ROO_CHEBYCHEV

#include "RooAbsPdf.h"
#include "RooRealProxy.h"
#include "RooListProxy.h"

class RooRealVar;
class RooArgList ;

class RooChebychev : public RooAbsPdf {
public:

  RooChebychev() ;
  RooChebychev(const char *name, const char *title,
               RooAbsReal& _x, const RooArgList& _coefList) ;

  RooChebychev(const RooChebychev& other, const char* name = 0);
  virtual TObject* clone(const char* newname) const { return new RooChebychev(*this, newname); }
  inline virtual ~RooChebychev() { }

  Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
  Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;

private:

  RooRealProxy _x;
  RooListProxy _coefList ;

  Double_t evaluate() const;

  ClassDef(RooChebychev,1) // Chebychev polynomial PDF
};

#endif
 RooChebychev.h:1
 RooChebychev.h:2
 RooChebychev.h:3
 RooChebychev.h:4
 RooChebychev.h:5
 RooChebychev.h:6
 RooChebychev.h:7
 RooChebychev.h:8
 RooChebychev.h:9
 RooChebychev.h:10
 RooChebychev.h:11
 RooChebychev.h:12
 RooChebychev.h:13
 RooChebychev.h:14
 RooChebychev.h:15
 RooChebychev.h:16
 RooChebychev.h:17
 RooChebychev.h:18
 RooChebychev.h:19
 RooChebychev.h:20
 RooChebychev.h:21
 RooChebychev.h:22
 RooChebychev.h:23
 RooChebychev.h:24
 RooChebychev.h:25
 RooChebychev.h:26
 RooChebychev.h:27
 RooChebychev.h:28
 RooChebychev.h:29
 RooChebychev.h:30
 RooChebychev.h:31
 RooChebychev.h:32
 RooChebychev.h:33
 RooChebychev.h:34
 RooChebychev.h:35
 RooChebychev.h:36
 RooChebychev.h:37
 RooChebychev.h:38
 RooChebychev.h:39
 RooChebychev.h:40
 RooChebychev.h:41
 RooChebychev.h:42
 RooChebychev.h:43
 RooChebychev.h:44
 RooChebychev.h:45
 RooChebychev.h:46
 RooChebychev.h:47
 RooChebychev.h:48
 RooChebychev.h:49