RooUniform.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooUniform.h 30333 2009-09-21 15:39:17Z wouter $
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_UNIFORM
00017 #define ROO_UNIFORM
00018 
00019 #include "RooAbsPdf.h"
00020 #include "RooListProxy.h"
00021 
00022 class RooRealVar;
00023 
00024 class RooUniform : public RooAbsPdf {
00025 public:
00026   RooUniform() {} ;
00027   RooUniform(const char *name, const char *title, const RooArgSet& _x);
00028   RooUniform(const RooUniform& other, const char* name=0) ;
00029   virtual TObject* clone(const char* newname) const { return new RooUniform(*this,newname); }
00030   inline virtual ~RooUniform() { }
00031 
00032   Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
00033   Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
00034 
00035   Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const;
00036   void generateEvent(Int_t code);
00037 
00038 protected:
00039 
00040   RooListProxy x ;
00041   
00042   Double_t evaluate() const ;
00043 
00044 private:
00045 
00046   ClassDef(RooUniform,1) // Flat PDF in N dimensions
00047 };
00048 
00049 #endif

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