/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitModels                                                     *
 *    File: $Id$
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.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_UNIFORM
#define ROO_UNIFORM

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

class RooRealVar;

class RooUniform : public RooAbsPdf {
public:
  RooUniform() {} ;
  RooUniform(const char *name, const char *title, const RooArgSet& _x);
  RooUniform(const RooUniform& other, const char* name=0) ;
  virtual TObject* clone(const char* newname) const { return new RooUniform(*this,newname); }
  inline virtual ~RooUniform() { }

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

  Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const;
  void generateEvent(Int_t code);

protected:

  RooListProxy x ;
  
  Double_t evaluate() const ;

private:

  ClassDef(RooUniform,1) // Flat PDF in N dimensions
};

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