CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

RooggZZPdf Class Reference

#include <HZZ4LRooPdfs.h>

List of all members.

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

{} ;
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::RooggZZPdf ( const RooggZZPdf other,
const char *  name = 0 
)

Definition at line 2004 of file HZZ4LRooPdfs.cc.

                                                                :
RooAbsPdf(other,name),
m4l("m4l",this,other.m4l),
a1("a1",this,other.a1),
a2("a2",this,other.a2),
a3("a3",this,other.a3),
b1("b1",this,other.b1),
b2("b2",this,other.b2),
b3("b3",this,other.b3),
frac("frac",this,other.frac)
{
}
virtual RooggZZPdf::~RooggZZPdf ( ) [inline, virtual]

Definition at line 89 of file HZZ4LRooPdfs.h.

{ }

Member Function Documentation

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

Definition at line 88 of file HZZ4LRooPdfs.h.

References RooggZZPdf().

{ 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.

{
        
        //std::cout << "a1 = " << a1 << ", a2 = " << a2 << ", a3 = " << a3 << std::endl;                                                                    
        //std::cout << "b1 = " << b1 << ", b2 = " << b2 << ", b3 = " << b3 << std::endl;                                                                    
        
        // ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE                                                                                             
        double signa = 0.;
        if ((m4l-a1) > 0) { signa = 1.; }
        else if ((m4l-a1) < 0) { signa = -1.; }
        else { signa = 0.; }
        
        double signb = 0.;
        if ((m4l-b1) > 0) { signb = 1.; }
        else if ((m4l-b1) < 0) { signb = -1.; }
        else { signb = 0.; }
        
        double bkglo = (0.5 + 0.5*signa * TMath::Erf(TMath::Abs(m4l-a1)/a2)) * exp(-1.*m4l/a3);
        double bkghi = (0.5 + 0.5*signb * TMath::Erf(TMath::Abs(m4l-b1)/b2)) * exp(-1.*m4l/b3);
        double total = bkglo*frac + (1-frac)*bkghi;
        
        double m_a = 0.17;
        double m_b = -2.95e-04;
        double m_c = 1.55e-07;
        double m_d = 169.2;
        double m_e = 45.94;     
        double dynamicKgg = (m_a + m_b*m4l + m_c*m4l*m4l)*(0.5 + 0.5*TMath::Erf( (m4l-m_d)/m_e ) );
        double totalNLO = total*dynamicKgg;
        
        return totalNLO ;
}

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