CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
RooCB Class Reference

#include <HZZ2L2QRooPdfs.h>

Inheritance diagram for RooCB:

Public Member Functions

virtual TObject * clone (const char *newname) const
 
 RooCB ()
 
 RooCB (const char *name, const char *title, RooAbsReal &_x, RooAbsReal &_mean, RooAbsReal &_width, RooAbsReal &_alpha, RooAbsReal &_n, RooAbsReal &_theta)
 
 RooCB (const RooCB &other, const char *name=0)
 
virtual ~RooCB ()
 

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy alpha
 
RooRealProxy mean
 
RooRealProxy n
 
RooRealProxy theta
 
RooRealProxy width
 
RooRealProxy x
 

Detailed Description

Definition at line 8 of file HZZ2L2QRooPdfs.h.

Constructor & Destructor Documentation

RooCB::RooCB ( )

Definition at line 15 of file HZZ2L2QRooPdfs.cc.

Referenced by clone().

15 {}
RooCB::RooCB ( const char *  name,
const char *  title,
RooAbsReal &  _x,
RooAbsReal &  _mean,
RooAbsReal &  _width,
RooAbsReal &  _alpha,
RooAbsReal &  _n,
RooAbsReal &  _theta 
)

Definition at line 17 of file HZZ2L2QRooPdfs.cc.

24  :
25  RooAbsPdf(name,title),
26  x("x","x",this,_x),
27  mean("mean","mean",this,_mean),
28  width("width","width",this,_width),
29  alpha("alpha","alpha",this,_alpha),
30  n("n","n",this,_n),
31  theta("theta","theta",this,_theta)
32 {
33 }
RooRealProxy width
RooRealProxy alpha
RooRealProxy n
RooRealProxy theta
RooRealProxy mean
RooRealProxy x
RooCB::RooCB ( const RooCB other,
const char *  name = 0 
)

Definition at line 35 of file HZZ2L2QRooPdfs.cc.

35  :
36  RooAbsPdf(other,name),
37  x("x",this,other.x),
38  mean("mean",this,other.mean),
39  width("width",this,other.width),
40  alpha("alpha",this,other.alpha),
41  n("n",this,other.n),
42  theta("theta",this,other.theta)
43 {
44 }
RooRealProxy width
RooRealProxy alpha
RooRealProxy n
RooRealProxy theta
RooRealProxy mean
RooRealProxy x
virtual RooCB::~RooCB ( )
inlinevirtual

Definition at line 21 of file HZZ2L2QRooPdfs.h.

21 { }

Member Function Documentation

virtual TObject* RooCB::clone ( const char *  newname) const
inlinevirtual

Definition at line 20 of file HZZ2L2QRooPdfs.h.

References RooCB().

20 { return new RooCB(*this,newname); }
double RooCB::evaluate ( ) const
protected

Definition at line 46 of file HZZ2L2QRooPdfs.cc.

References funct::A, a, alpha, funct::cos(), create_public_lumi_plots::exp, mean, n, funct::sin(), lumiQTWidget::t, theta, w(), width, and x.

47 {
48  double a = cos(theta)*alpha - sin(theta)*width;
49  double w = sin(theta)*alpha + cos(theta)*width;
50 
51  double t = (x-mean)/w;
52  if(a<0) t = -t;
53 
54  double absa = fabs((double)a);
55 
56  double A = TMath::Power(n/absa,n)*exp(-0.5*absa*absa);
57  double B = n/absa-absa;
58 
59  if(t >= -absa){
60  return exp(-0.5*t*t);
61  }else{
62  return A/TMath::Power(B-t,n);
63  }
64 }
RooRealProxy width
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
RooRealProxy alpha
RooRealProxy n
RooRealProxy theta
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double a
Definition: hdecay.h:121
RooRealProxy mean
RooRealProxy x
T w() const

Member Data Documentation

RooRealProxy RooCB::alpha
protected

Definition at line 28 of file HZZ2L2QRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooCB::mean
protected

Definition at line 26 of file HZZ2L2QRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooCB::n
protected

Definition at line 29 of file HZZ2L2QRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooCB::theta
protected

Definition at line 30 of file HZZ2L2QRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooCB::width
protected
RooRealProxy RooCB::x
protected