ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
roofit
roofitcore
inc
RooFracRemainder.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_FRAC_REMAINDER
17
#define ROO_FRAC_REMAINDER
18
19
#include "
RooAbsReal.h
"
20
#include "
RooListProxy.h
"
21
22
class
RooRealVar
;
23
class
RooArgList
;
24
25
class
RooFracRemainder
:
public
RooAbsReal
{
26
public
:
27
28
RooFracRemainder
() ;
29
RooFracRemainder
(
const
char
*
name
,
const
char
*title,
const
RooArgSet
& sumSet) ;
30
virtual
~RooFracRemainder
() ;
31
32
RooFracRemainder
(
const
RooFracRemainder
& other,
const
char
* name = 0);
33
virtual
TObject
*
clone
(
const
char
* newname)
const
{
return
new
RooFracRemainder
(*
this
, newname); }
34
35
protected
:
36
37
RooListProxy
_set1
;
// Set of input fractions
38
mutable
TIterator
*
_setIter1
;
//! Iterator over set of input fractions
39
40
Double_t
evaluate
()
const
;
41
42
ClassDef
(
RooFracRemainder
,1)
// Utility function calculating remainder fraction, i.e. 1-sum_i(a_i)
43
};
44
45
#endif
RooArgSet
Definition:
RooArgSet.h:26
RooFracRemainder::_setIter1
TIterator * _setIter1
Definition:
RooFracRemainder.h:38
RooListProxy.h
TIterator
Iterator abstract base class.
Definition:
TIterator.h:32
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
RooFracRemainder::RooFracRemainder
RooFracRemainder()
Default constructor.
Definition:
RooFracRemainder.cxx:51
RooRealVar
Definition:
RooRealVar.h:37
RooFracRemainder::~RooFracRemainder
virtual ~RooFracRemainder()
Destructor.
Definition:
RooFracRemainder.cxx:101
RooFracRemainder::evaluate
Double_t evaluate() const
Iterator over set of input fractions.
Definition:
RooFracRemainder.cxx:111
RooListProxy
Definition:
RooListProxy.h:26
RooAbsReal.h
Double_t
double Double_t
Definition:
RtypesCore.h:55
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition:
RooAbsReal.h:53
RooFracRemainder::clone
virtual TObject * clone(const char *newname) const
Definition:
RooFracRemainder.h:33
name
#define name(a, b)
Definition:
linkTestLib0.cpp:5
TObject
Mother of all ROOT objects.
Definition:
TObject.h:58
RooFracRemainder::_set1
RooListProxy _set1
Definition:
RooFracRemainder.h:37
RooArgList
Definition:
RooArgList.h:21
RooFracRemainder
Definition:
RooFracRemainder.h:25