Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/RooRecursiveFraction.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*****************************************************************************
0002  * Project: RooFit                                                           *
0003  * Package: RooFitCore                                                       *
0004  *    File: $Id$
0005  * Authors:                                                                  *
0006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
0007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
0008  *                                                                           *
0009  * Copyright (c) 2000-2005, Regents of the University of California          *
0010  *                          and Stanford University. All rights reserved.    *
0011  *                                                                           *
0012  * Redistribution and use in source and binary forms,                        *
0013  * with or without modification, are permitted according to the terms        *
0014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
0015  *****************************************************************************/
0016 #ifndef ROO_RECURSIVE_FRACTION
0017 #define ROO_RECURSIVE_FRACTION
0018 
0019 #include "RooAbsReal.h"
0020 #include "RooListProxy.h"
0021 
0022 class RooRealVar;
0023 class RooArgList ;
0024 
0025 class RooRecursiveFraction : public RooAbsReal {
0026 public:
0027 
0028   RooRecursiveFraction() = default;
0029   RooRecursiveFraction(const char *name, const char *title, const RooArgList& fracSet) ;
0030 
0031   RooRecursiveFraction(const RooRecursiveFraction& other, const char *name = nullptr);
0032   TObject* clone(const char* newname) const override { return new RooRecursiveFraction(*this, newname); }
0033 
0034   void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
0035 
0036 protected:
0037 
0038   RooListProxy _list ;
0039 
0040   double evaluate() const override;
0041 
0042   ClassDefOverride(RooRecursiveFraction,1) // Recursive fraction formula f1*(1-f2)*(1-f3) etc...
0043 } ;
0044 
0045 #endif