Logo ROOT  
Reference Guide
RooChebychev.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitModels *
4 * File: $Id: RooChebychev.h,v 1.6 2007/05/11 09:13:07 verkerke Exp $
5 * Authors: *
6 * GR, Gerhard Raven, UC San Diego, Gerhard.Raven@slac.stanford.edu
7 * *
8 * Copyright (c) 2000-2005, Regents of the University of California *
9 * and Stanford University. All rights reserved. *
10 * *
11 * Redistribution and use in source and binary forms, *
12 * with or without modification, are permitted according to the terms *
13 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
14 *****************************************************************************/
15#ifndef ROO_CHEBYCHEV
16#define ROO_CHEBYCHEV
17
18#include "RooAbsPdf.h"
19#include "RooRealProxy.h"
20#include "RooListProxy.h"
21
22class RooRealVar;
23class RooArgList ;
24
25class RooChebychev : public RooAbsPdf {
26public:
27
28 RooChebychev() ;
29 RooChebychev(const char *name, const char *title,
31
32 RooChebychev(const RooChebychev& other, const char *name = nullptr);
33 TObject* clone(const char* newname) const override { return new RooChebychev(*this, newname); }
34 inline ~RooChebychev() override { }
35
36 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
37 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
38
39 void selectNormalizationRange(const char* rangeName=nullptr, bool force=false) override ;
40
41private:
42
46
47 double evaluate() const override;
48 void computeBatch(cudaStream_t*, double* output, size_t nEvents, RooFit::Detail::DataMap const&) const override;
49 inline bool canComputeBatchWithCuda() const override { return true; }
50
51 double evalAnaInt(const double a, const double b) const;
52
53 ClassDefOverride(RooChebychev,2) // Chebychev polynomial PDF
54};
55
56#endif
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
char name[80]
Definition: TGX11.cxx:110
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:62
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:56
Chebychev polynomial p.d.f.
Definition: RooChebychev.h:25
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
bool canComputeBatchWithCuda() const override
Definition: RooChebychev.h:49
~RooChebychev() override
Definition: RooChebychev.h:34
RooRealProxy _x
Definition: RooChebychev.h:43
void selectNormalizationRange(const char *rangeName=nullptr, bool force=false) override
Interface function to force use of a given normalization range to interpret function value.
double evalAnaInt(const double a, const double b) const
TObject * clone(const char *newname) const override
Definition: RooChebychev.h:33
TNamed * _refRangeName
Definition: RooChebychev.h:45
void computeBatch(cudaStream_t *, double *output, size_t nEvents, RooFit::Detail::DataMap const &) const override
Compute multiple values of Chebychev.
RooListProxy _coefList
Definition: RooChebychev.h:44
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:40
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Mother of all ROOT objects.
Definition: TObject.h:41
TArc a
Definition: textangle.C:12
static void output()