RooBernstein.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooBernstein.h 28259 2009-04-16 16:21:16Z wouter $
00005  * Authors:                                                                  *
00006  *   Kyle Cranmer
00007  *                                                                           *
00008  *                                                                           *
00009  * Redistribution and use in source and binary forms,                        *
00010  * with or without modification, are permitted according to the terms        *
00011  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00012  *****************************************************************************/
00013 #ifndef ROO_BERNSTEIN
00014 #define ROO_BERNSTEIN
00015 
00016 #include "RooAbsPdf.h"
00017 #include "RooRealProxy.h"
00018 #include "RooListProxy.h"
00019 
00020 class RooRealVar;
00021 class RooArgList ;
00022 
00023 class RooBernstein : public RooAbsPdf {
00024 public:
00025 
00026   RooBernstein() ;
00027   RooBernstein(const char *name, const char *title,
00028                RooAbsReal& _x, const RooArgList& _coefList) ;
00029 
00030   RooBernstein(const RooBernstein& other, const char* name = 0);
00031   virtual TObject* clone(const char* newname) const { return new RooBernstein(*this, newname); }
00032   inline virtual ~RooBernstein() { }
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 private:
00038 
00039   RooRealProxy _x;
00040   RooListProxy _coefList ;
00041 
00042   Double_t evaluate() const;
00043 
00044   ClassDef(RooBernstein,1) // Bernstein polynomial PDF
00045 };
00046 
00047 #endif

Generated on Tue Jul 5 14:26:04 2011 for ROOT_528-00b_version by  doxygen 1.5.1