test
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 Attributes
RooCMSShape Class Reference

#include <RooCMSShape.h>

Inheritance diagram for RooCMSShape:

Public Member Functions

 ClassDef (RooCMSShape, 1)
 
virtual TObject * clone (const char *newname) const
 
Double_t evaluate () const
 
 RooCMSShape ()
 
 RooCMSShape (const char *name, const char *title, RooAbsReal &_x, RooAbsReal &_alpha, RooAbsReal &_beta, RooAbsReal &_gamma, RooAbsReal &_peak)
 
 RooCMSShape (const RooCMSShape &other, const char *name)
 
 ~RooCMSShape ()
 

Protected Attributes

RooRealProxy alpha
 
RooRealProxy beta
 
RooRealProxy gamma
 
RooRealProxy peak
 
RooRealProxy x
 

Detailed Description

Definition at line 32 of file RooCMSShape.h.

Constructor & Destructor Documentation

RooCMSShape::RooCMSShape ( )
inline

Definition at line 34 of file RooCMSShape.h.

Referenced by clone().

34 {};
RooCMSShape::RooCMSShape ( const char *  name,
const char *  title,
RooAbsReal &  _x,
RooAbsReal &  _alpha,
RooAbsReal &  _beta,
RooAbsReal &  _gamma,
RooAbsReal &  _peak 
)

Definition at line 27 of file RooCMSShape.cc.

32  :
33  RooAbsPdf(name,title),
34  x("x","x",this,_x),
35  alpha("alpha","alpha",this,_alpha),
36  beta("beta","beta",this,_beta),
37  gamma("gamma","gamma",this,_gamma),
38  peak("peak","peak",this,_peak)
39  { }
RooRealProxy gamma
Definition: RooCMSShape.h:55
RooRealProxy peak
Definition: RooCMSShape.h:56
RooRealProxy alpha
Definition: RooCMSShape.h:53
RooRealProxy x
Definition: RooCMSShape.h:52
RooRealProxy beta
Definition: RooCMSShape.h:54
RooCMSShape::RooCMSShape ( const RooCMSShape other,
const char *  name 
)

Definition at line 42 of file RooCMSShape.cc.

42  :
43  RooAbsPdf(other,name),
44  x("x",this,other.x),
45  alpha("alpha",this,other.alpha),
46  beta("beta",this,other.beta),
47  gamma("gamma",this,other.gamma),
48  peak("peak",this,other.peak)
49  { }
RooRealProxy gamma
Definition: RooCMSShape.h:55
RooRealProxy peak
Definition: RooCMSShape.h:56
RooRealProxy alpha
Definition: RooCMSShape.h:53
RooRealProxy x
Definition: RooCMSShape.h:52
RooRealProxy beta
Definition: RooCMSShape.h:54
RooCMSShape::~RooCMSShape ( )
inline

Definition at line 44 of file RooCMSShape.h.

44 {}

Member Function Documentation

RooCMSShape::ClassDef ( RooCMSShape  ,
 
)
virtual TObject* RooCMSShape::clone ( const char *  newname) const
inlinevirtual

Definition at line 43 of file RooCMSShape.h.

References RooCMSShape().

43 { return new RooCMSShape(*this,newname); }
Double_t RooCMSShape::evaluate ( ) const

Definition at line 53 of file RooCMSShape.cc.

References alpha, beta, create_public_lumi_plots::exp, gamma, peak, and x.

54  {
55  // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
56 
57  //Double_t erf = TMath::Erfc((alpha - x) * beta);
58  Double_t erf = RooMath::erfc((alpha - x) * beta);
59  Double_t u = (x - peak)*gamma;
60 
61  if(u < -70) u = 1e20;
62  else if( u>70 ) u = 0;
63  else u = exp(-u); //exponential decay
64  return erf*u;
65  }
RooRealProxy gamma
Definition: RooCMSShape.h:55
RooRealProxy peak
Definition: RooCMSShape.h:56
RooRealProxy alpha
Definition: RooCMSShape.h:53
RooRealProxy x
Definition: RooCMSShape.h:52
RooRealProxy beta
Definition: RooCMSShape.h:54

Member Data Documentation

RooRealProxy RooCMSShape::alpha
protected

Definition at line 53 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::beta
protected

Definition at line 54 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::gamma
protected

Definition at line 55 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::peak
protected

Definition at line 56 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::x
protected