CMS 3D CMS Logo

Public Member Functions | Protected Attributes

RooCMSShape Class Reference

#include <RooCMSShape.h>

List of all members.

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().

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

Definition at line 43 of file RooCMSShape.cc.

                                                                   :
   RooAbsPdf(other,name), 
   x("x",this,other.x),
   alpha("alpha",this,other.alpha),
   beta("beta",this,other.beta),
   gamma("gamma",this,other.gamma),
   peak("peak",this,other.peak)
 { } 
RooCMSShape::~RooCMSShape ( ) [inline]

Definition at line 45 of file RooCMSShape.h.

{}

Member Function Documentation

RooCMSShape::ClassDef ( RooCMSShape  ,
 
)
virtual TObject* RooCMSShape::clone ( const char *  newname) const [inline, virtual]

Definition at line 44 of file RooCMSShape.h.

References RooCMSShape().

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

Definition at line 54 of file RooCMSShape.cc.

References alpha, beta, funct::exp(), gamma, peak, and x.

 { 
  // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE 

  //Double_t erf = TMath::Erfc((alpha - x) * beta);
  Double_t erf = RooMath::erfc((alpha - x) * beta);
  Double_t u = (x - peak)*gamma;

  if(u < -70) u = 1e20;
  else if( u>70 ) u = 0;
  else u = exp(-u);   //exponential decay
  return erf*u;
 } 

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]

Definition at line 53 of file RooCMSShape.h.

Referenced by evaluate().