CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
RooCMSShape Class Reference

#include <RooCMSShape.h>

Inheritance diagram for RooCMSShape:

Public Member Functions

 ClassDefOverride (RooCMSShape, 1)
 
TObject * clone (const char *newname) const override
 
Double_t evaluate () const override
 
 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 () override
 

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() [1/3]

RooCMSShape::RooCMSShape ( )
inline

Definition at line 34 of file RooCMSShape.h.

Referenced by clone().

34 {}

◆ RooCMSShape() [2/3]

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.

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) {}
RooRealProxy gamma
Definition: RooCMSShape.h:54
RooRealProxy peak
Definition: RooCMSShape.h:55
RooRealProxy alpha
Definition: RooCMSShape.h:52
RooRealProxy x
Definition: RooCMSShape.h:51
RooRealProxy beta
Definition: RooCMSShape.h:53

◆ RooCMSShape() [3/3]

RooCMSShape::RooCMSShape ( const RooCMSShape other,
const char *  name 
)

Definition at line 41 of file RooCMSShape.cc.

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

◆ ~RooCMSShape()

RooCMSShape::~RooCMSShape ( )
inlineoverride

Definition at line 45 of file RooCMSShape.h.

45 {}

Member Function Documentation

◆ ClassDefOverride()

RooCMSShape::ClassDefOverride ( RooCMSShape  ,
 
)

◆ clone()

TObject* RooCMSShape::clone ( const char *  newname) const
inlineoverride

Definition at line 44 of file RooCMSShape.h.

References RooCMSShape().

44 { return new RooCMSShape(*this, newname); }

◆ evaluate()

Double_t RooCMSShape::evaluate ( ) const
override

Definition at line 49 of file RooCMSShape.cc.

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

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

Member Data Documentation

◆ alpha

RooRealProxy RooCMSShape::alpha
protected

Definition at line 52 of file RooCMSShape.h.

Referenced by evaluate().

◆ beta

RooRealProxy RooCMSShape::beta
protected

Definition at line 53 of file RooCMSShape.h.

Referenced by evaluate().

◆ gamma

RooRealProxy RooCMSShape::gamma
protected

Definition at line 54 of file RooCMSShape.h.

Referenced by evaluate().

◆ peak

RooRealProxy RooCMSShape::peak
protected

Definition at line 55 of file RooCMSShape.h.

Referenced by evaluate().

◆ x

RooRealProxy RooCMSShape::x
protected