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
RooggZZPdf Class Reference

#include <HZZ4LRooPdfs.h>

Inheritance diagram for RooggZZPdf:

Public Member Functions

virtual TObject * clone (const char *newname) const
 
 RooggZZPdf ()
 
 RooggZZPdf (const char *name, const char *title, RooAbsReal &_m4l, RooAbsReal &_a1, RooAbsReal &_a2, RooAbsReal &_a3, RooAbsReal &_b1, RooAbsReal &_b2, RooAbsReal &_b3, RooAbsReal &_frac)
 
 RooggZZPdf (const RooggZZPdf &other, const char *name=0)
 
virtual ~RooggZZPdf ()
 

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy a1
 
RooRealProxy a2
 
RooRealProxy a3
 
RooRealProxy b1
 
RooRealProxy b2
 
RooRealProxy b3
 
RooRealProxy frac
 
RooRealProxy m4l
 

Detailed Description

Definition at line 75 of file HZZ4LRooPdfs.h.

Constructor & Destructor Documentation

RooggZZPdf::RooggZZPdf ( )
inline

Definition at line 77 of file HZZ4LRooPdfs.h.

Referenced by clone().

77 {} ;
RooggZZPdf::RooggZZPdf ( const char *  name,
const char *  title,
RooAbsReal &  _m4l,
RooAbsReal &  _a1,
RooAbsReal &  _a2,
RooAbsReal &  _a3,
RooAbsReal &  _b1,
RooAbsReal &  _b2,
RooAbsReal &  _b3,
RooAbsReal &  _frac 
)

Definition at line 1982 of file HZZ4LRooPdfs.cc.

1990  :
1991 RooAbsPdf(name,title),
1992 m4l("m4l","m4l",this,_m4l),
1993 a1("a1","a1",this,_a1),
1994 a2("a2","a2",this,_a2),
1995 a3("a3","a3",this,_a3),
1996 b1("b1","b1",this,_b1),
1997 b2("b2","b2",this,_b2),
1998 b3("b3","b3",this,_b3),
1999 frac("frac","frac",this,_frac)
2000 {
2001 }
RooRealProxy b1
Definition: HZZ4LRooPdfs.h:97
RooRealProxy frac
Definition: HZZ4LRooPdfs.h:100
RooRealProxy b2
Definition: HZZ4LRooPdfs.h:98
RooRealProxy a2
Definition: HZZ4LRooPdfs.h:95
RooRealProxy m4l
Definition: HZZ4LRooPdfs.h:93
RooRealProxy b3
Definition: HZZ4LRooPdfs.h:99
RooRealProxy a1
Definition: HZZ4LRooPdfs.h:94
RooRealProxy a3
Definition: HZZ4LRooPdfs.h:96
RooggZZPdf::RooggZZPdf ( const RooggZZPdf other,
const char *  name = 0 
)

Definition at line 2004 of file HZZ4LRooPdfs.cc.

2004  :
2005 RooAbsPdf(other,name),
2006 m4l("m4l",this,other.m4l),
2007 a1("a1",this,other.a1),
2008 a2("a2",this,other.a2),
2009 a3("a3",this,other.a3),
2010 b1("b1",this,other.b1),
2011 b2("b2",this,other.b2),
2012 b3("b3",this,other.b3),
2013 frac("frac",this,other.frac)
2014 {
2015 }
RooRealProxy b1
Definition: HZZ4LRooPdfs.h:97
RooRealProxy frac
Definition: HZZ4LRooPdfs.h:100
RooRealProxy b2
Definition: HZZ4LRooPdfs.h:98
RooRealProxy a2
Definition: HZZ4LRooPdfs.h:95
RooRealProxy m4l
Definition: HZZ4LRooPdfs.h:93
RooRealProxy b3
Definition: HZZ4LRooPdfs.h:99
RooRealProxy a1
Definition: HZZ4LRooPdfs.h:94
RooRealProxy a3
Definition: HZZ4LRooPdfs.h:96
virtual RooggZZPdf::~RooggZZPdf ( )
inlinevirtual

Definition at line 89 of file HZZ4LRooPdfs.h.

89 { }

Member Function Documentation

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

Definition at line 88 of file HZZ4LRooPdfs.h.

References RooggZZPdf().

88 { return new RooggZZPdf(*this,newname); }
Double_t RooggZZPdf::evaluate ( ) const
protected

Definition at line 2017 of file HZZ4LRooPdfs.cc.

References a1, a2, a3, b1, b2, b3, create_public_lumi_plots::exp, frac, m4l, and pileupDistInMC::total.

2018 {
2019 
2020  //std::cout << "a1 = " << a1 << ", a2 = " << a2 << ", a3 = " << a3 << std::endl;
2021  //std::cout << "b1 = " << b1 << ", b2 = " << b2 << ", b3 = " << b3 << std::endl;
2022 
2023  // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
2024  double signa = 0.;
2025  if ((m4l-a1) > 0) { signa = 1.; }
2026  else if ((m4l-a1) < 0) { signa = -1.; }
2027  else { signa = 0.; }
2028 
2029  double signb = 0.;
2030  if ((m4l-b1) > 0) { signb = 1.; }
2031  else if ((m4l-b1) < 0) { signb = -1.; }
2032  else { signb = 0.; }
2033 
2034  double bkglo = (0.5 + 0.5*signa * TMath::Erf(TMath::Abs(m4l-a1)/a2)) * exp(-1.*m4l/a3);
2035  double bkghi = (0.5 + 0.5*signb * TMath::Erf(TMath::Abs(m4l-b1)/b2)) * exp(-1.*m4l/b3);
2036  double total = bkglo*frac + (1-frac)*bkghi;
2037 
2038  double m_a = 0.17;
2039  double m_b = -2.95e-04;
2040  double m_c = 1.55e-07;
2041  double m_d = 169.2;
2042  double m_e = 45.94;
2043  double dynamicKgg = (m_a + m_b*m4l + m_c*m4l*m4l)*(0.5 + 0.5*TMath::Erf( (m4l-m_d)/m_e ) );
2044  double totalNLO = total*dynamicKgg;
2045 
2046  return totalNLO ;
2047 }
RooRealProxy b1
Definition: HZZ4LRooPdfs.h:97
RooRealProxy frac
Definition: HZZ4LRooPdfs.h:100
RooRealProxy b2
Definition: HZZ4LRooPdfs.h:98
RooRealProxy a2
Definition: HZZ4LRooPdfs.h:95
RooRealProxy m4l
Definition: HZZ4LRooPdfs.h:93
RooRealProxy b3
Definition: HZZ4LRooPdfs.h:99
RooRealProxy a1
Definition: HZZ4LRooPdfs.h:94
RooRealProxy a3
Definition: HZZ4LRooPdfs.h:96

Member Data Documentation

RooRealProxy RooggZZPdf::a1
protected

Definition at line 94 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::a2
protected

Definition at line 95 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::a3
protected

Definition at line 96 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::b1
protected

Definition at line 97 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::b2
protected

Definition at line 98 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::b3
protected

Definition at line 99 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::frac
protected

Definition at line 100 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooggZZPdf::m4l
protected

Definition at line 93 of file HZZ4LRooPdfs.h.

Referenced by evaluate().