RooBreitWigner.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooBreitWigner.h,v 1.9 2007/07/12 20:30:49 wouter Exp $
00005  * Authors:                                                                  *
00006  *   AS, Abi Soffer, Colorado State University, abi@slac.stanford.edu        *
00007  *   TS, Thomas Schietinger, SLAC, schieti@slac.stanford.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          Colorado State University                        *
00011  *                          and Stanford University. All rights reserved.    *
00012  *                                                                           *
00013  * Redistribution and use in source and binary forms,                        *
00014  * with or without modification, are permitted according to the terms        *
00015  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00016  *****************************************************************************/
00017 #ifndef ROO_BREITWIGNER
00018 #define ROO_BREITWIGNER
00019 
00020 #include "RooAbsPdf.h"
00021 #include "RooRealProxy.h"
00022 
00023 class RooRealVar;
00024 
00025 class RooBreitWigner : public RooAbsPdf {
00026 public:
00027   RooBreitWigner() {} ;
00028   RooBreitWigner(const char *name, const char *title,
00029               RooAbsReal& _x, RooAbsReal& _mean, RooAbsReal& _width);
00030   RooBreitWigner(const RooBreitWigner& other, const char* name=0) ;
00031   virtual TObject* clone(const char* newname) const { return new RooBreitWigner(*this,newname); }
00032   inline virtual ~RooBreitWigner() { }
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 protected:
00038 
00039   RooRealProxy x ;
00040   RooRealProxy mean ;
00041   RooRealProxy width ;
00042   
00043   Double_t evaluate() const ;
00044 
00045 //   void initGenerator();
00046 //   Int_t generateDependents();
00047 
00048 private:
00049 
00050   ClassDef(RooBreitWigner,1) // Breit Wigner PDF
00051 };
00052 
00053 #endif

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