Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooBreitWigner.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitModels *
4 * File: $Id: RooBreitWigner.h,v 1.9 2007/07/12 20:30:49 wouter Exp $
5 * Authors: *
6 * AS, Abi Soffer, Colorado State University, abi@slac.stanford.edu *
7 * TS, Thomas Schietinger, SLAC, schieti@slac.stanford.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * Colorado State University *
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_BREITWIGNER
18#define ROO_BREITWIGNER
19
20#include "RooAbsPdf.h"
21#include "RooRealProxy.h"
22
23class RooRealVar;
24
25class RooBreitWigner : public RooAbsPdf {
26public:
28 RooBreitWigner(const char *name, const char *title,
29 RooAbsReal& _x, RooAbsReal& _mean, RooAbsReal& _width);
30 RooBreitWigner(const RooBreitWigner& other, const char* name=nullptr) ;
31 TObject* clone(const char* newname) const override { return new RooBreitWigner(*this,newname); }
32 inline ~RooBreitWigner() override { }
33
34 Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=nullptr) const override ;
35 double analyticalIntegral(Int_t code, const char* rangeName=nullptr) const override ;
36
37protected:
38
42
43 double evaluate() const override ;
44 void computeBatch(cudaStream_t*, double* output, size_t nEvents, RooFit::Detail::DataMap const&) const override;
45 inline bool canComputeBatchWithCuda() const override { return true; }
46
47// void initGenerator();
48// Int_t generateDependents();
49
50private:
51
52 ClassDefOverride(RooBreitWigner,1) // Breit Wigner PDF
53};
54
55#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Class RooBreitWigner is a RooAbsPdf implementation that models a non-relativistic Breit-Wigner shape.
~RooBreitWigner() override
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
RooRealProxy width
double analyticalIntegral(Int_t code, const char *rangeName=nullptr) const override
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
TObject * clone(const char *newname) const override
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=nullptr) const override
Interface function getAnalyticalIntergral advertises the analytical integrals that are supported.
bool canComputeBatchWithCuda() const override
void computeBatch(cudaStream_t *, double *output, size_t nEvents, RooFit::Detail::DataMap const &) const override
Compute multiple values of BreitWigner distribution.
RooRealProxy mean
RooRealProxy x
RooRealVar represents a variable that can be changed from the outside.
Definition RooRealVar.h:40
Mother of all ROOT objects.
Definition TObject.h:41
static void output()