RooPolyVar.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooPolyVar.h,v 1.7 2007/05/11 09:11:30 verkerke 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_POLY_VAR
00017 #define ROO_POLY_VAR
00018 
00019 #include "RooAbsPdf.h"
00020 #include "RooRealProxy.h"
00021 #include "RooListProxy.h"
00022 
00023 class RooRealVar;
00024 class RooArgList ;
00025 
00026 class RooPolyVar : public RooAbsReal {
00027 public:
00028 
00029   RooPolyVar() ;
00030   RooPolyVar(const char* name, const char* title, RooAbsReal& x) ;
00031   RooPolyVar(const char *name, const char *title,
00032                 RooAbsReal& _x, const RooArgList& _coefList, Int_t lowestOrder=0) ;
00033 
00034   RooPolyVar(const RooPolyVar& other, const char* name = 0);
00035   virtual TObject* clone(const char* newname) const { return new RooPolyVar(*this, newname); }
00036   virtual ~RooPolyVar() ;
00037 
00038   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
00039   Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
00040 
00041 protected:
00042 
00043   RooRealProxy _x;
00044   RooListProxy _coefList ;
00045   Int_t _lowestOrder ;
00046   TIterator* _coefIter ;  //! do not persist
00047 
00048   Double_t evaluate() const;
00049 
00050   ClassDef(RooPolyVar,1) // Polynomial function
00051 };
00052 
00053 #endif

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