Logo ROOT  
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
22class RooRealVar;
23
24class RooUniform : public RooAbsPdf {
25public:
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 void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
38 std::string
39 buildCallToAnalyticIntegral(Int_t code, const char *rangeName, RooFit::Detail::CodeSquashContext &ctx) const override;
40
41protected:
42
44
45 double evaluate() const override ;
46
47
48private:
49
50 ClassDefOverride(RooUniform,1) // Flat PDF in N dimensions
51};
52
53#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
A class to maintain the context for squashing of RooFit models into code.
Variable that can be changed from the outside.
Definition RooRealVar.h:37
Flat p.d.f.
Definition RooUniform.h:24
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Advertise analytical integral.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
std::string buildCallToAnalyticIntegral(Int_t code, const char *rangeName, RooFit::Detail::CodeSquashContext &ctx) const override
This function defines the analytical integral translation for the class.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implement analytical integral.
TObject * clone(const char *newname) const override
Definition RooUniform.h:29
RooListProxy x
Definition RooUniform.h:43
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, bool staticInitOK=true) const override
Advertise internal generator.
void generateEvent(Int_t code) override
Implement internal generator.
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 ...
Mother of all ROOT objects.
Definition TObject.h:41