ROOT
master
Reference Guide
Loading...
Searching...
No Matches
RooUniform.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitModels *
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_UNIFORM
17
#define ROO_UNIFORM
18
19
#include "
RooAbsPdf.h
"
20
#include "
RooListProxy.h
"
21
22
class
RooRealVar
;
23
24
class
RooUniform
:
public
RooAbsPdf
{
25
public
:
26
RooUniform
() {} ;
27
RooUniform
(
const
char
*
name
,
const
char
*title,
const
RooArgSet
& _x);
28
RooUniform
(
const
RooUniform
& other,
const
char
*
name
=
nullptr
) ;
29
TObject
*
clone
(
const
char
* newname)
const override
{
return
new
RooUniform
(*
this
,newname); }
30
31
Int_t
getAnalyticalIntegral
(
RooArgSet
& allVars,
RooArgSet
& analVars,
const
char
* rangeName=
nullptr
)
const override
;
32
double
analyticalIntegral
(
Int_t
code,
const
char
* rangeName=
nullptr
)
const override
;
33
34
Int_t
getGenerator
(
const
RooArgSet
& directVars,
RooArgSet
&generateVars,
bool
staticInitOK=
true
)
const override
;
35
void
generateEvent
(
Int_t
code)
override
;
36
37
protected
:
38
39
RooListProxy
x
;
40
41
double
evaluate
()
const override
;
42
43
44
private
:
45
46
ClassDefOverride
(
RooUniform
,1)
// Flat PDF in N dimensions
47
};
48
49
#endif
RooAbsPdf.h
RooListProxy.h
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
name
char name[80]
Definition
TGX11.cxx:110
RooAbsPdf
Abstract interface for all probability density functions.
Definition
RooAbsPdf.h:40
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgSet.h:24
RooCollectionProxy< RooArgList >
RooRealVar
Variable that can be changed from the outside.
Definition
RooRealVar.h:37
RooUniform
Flat p.d.f.
Definition
RooUniform.h:24
RooUniform::getAnalyticalIntegral
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Advertise analytical integral.
Definition
RooUniform.cxx:56
RooUniform::evaluate
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition
RooUniform.cxx:48
RooUniform::analyticalIntegral
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implement analytical integral.
Definition
RooUniform.cxx:79
RooUniform::clone
TObject * clone(const char *newname) const override
Definition
RooUniform.h:29
RooUniform::RooUniform
RooUniform()
Definition
RooUniform.h:26
RooUniform::x
RooListProxy x
Definition
RooUniform.h:39
RooUniform::getGenerator
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Advertise internal generator.
Definition
RooUniform.cxx:94
RooUniform::generateEvent
void generateEvent(Int_t code) override
Implement internal generator.
Definition
RooUniform.cxx:117
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
int
roofit
roofit
inc
RooUniform.h
ROOT master - Reference Guide Generated on Thu Dec 19 2024 09:46:47 (GVA Time) using Doxygen 1.9.8