RooVoigtian.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooVoigtian.h,v 1.7 2007/07/12 20:30:49 wouter Exp $
00005  * Authors:                                                                  *
00006  *   TS, Thomas Schietinger, SLAC,          schieti@slac.stanford.edu        *
00007  *                                                                           *
00008  * Copyright (c) 2000-2005, Regents of the University of California          *
00009  *                          and Stanford University. All rights reserved.    *
00010  *                                                                           *
00011  * Redistribution and use in source and binary forms,                        *
00012  * with or without modification, are permitted according to the terms        *
00013  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00014  *****************************************************************************/
00015 
00016 #ifndef ROO_VOIGTIAN
00017 #define ROO_VOIGTIAN
00018 
00019 #include "RooAbsPdf.h"
00020 #include "RooRealProxy.h"
00021 
00022 class RooRealVar;
00023 
00024 class RooVoigtian : public RooAbsPdf {
00025 public:
00026   RooVoigtian() {} ;
00027   RooVoigtian(const char *name, const char *title,
00028               RooAbsReal& _x, RooAbsReal& _mean, 
00029               RooAbsReal& _width, RooAbsReal& _sigma,
00030               Bool_t doFast = kFALSE);
00031   RooVoigtian(const RooVoigtian& other, const char* name=0) ;
00032   virtual TObject* clone(const char* newname) const { return new RooVoigtian(*this,newname); }
00033   inline virtual ~RooVoigtian() { }
00034 
00035 // These methods allow the user to select the fast evaluation
00036 // of the complex error function using look-up tables
00037 // (default is the "slow" CERNlib algorithm)
00038 
00039   inline void selectFastAlgorithm()    { _doFast = kTRUE;  }
00040   inline void selectDefaultAlgorithm() { _doFast = kFALSE; }
00041 
00042 protected:
00043 
00044   RooRealProxy x ;
00045   RooRealProxy mean ;
00046   RooRealProxy width ;
00047   RooRealProxy sigma ;
00048 
00049   Double_t evaluate() const ;
00050 
00051 private:
00052 
00053   Double_t _invRootPi;
00054   Bool_t _doFast;
00055   ClassDef(RooVoigtian,1) // Voigtian PDF (Gauss (x) BreitWigner)
00056 };
00057 
00058 #endif
00059 

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