Logo ROOT  
Reference Guide
No Matches
Go to the documentation of this file.
2 * Project: RooFit *
3 * Package: RooFitModels *
4 * File: $Id: RooArgusBG.h,v 1.13 2007/07/12 20:30:49 wouter Exp $
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_ARGUS_BG
17#define ROO_ARGUS_BG
19#include "RooAbsPdf.h"
20#include "RooRealProxy.h"
22class RooArgusBG : public RooAbsPdf {
25 // One of the original constructors without RooAbsReal::Ref for backwards compatibility.
26 inline RooArgusBG(const char *name, const char *title,
27 RooAbsReal& _m, RooAbsReal& _m0, RooAbsReal& _c, RooAbsReal& _p)
28 : RooArgusBG{name, title, RooAbsReal::Ref{_m}, RooAbsReal::Ref{_m0}, RooAbsReal::Ref{_c}, RooAbsReal::Ref{_p}} {}
29 // One of the original constructors without RooAbsReal::Ref for backwards compatibility.
30 inline RooArgusBG(const char *name, const char *title,
31 RooAbsReal& _m, RooAbsReal& _m0, RooAbsReal& _c)
32 : RooArgusBG{name, title, RooAbsReal::Ref{_m}, RooAbsReal::Ref{_m0}, RooAbsReal::Ref{_c}} {}
33 RooArgusBG(const char *name, const char *title,
35 RooArgusBG(const RooArgusBG& other,const char* name=nullptr) ;
36 TObject* clone(const char* newname) const override { return new RooArgusBG(*this,newname); }
38 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
39 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
47 double evaluate() const override ;
48 void doEval(RooFit::EvalContext &) const override;
49 inline bool canComputeBatchWithCuda() const override { return true; }
52// void initGenerator();
55 ClassDefOverride(RooArgusBG,1) // Argus background shape PDF
#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
A RooAbsReal::Ref can be constructed from a RooAbsReal& or a double that will be implicitly converted...
Definition RooAbsReal.h:68
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
RooArgusBG is a RooAbsPdf implementation describing the ARGUS background shape.
Definition RooArgusBG.h:22
RooArgusBG(const char *name, const char *title, RooAbsReal &_m, RooAbsReal &_m0, RooAbsReal &_c, RooAbsReal &_p)
Definition RooArgusBG.h:26
RooRealProxy m
Definition RooArgusBG.h:42
void doEval(RooFit::EvalContext &) const override
Base function for computing multiple values of a RooAbsReal.
RooArgusBG(const char *name, const char *title, RooAbsReal &_m, RooAbsReal &_m0, RooAbsReal &_c)
Definition RooArgusBG.h:30
bool canComputeBatchWithCuda() const override
Definition RooArgusBG.h:49
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
RooRealProxy c
Definition RooArgusBG.h:44
RooRealProxy p
Definition RooArgusBG.h:45
TObject * clone(const char *newname) const override
Definition RooArgusBG.h:36
RooRealProxy m0
Definition RooArgusBG.h:43
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
Mother of all ROOT objects.
Definition TObject.h:41