ROOT
v6-32
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
22
class
RooRealVar
;
23
class
RooArgList
;
24
25
class
RooRecursiveFraction
:
public
RooAbsReal
{
26
public
:
27
28
RooRecursiveFraction
() =
default
;
29
RooRecursiveFraction
(
const
char
*
name
,
const
char
*title,
const
RooArgList
& fracSet) ;
30
31
RooRecursiveFraction
(
const
RooRecursiveFraction
& other,
const
char
*
name
=
nullptr
);
32
TObject
*
clone
(
const
char
* newname)
const override
{
return
new
RooRecursiveFraction
(*
this
, newname); }
33
34
void
translate
(
RooFit::Detail::CodeSquashContext
&ctx)
const override
;
35
36
protected
:
37
38
RooListProxy
_list
;
39
40
double
evaluate
()
const override
;
41
42
ClassDefOverride
(
RooRecursiveFraction
,1)
// Recursive fraction formula f1*(1-f2)*(1-f3) etc...
43
} ;
44
45
#endif
RooAbsReal.h
RooListProxy.h
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:341
name
char name[80]
Definition
TGX11.cxx:110
RooAbsReal
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition
RooAbsReal.h:59
RooArgList
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgList.h:22
RooCollectionProxy< RooArgList >
RooFit::Detail::CodeSquashContext
A class to maintain the context for squashing of RooFit models into code.
Definition
CodeSquashContext.h:42
RooRealVar
Variable that can be changed from the outside.
Definition
RooRealVar.h:37
RooRecursiveFraction
A RooAbsReal implementation that calculates the plain fraction of sum of RooAddPdf components from a ...
Definition
RooRecursiveFraction.h:25
RooRecursiveFraction::evaluate
double evaluate() const override
Calculate and return value of .
Definition
RooRecursiveFraction.cxx:77
RooRecursiveFraction::clone
TObject * clone(const char *newname) const override
Definition
RooRecursiveFraction.h:32
RooRecursiveFraction::RooRecursiveFraction
RooRecursiveFraction()=default
RooRecursiveFraction::_list
RooListProxy _list
Definition
RooRecursiveFraction.h:38
RooRecursiveFraction::translate
void translate(RooFit::Detail::CodeSquashContext &ctx) const override
This function defines a translation for each RooAbsReal based object that can be used to express the ...
Definition
RooRecursiveFraction.cxx:91
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
roofit
roofitcore
inc
RooRecursiveFraction.h
ROOT v6-32 - Reference Guide Generated on Thu Dec 12 2024 15:06:11 (GVA Time) using Doxygen 1.9.8