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 33 of file RooCMSShape.h.

Constructor & Destructor Documentation

RooCMSShape::RooCMSShape ( )
inline

Definition at line 35 of file RooCMSShape.h.

Referenced by clone().

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

Definition at line 28 of file RooCMSShape.cc.

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

Definition at line 43 of file RooCMSShape.cc.

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

Definition at line 45 of file RooCMSShape.h.

45 {}

Member Function Documentation

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

Definition at line 44 of file RooCMSShape.h.

References RooCMSShape().

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

Definition at line 54 of file RooCMSShape.cc.

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

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

Member Data Documentation

RooRealProxy RooCMSShape::alpha
protected

Definition at line 54 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::beta
protected

Definition at line 55 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::gamma
protected

Definition at line 56 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::peak
protected

Definition at line 57 of file RooCMSShape.h.

Referenced by evaluate().

RooRealProxy RooCMSShape::x
protected