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 Member Functions | Protected Attributes
Roo4lMasses2D Class Reference

#include <HZZ4LRooPdfs.h>

Inheritance diagram for Roo4lMasses2D:

Public Member Functions

virtual TObject * clone (const char *newname) const
 
 Roo4lMasses2D ()
 
 Roo4lMasses2D (const char *name, const char *title, RooAbsReal &_mZstar, RooAbsReal &_mZ, RooAbsReal &_mZZ, RooAbsReal &_Gamma, RooAbsReal &_p0, RooAbsReal &_p1, RooAbsReal &_p2, RooAbsReal &_CBmean, RooAbsReal &_CBwidth, RooAbsReal &_CBalpha, RooAbsReal &_CBn)
 
 Roo4lMasses2D (const Roo4lMasses2D &other, const char *name=0)
 
virtual ~Roo4lMasses2D ()
 

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy CBalpha
 
RooRealProxy CBmean
 
RooRealProxy CBn
 
RooRealProxy CBwidth
 
RooRealProxy Gamma
 
RooRealProxy mZ
 
RooRealProxy mZstar
 
RooRealProxy mZZ
 
RooRealProxy p0
 
RooRealProxy p1
 
RooRealProxy p2
 

Detailed Description

Definition at line 310 of file HZZ4LRooPdfs.h.

Constructor & Destructor Documentation

Roo4lMasses2D::Roo4lMasses2D ( )

Definition at line 2703 of file HZZ4LRooPdfs.cc.

Referenced by clone().

2703 {}
Roo4lMasses2D::Roo4lMasses2D ( const char *  name,
const char *  title,
RooAbsReal &  _mZstar,
RooAbsReal &  _mZ,
RooAbsReal &  _mZZ,
RooAbsReal &  _Gamma,
RooAbsReal &  _p0,
RooAbsReal &  _p1,
RooAbsReal &  _p2,
RooAbsReal &  _CBmean,
RooAbsReal &  _CBwidth,
RooAbsReal &  _CBalpha,
RooAbsReal &  _CBn 
)

Definition at line 2705 of file HZZ4LRooPdfs.cc.

2718  :
2719 RooAbsPdf(name,title),
2720 mZstar("mZstar","mZstar",this,_mZstar),
2721 mZ("mZ","mZ",this,_mZ),
2722 mZZ("mZZ","mZZ",this,_mZZ),
2723 Gamma("Gamma","Gamma",this,_Gamma),
2724 p0("p0","p0",this,_p0),
2725 p1("p1","p1",this,_p1),
2726 p2("p2","p2",this,_p2),
2727 CBmean("CBmean","CBmean",this,_CBmean),
2728 CBwidth("CBwidth","CBwidth",this,_CBwidth),
2729 CBalpha("CBalpha","CBalpha",this,_CBalpha),
2730 CBn("CBn","CBn",this,_CBn)
2731 
2732 {
2733 }
RooRealProxy mZZ
Definition: HZZ4LRooPdfs.h:334
RooRealProxy CBn
Definition: HZZ4LRooPdfs.h:342
RooRealProxy CBalpha
Definition: HZZ4LRooPdfs.h:341
RooRealProxy CBmean
Definition: HZZ4LRooPdfs.h:339
RooRealProxy p2
Definition: HZZ4LRooPdfs.h:338
RooRealProxy CBwidth
Definition: HZZ4LRooPdfs.h:340
RooRealProxy p0
Definition: HZZ4LRooPdfs.h:336
RooRealProxy p1
Definition: HZZ4LRooPdfs.h:337
RooRealProxy mZ
Definition: HZZ4LRooPdfs.h:333
RooRealProxy Gamma
Definition: HZZ4LRooPdfs.h:335
RooRealProxy mZstar
Definition: HZZ4LRooPdfs.h:332
Roo4lMasses2D::Roo4lMasses2D ( const Roo4lMasses2D other,
const char *  name = 0 
)

Definition at line 2735 of file HZZ4LRooPdfs.cc.

2735  :
2736 RooAbsPdf(other,name),
2737 mZstar("mZstar",this,other.mZstar),
2738 mZ("mZ",this,other.mZ),
2739 mZZ("mZZ",this,other.mZZ),
2740 Gamma("Gamma",this,other.Gamma),
2741 p0("p0",this,other.p0),
2742 p1("p1",this,other.p1),
2743 p2("p2",this,other.p2),
2744 CBmean("CBmean" ,this,other.CBmean),
2745 CBwidth("CBwidth",this,other.CBwidth),
2746 CBalpha("CBalpha",this,other.CBalpha),
2747 CBn("CBn",this,other.CBn)
2748 
2749 {
2750 }
RooRealProxy mZZ
Definition: HZZ4LRooPdfs.h:334
RooRealProxy CBn
Definition: HZZ4LRooPdfs.h:342
RooRealProxy CBalpha
Definition: HZZ4LRooPdfs.h:341
RooRealProxy CBmean
Definition: HZZ4LRooPdfs.h:339
RooRealProxy p2
Definition: HZZ4LRooPdfs.h:338
RooRealProxy CBwidth
Definition: HZZ4LRooPdfs.h:340
RooRealProxy p0
Definition: HZZ4LRooPdfs.h:336
RooRealProxy p1
Definition: HZZ4LRooPdfs.h:337
RooRealProxy mZ
Definition: HZZ4LRooPdfs.h:333
RooRealProxy Gamma
Definition: HZZ4LRooPdfs.h:335
RooRealProxy mZstar
Definition: HZZ4LRooPdfs.h:332
virtual Roo4lMasses2D::~Roo4lMasses2D ( )
inlinevirtual

Definition at line 328 of file HZZ4LRooPdfs.h.

328 { }

Member Function Documentation

virtual TObject* Roo4lMasses2D::clone ( const char *  newname) const
inlinevirtual

Definition at line 327 of file HZZ4LRooPdfs.h.

References Roo4lMasses2D().

327 { return new Roo4lMasses2D(*this,newname); }
double Roo4lMasses2D::evaluate ( ) const
protected

Definition at line 2752 of file HZZ4LRooPdfs.cc.

References a, b, beta, CBalpha, CBmean, CBn, CBwidth, alignCSCRings::e, create_public_lumi_plots::exp, Gamma, mZ, mZstar, mZZ, p0, p1, p2, mathSSE::sqrt(), and lumiQTWidget::t.

2753 {
2754  double mZstarDistribution;
2755  double Numerator,Denominator,beta;
2756  beta = (1-(mZstar-mZ)*(mZstar-mZ)/(mZZ*mZZ))*(1-(mZstar+mZ)*(mZstar+mZ)/(mZZ*mZZ));
2757 
2758  if(beta<0.0) return 1e-12;
2759 
2761  //Numerator = mZstar*mZstar*sqrt(beta)*(2+(mZstar*mZstar-mZZ*mZZ+mZ*mZ)*(mZstar*mZstar-mZZ*mZZ+mZ*mZ)/(4*mZstar*mZstar*mZ*mZ));
2762  Numerator = mZstar*mZstar*sqrt(beta)*(2+(mZstar*mZstar-mZZ*mZZ+mZ*mZ)*(mZstar*mZstar-mZZ*mZZ+mZ*mZ)/(4*mZstar*mZstar*mZ*mZ));
2763  Denominator = 2*(mZstar*mZstar-mZ*mZ)*(mZstar*mZstar-mZ*mZ)-2*mZ*mZ*Gamma*Gamma;
2764 
2765  //mZstarDistribution = Numerator/Denominator;
2766  mZstarDistribution = Numerator/Denominator;
2767  //*/
2768  //mZstarDistribution = 1;
2769 
2770  double acceptance = p0+p1*mZstar+p2*mZstar*mZstar;
2771  //double acceptance = 1;
2772 
2773 
2774  double mZZDistribution;
2775  /*
2776  Double_t arg= mZZ - CBmean;
2777  Double_t ret =exp(-0.5*arg*arg/(CBwidth*CBwidth)) ;
2778  //cout << "gauss x = " << x << " mean = " << mean << " sigma = " << sigma << endl ;
2779  mZZDistribution = ret ;
2780  //*/
2783  double t = (mZZ-CBmean)/CBwidth;
2784  //std:cout << "CBwidth: " << CBwidth << " CBmean: " << CBmean << " mZZ: " << mZZ << std::endl;
2785  if (CBalpha < 0) t = -t;
2786 
2787  double absAlpha = fabs((double)CBalpha);
2788 
2789  //std::cout << "t = " << t << std::endl;
2790  if (t >= -absAlpha) {
2791 
2792  mZZDistribution = exp(-0.5*t*t);
2793  //std::cout << "Gaussian!! " << -.5*t*t << " : " << mZZDistribution << std::endl;
2794 
2795  }
2796  else {
2797  double a = TMath::Power(CBn/absAlpha,CBn)*exp(-0.5*absAlpha*absAlpha);
2798  double b = CBn/absAlpha - absAlpha;
2799 
2800  //std::cout << "power!!! a: " << a << " b: " << b << endl;
2801 
2802  mZZDistribution = a/TMath::Power(b - t, CBn);
2803 
2804  }
2805  //*/
2806 
2807 
2808  //std::cout << "t: " << t << " absAlpha: " << absAlpha << std::endl;
2809 
2810  //double final = mZstarDistribution*acceptance;
2811  double final = mZstarDistribution*acceptance*mZZDistribution;
2812  if (final <= 0) final = 1e-12;
2813 
2814  return final;
2815 }
const double beta
RooRealProxy mZZ
Definition: HZZ4LRooPdfs.h:334
RooRealProxy CBn
Definition: HZZ4LRooPdfs.h:342
RooRealProxy CBalpha
Definition: HZZ4LRooPdfs.h:341
RooRealProxy CBmean
Definition: HZZ4LRooPdfs.h:339
RooRealProxy p2
Definition: HZZ4LRooPdfs.h:338
T sqrt(T t)
Definition: SSEVec.h:46
RooRealProxy CBwidth
Definition: HZZ4LRooPdfs.h:340
RooRealProxy p0
Definition: HZZ4LRooPdfs.h:336
RooRealProxy p1
Definition: HZZ4LRooPdfs.h:337
double b
Definition: hdecay.h:120
RooRealProxy mZ
Definition: HZZ4LRooPdfs.h:333
double a
Definition: hdecay.h:121
RooRealProxy Gamma
Definition: HZZ4LRooPdfs.h:335
RooRealProxy mZstar
Definition: HZZ4LRooPdfs.h:332

Member Data Documentation

RooRealProxy Roo4lMasses2D::CBalpha
protected

Definition at line 341 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::CBmean
protected

Definition at line 339 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::CBn
protected

Definition at line 342 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::CBwidth
protected

Definition at line 340 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::Gamma
protected

Definition at line 335 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::mZ
protected

Definition at line 333 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::mZstar
protected

Definition at line 332 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::mZZ
protected

Definition at line 334 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::p0
protected

Definition at line 336 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::p1
protected

Definition at line 337 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy Roo4lMasses2D::p2
protected

Definition at line 338 of file HZZ4LRooPdfs.h.

Referenced by evaluate().