ROOT
v6-24
Reference Guide
Loading...
Searching...
No Matches
RooVoigtian.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitModels *
4
* File: $Id: RooVoigtian.h,v 1.7 2007/07/12 20:30:49 wouter Exp $
5
* Authors: *
6
* TS, Thomas Schietinger, SLAC, schieti@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
16
#ifndef ROO_VOIGTIAN
17
#define ROO_VOIGTIAN
18
19
#include "
RooAbsPdf.h
"
20
#include "
RooRealProxy.h
"
21
22
class
RooRealVar
;
23
24
class
RooVoigtian
:
public
RooAbsPdf
{
25
public
:
26
RooVoigtian
() {} ;
27
RooVoigtian
(
const
char
*
name
,
const
char
*title,
28
RooAbsReal
& _x,
RooAbsReal
& _mean,
29
RooAbsReal
& _width,
RooAbsReal
& _sigma,
30
Bool_t
doFast =
kFALSE
);
31
RooVoigtian
(
const
RooVoigtian
& other,
const
char
*
name
=0) ;
32
virtual
TObject
*
clone
(
const
char
* newname)
const
{
return
new
RooVoigtian
(*
this
,newname); }
33
inline
virtual
~RooVoigtian
() { }
34
35
// These methods allow the user to select the fast evaluation
36
// of the complex error function using look-up tables
37
// (default is the "slow" CERNlib algorithm)
38
39
inline
void
selectFastAlgorithm
() {
_doFast
=
kTRUE
; }
40
inline
void
selectDefaultAlgorithm
() {
_doFast
=
kFALSE
; }
41
42
protected
:
43
44
RooRealProxy
x
;
45
RooRealProxy
mean
;
46
RooRealProxy
width
;
47
RooRealProxy
sigma
;
48
49
Double_t
evaluate
()
const
;
50
RooSpan<double>
evaluateSpan
(
RooBatchCompute::RunContext
& evalData,
const
RooArgSet
* normSet)
const
;
51
52
private
:
53
54
Bool_t
_doFast
;
55
ClassDef
(
RooVoigtian
,2)
// Voigtian PDF (Gauss (x) BreitWigner)
56
};
57
58
#endif
59
RooAbsPdf.h
RooRealProxy.h
kFALSE
const Bool_t kFALSE
Definition
RtypesCore.h:92
Double_t
double Double_t
Definition
RtypesCore.h:59
kTRUE
const Bool_t kTRUE
Definition
RtypesCore.h:91
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
name
char name[80]
Definition
TGX11.cxx:110
RooAbsPdf
Definition
RooAbsPdf.h:43
RooAbsReal
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition
RooAbsReal.h:61
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition
RooArgSet.h:29
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition
RooRealVar.h:39
RooSpan
A simple container to hold a batch of data values.
Definition
RooSpan.h:34
RooTemplateProxy< RooAbsReal >
RooVoigtian
RooVoigtian is an efficient implementation of the convolution of a Breit-Wigner with a Gaussian,...
Definition
RooVoigtian.h:24
RooVoigtian::x
RooRealProxy x
Definition
RooVoigtian.h:44
RooVoigtian::selectDefaultAlgorithm
void selectDefaultAlgorithm()
Definition
RooVoigtian.h:40
RooVoigtian::evaluateSpan
RooSpan< double > evaluateSpan(RooBatchCompute::RunContext &evalData, const RooArgSet *normSet) const
Compute multiple values of Voigtian distribution.
Definition
RooVoigtian.cxx:103
RooVoigtian::clone
virtual TObject * clone(const char *newname) const
Definition
RooVoigtian.h:32
RooVoigtian::_doFast
Bool_t _doFast
Definition
RooVoigtian.h:54
RooVoigtian::evaluate
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Definition
RooVoigtian.cxx:69
RooVoigtian::selectFastAlgorithm
void selectFastAlgorithm()
Definition
RooVoigtian.h:39
RooVoigtian::~RooVoigtian
virtual ~RooVoigtian()
Definition
RooVoigtian.h:33
RooVoigtian::sigma
RooRealProxy sigma
Definition
RooVoigtian.h:47
RooVoigtian::RooVoigtian
RooVoigtian()
Definition
RooVoigtian.h:26
RooVoigtian::mean
RooRealProxy mean
Definition
RooVoigtian.h:45
RooVoigtian::width
RooRealProxy width
Definition
RooVoigtian.h:46
TObject
Mother of all ROOT objects.
Definition
TObject.h:37
bool
RooBatchCompute::RunContext
This struct enables passing computation data around between elements of a computation graph.
Definition
RunContext.h:31
roofit
roofit
inc
RooVoigtian.h
ROOT v6-24 - Reference Guide Generated on Tue Aug 22 2023 03:06:45 (GVA Time) using Doxygen 1.9.8