Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Heaviside.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 *
4 * Copyright (c) 2023, CERN
5 *
6 * Redistribution and use in source and binary forms,
7 * with or without modification, are permitted according to the terms
8 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
9 */
10
11#ifndef RooStats_Heaviside
12#define RooStats_Heaviside
13
14#include "RooAbsReal.h"
15#include "RooRealProxy.h"
16#include "RooCategoryProxy.h"
17#include "RooAbsCategory.h"
18
19namespace RooStats {
20
21 class Heaviside : public RooAbsReal {
22 public:
23 Heaviside() {} ;
24 Heaviside(const char *name, const char *title,
25 RooAbsReal& _x,
26 RooAbsReal& _c);
27 Heaviside(const Heaviside& other, const char* name=nullptr) ;
28 TObject* clone(const char* newname) const override { return new Heaviside(*this,newname); }
29
30 protected:
31
34
35 double evaluate() const override ;
36
37 private:
38
40 };
41}
42
43#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract base class for objects that represent a real value and implements functionality common to al...
Definition RooAbsReal.h:59
Represents the Heaviside function.
Definition Heaviside.h:21
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition Heaviside.cxx:52
RooRealProxy c
Definition Heaviside.h:33
RooRealProxy x
Definition Heaviside.h:32
TObject * clone(const char *newname) const override
Definition Heaviside.h:28
Mother of all ROOT objects.
Definition TObject.h:41
Namespace for the RooStats classes.
Definition Asimov.h:19