Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooRecursiveFraction.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * File: $Id$
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16#ifndef ROO_RECURSIVE_FRACTION
17#define ROO_RECURSIVE_FRACTION
18
19#include "RooAbsReal.h"
20#include "RooListProxy.h"
21
23public:
24
26 RooRecursiveFraction(const char *name, const char *title, const RooArgList& fracSet) ;
27
28 RooRecursiveFraction(const RooRecursiveFraction& other, const char *name = nullptr);
29 TObject* clone(const char* newname) const override { return new RooRecursiveFraction(*this, newname); }
30
31 RooArgList const &variables() const { return _list; }
32
33protected:
34
36
37 double evaluate() const override;
38
39 ClassDefOverride(RooRecursiveFraction,1) // Recursive fraction formula f1*(1-f2)*(1-f3) etc...
40} ;
41
42#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
char name[80]
Definition TGX11.cxx:110
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
A RooAbsReal implementation that calculates the plain fraction of sum of RooAddPdf components from a ...
double evaluate() const override
Calculate and return value of .
TObject * clone(const char *newname) const override
RooArgList const & variables() const
RooRecursiveFraction()=default
Mother of all ROOT objects.
Definition TObject.h:41