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

#include <HZZ4LRooPdfs.h>

Inheritance diagram for RooFourEMassShapePdf2:

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

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

Definition at line 2913 of file HZZ4LRooPdfs.cc.

2915  :
2916 RooAbsPdf(name,title),
2917 m4l("m4l","m4l",this,_m4l),
2918 mH("mH","mH",this,_mH)
2919 {
2920 }
RooFourEMassShapePdf2::RooFourEMassShapePdf2 ( const RooFourEMassShapePdf2 other,
const char *  name = 0 
)

Definition at line 2922 of file HZZ4LRooPdfs.cc.

2922  :
2923 RooAbsPdf(other,name),
2924 m4l("m4l",this,other.m4l),
2925 mH("mH",this,other.mH)
2926 {
2927 }
virtual RooFourEMassShapePdf2::~RooFourEMassShapePdf2 ( )
inlinevirtual

Definition at line 385 of file HZZ4LRooPdfs.h.

385 { }

Member Function Documentation

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

Definition at line 384 of file HZZ4LRooPdfs.h.

References RooFourEMassShapePdf2().

384 { 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 vdt::x.

2949 {
2950  using namespace RooFit;
2951 
2952  if( BR[0][0] == 0 ){ readFile(); }
2953 
2954 
2955  Double_t mHreq = mH;
2956  Double_t x = m4l;
2957 
2958  //min and max for integration
2959  //Start the tail at x/.998 to control area around ratio = 1
2960 
2961  Double_t min = x/.998;
2962  Double_t max = 0;
2963  Double_t FracEventsNoBrem = FracEventsNoBrem_4e;
2964 
2965  Double_t higgsTotWidth = HiggsWidth(0,mHreq);
2966 
2967  if( 1000 < (mH + 5*higgsTotWidth) ){ max = 1000;}
2968  else{ max = mH + 5*higgsTotWidth;}
2969 
2970  Double_t dmTil = (max-min)/1000;
2971 
2972  Double_t sum = 0;
2973  Double_t pdf_1_NoBrem = FracEventsNoBrem*pdf1(x,mHreq);
2974 
2975  for(Double_t mTil = min; mTil < max; mTil += dmTil)
2976  {
2977 
2978  Double_t TC = (dmTil/mTil) * rho(x/mTil,"4e") * pdf1(mTil,mHreq);
2979  sum = sum + TC;
2980 
2981  }
2982 
2983  Double_t pdf_2 = sum + pdf_1_NoBrem;
2984 
2985  return pdf_2;
2986 
2987 }
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_4e
Definition: HZZ4LRooPdfs.cc:17
x
Definition: VDTMath.h:216
Double_t HiggsWidth(Int_t ID, Double_t mHrequested)

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