ROOT
v6-32
Reference Guide
Loading...
Searching...
No Matches
RooRatio.h
Go to the documentation of this file.
1
/*
2
* Project: RooFit
3
* Author:
4
* Rahul Balasubramanian, Nikhef 01 Apr 2021
5
*
6
* Copyright (c) 2023, CERN
7
*
8
* Redistribution and use in source and binary forms,
9
* with or without modification, are permitted according to the terms
10
* listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11
*/
12
13
#ifndef RooFit_RooRatio_h
14
#define RooFit_RooRatio_h
15
16
#include <
RooAbsReal.h
>
17
#include <
RooRealProxy.h
>
18
19
class
RooArgList
;
20
21
class
RooRatio
:
public
RooAbsReal
{
22
public
:
23
RooRatio
();
24
RooRatio
(
const
char
*
name
,
const
char
*title,
double
numerator,
double
denominator);
25
RooRatio
(
const
char
*
name
,
const
char
*title,
double
numerator,
RooAbsReal
&denominator);
26
RooRatio
(
const
char
*
name
,
const
char
*title,
RooAbsReal
&numerator,
double
denominator);
27
RooRatio
(
const
char
*
name
,
const
char
*title,
RooAbsReal
&numerator,
RooAbsReal
&denominator);
28
RooRatio
(
const
char
*
name
,
const
char
*title,
const
RooArgList
&num,
const
RooArgList
&denom);
29
30
RooRatio
(
const
RooRatio
&other,
const
char
*
name
=
nullptr
);
31
TObject
*
clone
(
const
char
*newname)
const override
{
return
new
RooRatio
(*
this
, newname); }
32
~RooRatio
()
override
;
33
34
protected
:
35
double
evaluate
()
const override
;
36
void
doEval
(
RooFit::EvalContext
&)
const override
;
37
inline
bool
canComputeBatchWithCuda
()
const override
{
return
true
; }
38
39
void
translate
(
RooFit::Detail::CodeSquashContext
&ctx)
const override
;
40
41
RooRealProxy
_numerator
;
42
RooRealProxy
_denominator
;
43
44
ClassDefOverride
(
RooRatio
, 2)
// Ratio of two RooAbsReal and/or numbers
45
};
46
47
#endif
RooAbsReal.h
RooRealProxy.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
RooFit::Detail::CodeSquashContext
A class to maintain the context for squashing of RooFit models into code.
Definition
CodeSquashContext.h:42
RooFit::EvalContext
Definition
EvalContext.h:84
RooRatio
Represents the ratio of two RooAbsReal objects.
Definition
RooRatio.h:21
RooRatio::_numerator
RooRealProxy _numerator
Definition
RooRatio.h:41
RooRatio::~RooRatio
~RooRatio() override
Definition
RooRatio.cxx:101
RooRatio::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
RooRatio.cxx:127
RooRatio::canComputeBatchWithCuda
bool canComputeBatchWithCuda() const override
Definition
RooRatio.h:37
RooRatio::evaluate
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition
RooRatio.cxx:114
RooRatio::RooRatio
RooRatio()
Definition
RooRatio.cxx:40
RooRatio::clone
TObject * clone(const char *newname) const override
Definition
RooRatio.h:31
RooRatio::doEval
void doEval(RooFit::EvalContext &) const override
Evaluate in batch mode.
Definition
RooRatio.cxx:121
RooRatio::_denominator
RooRealProxy _denominator
Definition
RooRatio.h:42
RooTemplateProxy< RooAbsReal >
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
roofit
roofitcore
inc
RooRatio.h
ROOT v6-32 - Reference Guide Generated on Fri Nov 1 2024 15:09:08 (GVA Time) using Doxygen 1.9.8