RooDecay.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitModels                                                     *
00004  *    File: $Id: RooDecay.h,v 1.11 2007/05/11 09:13:07 verkerke Exp $
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_DECAY
00017 #define ROO_DECAY
00018 
00019 #include "RooAbsAnaConvPdf.h"
00020 #include "RooRealProxy.h"
00021 
00022 class RooDecay : public RooAbsAnaConvPdf {
00023 public:
00024 
00025   enum DecayType { SingleSided, DoubleSided, Flipped };
00026 
00027   // Constructors, assignment etc
00028   inline RooDecay() { }
00029   RooDecay(const char *name, const char *title, RooRealVar& t, 
00030            RooAbsReal& tau, const RooResolutionModel& model, DecayType type) ;
00031   RooDecay(const RooDecay& other, const char* name=0);
00032   virtual TObject* clone(const char* newname) const { return new RooDecay(*this,newname) ; }
00033   virtual ~RooDecay();
00034 
00035   virtual Double_t coefficient(Int_t basisIndex) const ;
00036 
00037   Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const;
00038   void generateEvent(Int_t code);
00039   
00040 protected:
00041   
00042   RooRealProxy _t ;
00043   RooRealProxy _tau ;
00044   DecayType    _type ;
00045   Int_t        _basisExp ;
00046 
00047   ClassDef(RooDecay,1) // General decay function p.d.f 
00048 };
00049 
00050 #endif

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