Logo ROOT   6.18/05
Reference Guide
RooJohnson.h
Go to the documentation of this file.
1// Author: Stephan Hageboeck, CERN, May 2019
2/*****************************************************************************
3 * Project: RooFit *
4 * Package: RooFitModels *
5 * File: $Id: RooJohnson.h,v 1.16 2007/07/12 20:30:49 wouter Exp $
6 * Authors: *
7 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
8 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
9 * *
10 * Copyright (c) 2000-2005, Regents of the University of California *
11 * and Stanford University. All rights reserved. *
12 * *
13 * Redistribution and use in source and binary forms, *
14 * with or without modification, are permitted according to the terms *
15 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
16 *****************************************************************************/
17#ifndef ROO_JOHNSON
18#define ROO_JOHNSON
19
20#include "RooAbsPdf.h"
21#include "RooRealProxy.h"
22#include "RooConstVar.h"
23
24class RooRealVar;
25
26class RooJohnson final : public RooAbsPdf {
27public:
28 RooJohnson() = default;
29
30 RooJohnson(const char *name, const char *title,
33 double massThreshold = -std::numeric_limits<double>::max());
34
35 RooJohnson(const RooJohnson& other, const char* newName = nullptr);
36
37 virtual ~RooJohnson() = default;
38
39 TObject* clone(const char* newname) const override {
40 return new RooJohnson(*this,newname);
41 }
42
43 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const override;
44 Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const override;
45
46 Int_t getGenerator(const RooArgSet& directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const override;
47 void generateEvent(Int_t code) override;
48
49private:
51
55
58
59 double _massThreshold{-1.E300};
60
61 Double_t evaluate() const override;
62// RooSpan<double> evaluateBatch(std::size_t begin, std::size_t end) const override;
63
65};
66
67#endif
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDefOverride(name, id)
Definition: Rtypes.h:330
char name[80]
Definition: TGX11.cxx:109
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
RooAbsMoment * sigma(RooRealVar &obs)
Definition: RooAbsReal.h:317
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
Johnson's distribution.
Definition: RooJohnson.h:26
virtual ~RooJohnson()=default
RooJohnson()=default
Double_t evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition: RooJohnson.cxx:97
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
Definition: RooJohnson.cxx:128
RooRealProxy _mass
Definition: RooJohnson.h:52
TObject * clone(const char *newname) const override
Definition: RooJohnson.h:39
RooRealProxy _delta
Definition: RooJohnson.h:57
RooRealProxy _gamma
Definition: RooJohnson.h:56
void generateEvent(Int_t code) override
Generate events based code obtained by getGenerator.
Definition: RooJohnson.cxx:206
Int_t getGenerator(const RooArgSet &directVars, RooArgSet &generateVars, Bool_t staticInitOK=kTRUE) const override
Advertise which kind of direct event generation is supported.
Definition: RooJohnson.cxx:192
RooRealProxy _mu
Definition: RooJohnson.h:53
RooRealProxy _lambda
Definition: RooJohnson.h:54
double _massThreshold
Definition: RooJohnson.h:59
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
Definition: RooJohnson.cxx:115
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
Mother of all ROOT objects.
Definition: TObject.h:37
double gamma(double x)