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

#include <HZZ4LRooPdfs.h>

Inheritance diagram for RooFourMuMassShapePdf2:

Public Member Functions

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

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy m4l
 
RooRealProxy mH
 

Detailed Description

Definition at line 353 of file HZZ4LRooPdfs.h.

Constructor & Destructor Documentation

RooFourMuMassShapePdf2::RooFourMuMassShapePdf2 ( )
inline

Definition at line 355 of file HZZ4LRooPdfs.h.

Referenced by clone().

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

Definition at line 2827 of file HZZ4LRooPdfs.cc.

2829  :
2830 RooAbsPdf(name,title),
2831 m4l("m4l","m4l",this,_m4l),
2832 mH("mH","mH",this,_mH)
2833 {
2834 }
RooFourMuMassShapePdf2::RooFourMuMassShapePdf2 ( const RooFourMuMassShapePdf2 other,
const char *  name = 0 
)

Definition at line 2837 of file HZZ4LRooPdfs.cc.

2837  :
2838 RooAbsPdf(other,name),
2839 m4l("m4l",this,other.m4l),
2840 mH("mH",this,other.mH)
2841 {
2842 }
virtual RooFourMuMassShapePdf2::~RooFourMuMassShapePdf2 ( )
inlinevirtual

Definition at line 361 of file HZZ4LRooPdfs.h.

361 { }

Member Function Documentation

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

Definition at line 360 of file HZZ4LRooPdfs.h.

References RooFourMuMassShapePdf2().

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

Definition at line 2864 of file HZZ4LRooPdfs.cc.

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

2865 {
2866 
2867  using namespace RooFit;
2868 
2869  if( BR[0][0] == 0 ){ readFile(); }
2870 
2871 
2872  Double_t mHreq = mH;
2873  Double_t x = m4l;
2874 
2875  //min and max for integration
2876  //Start the tail at x/.998 to control area around ratio = 1
2877  Double_t min = x/.998;
2878  Double_t max = 0;
2879  Double_t FracEventsNoBrem = FracEventsNoBrem_4mu;
2880 
2881  Double_t higgsTotWidth = HiggsWidth(0,mHreq);
2882  //std::cout << "higgsTotWidth: " << higgsTotWidth << std::endl;
2883 
2884  if( 1000 < (mH + 5*higgsTotWidth) ){ max = 1000;}
2885  else{ max = mH + 5*higgsTotWidth;}
2886 
2887  Double_t dmTil = (max-min)/1000;
2888 
2889  Double_t sum = 0;
2890  Double_t pdf_1_NoBrem = FracEventsNoBrem*pdf1(x,mHreq);
2891 
2892  for(Double_t mTil = min; mTil < max; mTil += dmTil)
2893  {
2894 
2895  Double_t TC = (dmTil/mTil) * rho(x/mTil,"4mu") * pdf1(mTil,mHreq);
2896  sum = sum + TC;
2897 
2898  }
2899 
2900  Double_t pdf_2 = sum + pdf_1_NoBrem;
2901 
2902 
2903  return pdf_2;
2904 
2905 }
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 Double_t FracEventsNoBrem_4mu
Definition: HZZ4LRooPdfs.cc:16
const T & max(const T &a, const T &b)
Definition: DDAxes.h:10
Double_t HiggsWidth(Int_t ID, Double_t mHrequested)

Member Data Documentation

RooRealProxy RooFourMuMassShapePdf2::m4l
protected

Definition at line 365 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooFourMuMassShapePdf2::mH
protected

Definition at line 366 of file HZZ4LRooPdfs.h.

Referenced by evaluate().