CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

RooFourEMassShapePdf2 Class Reference

#include <HZZ4LRooPdfs.h>

List of all members.

Public Member Functions

virtual TObject * clone (const char *newname) const
 RooFourEMassShapePdf2 ()
 RooFourEMassShapePdf2 (const char *name, const char *title, RooAbsReal &_m4l, RooAbsReal &_mH)
 RooFourEMassShapePdf2 (const RooFourEMassShapePdf2 &other, const char *name=0)
virtual ~RooFourEMassShapePdf2 ()

Protected Member Functions

Double_t evaluate () const

Protected Attributes

RooRealProxy m4l
RooRealProxy mH

Detailed Description

Definition at line 377 of file HZZ4LRooPdfs.h.


Constructor & Destructor Documentation

RooFourEMassShapePdf2::RooFourEMassShapePdf2 ( ) [inline]

Definition at line 379 of file HZZ4LRooPdfs.h.

Referenced by clone().

{} ;
RooFourEMassShapePdf2::RooFourEMassShapePdf2 ( const char *  name,
const char *  title,
RooAbsReal &  _m4l,
RooAbsReal &  _mH 
)
RooFourEMassShapePdf2::RooFourEMassShapePdf2 ( const RooFourEMassShapePdf2 other,
const char *  name = 0 
)

Definition at line 2922 of file HZZ4LRooPdfs.cc.

                                                                                                 :
RooAbsPdf(other,name),
m4l("m4l",this,other.m4l),
mH("mH",this,other.mH)
{
}
virtual RooFourEMassShapePdf2::~RooFourEMassShapePdf2 ( ) [inline, virtual]

Definition at line 385 of file HZZ4LRooPdfs.h.

{ }

Member Function Documentation

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

Definition at line 384 of file HZZ4LRooPdfs.h.

References RooFourEMassShapePdf2().

{ return new RooFourEMassShapePdf2(*this,newname); }
Double_t RooFourEMassShapePdf2::evaluate ( ) const [protected]

Definition at line 2948 of file HZZ4LRooPdfs.cc.

References RooFit::BR, RooFit::FracEventsNoBrem_4e, RooFit::HiggsWidth(), m4l, max(), mH, min, RooFit::pdf1(), RooFit::readFile(), rho, and x.

{
        using namespace RooFit;
        
        if( BR[0][0] == 0 ){ readFile(); }
        
        
        Double_t mHreq = mH;
        Double_t x = m4l;
        
        //min and max for integration                                                                                                                            
        //Start the tail at x/.998 to control area around ratio = 1                                                                      
        
    Double_t min = x/.998;
    Double_t max = 0;
    Double_t FracEventsNoBrem = FracEventsNoBrem_4e;
        
    Double_t higgsTotWidth = HiggsWidth(0,mHreq);
        
    if( 1000 < (mH + 5*higgsTotWidth) ){ max = 1000;}
    else{ max = mH + 5*higgsTotWidth;}
        
    Double_t dmTil = (max-min)/1000;
        
    Double_t sum = 0;
    Double_t pdf_1_NoBrem = FracEventsNoBrem*pdf1(x,mHreq);
        
    for(Double_t mTil = min; mTil < max; mTil += dmTil)
        {
                
                Double_t TC = (dmTil/mTil) * rho(x/mTil,"4e") * pdf1(mTil,mHreq);
                sum = sum + TC;
                
        }
        
    Double_t pdf_2 = sum + pdf_1_NoBrem;
        
    return pdf_2;
        
}

Member Data Documentation

RooRealProxy RooFourEMassShapePdf2::m4l [protected]

Definition at line 389 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooFourEMassShapePdf2::mH [protected]

Definition at line 390 of file HZZ4LRooPdfs.h.

Referenced by evaluate().