CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

RooBetaFunc_v2 Class Reference

#include <HZZ4LRooPdfs.h>

List of all members.

Public Member Functions

virtual TObject * clone (const char *newname) const
 RooBetaFunc_v2 ()
 RooBetaFunc_v2 (const char *name, const char *title, RooAbsReal &_mZstar, RooAbsReal &_mZ, RooAbsReal &_m0, RooAbsReal &_mZZ, RooAbsReal &_Gamma, RooAbsReal &_Gamma0, RooAbsReal &_a0, RooAbsReal &_a1, RooAbsReal &_a2, RooAbsReal &_a3, RooAbsReal &_f, RooAbsReal &_f0)
 RooBetaFunc_v2 (const RooBetaFunc_v2 &other, const char *name=0)
virtual ~RooBetaFunc_v2 ()

Protected Member Functions

Double_t evaluate () const

Protected Attributes

RooRealProxy a0
RooRealProxy a1
RooRealProxy a2
RooRealProxy a3
RooRealProxy f
RooRealProxy f0
RooRealProxy Gamma
RooRealProxy Gamma0
RooRealProxy m0
RooRealProxy mZ
RooRealProxy mZstar
RooRealProxy mZZ

Detailed Description

Definition at line 207 of file HZZ4LRooPdfs.h.


Constructor & Destructor Documentation

RooBetaFunc_v2::RooBetaFunc_v2 ( )

Referenced by clone().

RooBetaFunc_v2::RooBetaFunc_v2 ( const char *  name,
const char *  title,
RooAbsReal &  _mZstar,
RooAbsReal &  _mZ,
RooAbsReal &  _m0,
RooAbsReal &  _mZZ,
RooAbsReal &  _Gamma,
RooAbsReal &  _Gamma0,
RooAbsReal &  _a0,
RooAbsReal &  _a1,
RooAbsReal &  _a2,
RooAbsReal &  _a3,
RooAbsReal &  _f,
RooAbsReal &  _f0 
)

Definition at line 2191 of file HZZ4LRooPdfs.cc.

                                                             :
RooAbsPdf(name,title), 
mZstar("mZstar","mZstar",this,_mZstar),
mZ("mZ","mZ",this,_mZ),
m0("m0","m0",this,_m0),
mZZ("mZZ","mZZ",this,_mZZ),
Gamma("Gamma","Gamma",this,_Gamma),
Gamma0("Gamma0","Gamma0",this,_Gamma0),
a0("a0","a0",this,_a0),
a1("a1","a1",this,_a1),
a2("a2","a2",this,_a2),
a3("a3","a3",this,_a3),
f("f","f",this,_f),
f0("f0","f0",this,_f0)
{ 
} 
RooBetaFunc_v2::RooBetaFunc_v2 ( const RooBetaFunc_v2 other,
const char *  name = 0 
)

Definition at line 2222 of file HZZ4LRooPdfs.cc.

                                                                            :  
RooAbsPdf(other,name), 
mZstar("mZstar",this,other.mZstar),
mZ("mZ",this,other.mZ),
m0("m0",this,other.m0),
mZZ("mZZ",this,other.mZZ),
Gamma("Gamma",this,other.Gamma),
Gamma0("Gamma0",this,other.Gamma0),
a0("a0",this,other.a0),
a1("a1",this,other.a1),
a2("a2",this,other.a2),
a3("a3",this,other.a3),
f("f",this,other.f),
f0("f0",this,other.f0)
{ 
} 
virtual RooBetaFunc_v2::~RooBetaFunc_v2 ( ) [inline, virtual]

Definition at line 226 of file HZZ4LRooPdfs.h.

{ }

Member Function Documentation

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

Definition at line 225 of file HZZ4LRooPdfs.h.

References RooBetaFunc_v2().

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

Definition at line 2241 of file HZZ4LRooPdfs.cc.

References a0, a1, a2, a3, beta, alignCSCRings::e, create_public_lumi_plots::exp, f, f0, Gamma, Gamma0, m0, mZ, mZstar, mZZ, and mathSSE::sqrt().

{ 
        
        double mZDistribution, acceptance;
        
        //================= mZ Distribution =================
        double beta= (1-(mZstar-mZ)*(mZstar-mZ)/(mZZ*mZZ))*(1-(mZstar+mZ)*(mZstar+mZ)/(mZZ*mZZ));
        if(beta<0) return 0.0;
        else mZDistribution = beta;
        
        //================= acceptance (chebychev polynomials) 
        acceptance = a0+a1*mZstar+a2*(2*mZstar*mZstar-1)+a3*(4*mZstar*mZstar*mZstar-3*mZstar);
        
        //================= on-shell Z contamination ========
        
        double onShellZ = exp(-(mZstar-mZ)*(mZstar-mZ)/(2*Gamma*Gamma))/sqrt(2*3.1415*Gamma*Gamma);
        //double errorFunc = TMath::Erf((mZstar - m0)/Gamma);
        double errorFunc = exp(-(mZstar-m0)*(mZstar-m0)/(2*Gamma0*Gamma0))/sqrt(2*3.1415*Gamma0*Gamma0);
        
        //std::cout << mZZDistribution << " : " << mZDistribution << " : " << acceptance << std::endl;
        double final =  mZDistribution*((1-f)*(f0*acceptance+(1-f0)*errorFunc)+f*onShellZ);
        if (final <= 0) final = 1e-12;
        return final;
}

Member Data Documentation

RooRealProxy RooBetaFunc_v2::a0 [protected]

Definition at line 236 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::a1 [protected]

Definition at line 237 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::a2 [protected]

Definition at line 238 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::a3 [protected]

Definition at line 239 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::f [protected]

Definition at line 240 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::f0 [protected]

Definition at line 241 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::Gamma [protected]

Definition at line 234 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::Gamma0 [protected]

Definition at line 235 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::m0 [protected]

Definition at line 232 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::mZ [protected]

Definition at line 231 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::mZstar [protected]

Definition at line 230 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooBetaFunc_v2::mZZ [protected]

Definition at line 233 of file HZZ4LRooPdfs.h.

Referenced by evaluate().