/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitModels
 *
 * authors: Stefan A. Schmitz, Gregory Schott
 * implementation of the Gamma distribution (class structure derived 
 * from the class RooGaussian by Wouter Verkerke and David Kirkby)  
 *
 * 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_GAMMA
#define ROO_GAMMA

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

class RooRealVar;

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

  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:

  RooRealProxy x ;
  RooRealProxy gamma ;
  RooRealProxy beta ;
  RooRealProxy mu ;
  
  Double_t evaluate() const ;

private:

  ClassDef(RooGamma,1) // Gaussian PDF
};

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