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

Constructor & Destructor Documentation

◆ RooCMSShape() [1/3]

RooCMSShape::RooCMSShape ( )
inline

Definition at line 52 of file RooCMSShape.h.

◆ RooCMSShape() [2/3]

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

Definition at line 26 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),

◆ RooCMSShape() [3/3]

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

Definition at line 40 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),

◆ ~RooCMSShape()

RooCMSShape::~RooCMSShape ( )
inlineoverride

Definition at line 63 of file RooCMSShape.h.

Member Function Documentation

◆ ClassDefOverride()

RooCMSShape::ClassDefOverride ( RooCMSShape  ,
 
)

◆ clone()

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

Definition at line 62 of file RooCMSShape.h.

◆ evaluate()

Double_t RooCMSShape::evaluate ( ) const
override

Definition at line 48 of file RooCMSShape.cc.

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;

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

Member Data Documentation

◆ alpha

RooRealProxy RooCMSShape::alpha
protected

Definition at line 70 of file RooCMSShape.h.

Referenced by evaluate().

◆ beta

RooRealProxy RooCMSShape::beta
protected

Definition at line 71 of file RooCMSShape.h.

Referenced by evaluate().

◆ gamma

RooRealProxy RooCMSShape::gamma
protected

Definition at line 72 of file RooCMSShape.h.

Referenced by evaluate().

◆ peak

RooRealProxy RooCMSShape::peak
protected

Definition at line 73 of file RooCMSShape.h.

Referenced by evaluate().

◆ x

RooRealProxy RooCMSShape::x
protected
RooCMSShape::peak
RooRealProxy peak
Definition: RooCMSShape.h:73
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
trackingPlots.other
other
Definition: trackingPlots.py:1464
RooCMSShape::x
RooRealProxy x
Definition: RooCMSShape.h:69
RooCMSShape::beta
RooRealProxy beta
Definition: RooCMSShape.h:71
RooCMSShape::alpha
RooRealProxy alpha
Definition: RooCMSShape.h:70
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
RooCMSShape::gamma
RooRealProxy gamma
Definition: RooCMSShape.h:72
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6