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

#include <HZZ4LRooPdfs.h>

Inheritance diagram for RooTwoETwoMuMassShapePdf2:

Public Member Functions

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

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy m4l
 
RooRealProxy mH
 

Detailed Description

Definition at line 402 of file HZZ4LRooPdfs.h.

Constructor & Destructor Documentation

RooTwoETwoMuMassShapePdf2::RooTwoETwoMuMassShapePdf2 ( )
inline

Definition at line 404 of file HZZ4LRooPdfs.h.

Referenced by clone().

404 {} ;
RooTwoETwoMuMassShapePdf2::RooTwoETwoMuMassShapePdf2 ( const char *  name,
const char *  title,
RooAbsReal &  _m4l,
RooAbsReal &  _mH 
)

Definition at line 2995 of file HZZ4LRooPdfs.cc.

2997  :
2998 RooAbsPdf(name,title),
2999 m4l("m4l","m4l",this,_m4l),
3000 mH("mH","mH",this,_mH)
3001 {
3002 }
RooTwoETwoMuMassShapePdf2::RooTwoETwoMuMassShapePdf2 ( const RooTwoETwoMuMassShapePdf2 other,
const char *  name = 0 
)

Definition at line 3004 of file HZZ4LRooPdfs.cc.

3004  :
3005 RooAbsPdf(other,name),
3006 m4l("m4l",this,other.m4l),
3007 mH("mH",this,other.mH)
3008 {
3009 }
virtual RooTwoETwoMuMassShapePdf2::~RooTwoETwoMuMassShapePdf2 ( )
inlinevirtual

Definition at line 410 of file HZZ4LRooPdfs.h.

410 { }

Member Function Documentation

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

Definition at line 409 of file HZZ4LRooPdfs.h.

References RooTwoETwoMuMassShapePdf2().

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

Definition at line 3031 of file HZZ4LRooPdfs.cc.

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

3032 {
3033  using namespace RooFit;
3034 
3035  if( BR[0][0] == 0 ){ readFile(); }
3036 
3037 
3038  Double_t mHreq = mH;
3039  Double_t x = m4l;
3040 
3041  //min and max for integration
3042  //Start the tail at x/.998 to control area around ratio = 1
3043  Double_t min = x/.998;
3044  Double_t max = 0;
3045  Double_t FracEventsNoBrem = FracEventsNoBrem_2e2mu;
3046 
3047  Double_t higgsTotWidth = HiggsWidth(0,mHreq);
3048 
3049  if( 1000 < (mH + 5*higgsTotWidth) ){ max = 1000;}
3050  else{ max = mH + 5*higgsTotWidth;}
3051 
3052  Double_t dmTil = (max-min)/1000;
3053 
3054  Double_t sum = 0;
3055  Double_t pdf_1_NoBrem = FracEventsNoBrem*pdf1(x,mHreq);
3056 
3057  for(Double_t mTil = min; mTil < max; mTil += dmTil)
3058  {
3059 
3060  Double_t TC = (dmTil/mTil) * rho(x/mTil,"2e2mu") * pdf1(mTil,mHreq);
3061  sum = sum + TC;
3062 
3063  }
3064 
3065  Double_t pdf_2 = sum + pdf_1_NoBrem;
3066 
3067  return pdf_2;
3068 
3069 }
Definition: DDAxes.h:10
#define min(a, b)
Definition: mlp_lapack.h:161
Double_t pdf1(double mHstar, double mHreq)
void readFile()
Definition: HZZ4LRooPdfs.cc:39
Double_t BR[26][217]
Definition: HZZ4LRooPdfs.cc:35
const T & max(const T &a, const T &b)
const Double_t FracEventsNoBrem_2e2mu
Definition: HZZ4LRooPdfs.cc:18
x
Definition: VDTMath.h:216
Double_t HiggsWidth(Int_t ID, Double_t mHrequested)

Member Data Documentation

RooRealProxy RooTwoETwoMuMassShapePdf2::m4l
protected

Definition at line 414 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooTwoETwoMuMassShapePdf2::mH
protected

Definition at line 415 of file HZZ4LRooPdfs.h.

Referenced by evaluate().