RooRecursiveFraction.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooRecursiveFraction.h 23538 2008-04-24 21:02:00Z wouter $
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_RECURSIVE_FRACTION
00017 #define ROO_RECURSIVE_FRACTION
00018 
00019 #include "RooAbsReal.h"
00020 #include "RooListProxy.h"
00021 
00022 class RooRealVar;
00023 class RooArgList ;
00024 
00025 class RooRecursiveFraction : public RooAbsReal {
00026 public:
00027 
00028   RooRecursiveFraction() ;
00029   RooRecursiveFraction(const char *name, const char *title, const RooArgList& fracSet) ;
00030   virtual ~RooRecursiveFraction() ;
00031 
00032   RooRecursiveFraction(const RooRecursiveFraction& other, const char* name = 0);
00033   virtual TObject* clone(const char* newname) const { return new RooRecursiveFraction(*this, newname); }
00034 
00035 protected:
00036 
00037   RooListProxy _list ;
00038   mutable TIterator* _listIter ;  //! do not persist
00039 
00040   Double_t evaluate() const;
00041 
00042   ClassDef(RooRecursiveFraction,1) // Recursive fraction formula f1*(1-f2)*(1-f3) etc...
00043 } ;
00044 
00045 #endif

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