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

#include <HZZ4LRooPdfs.h>

Inheritance diagram for RooFourMuMassRes:

Public Member Functions

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

Protected Member Functions

Double_t evaluate () const
 

Protected Attributes

RooRealProxy m4l
 
RooRealProxy mH
 

Detailed Description

Definition at line 426 of file HZZ4LRooPdfs.h.

Constructor & Destructor Documentation

RooFourMuMassRes::RooFourMuMassRes ( )
inline

Definition at line 428 of file HZZ4LRooPdfs.h.

Referenced by clone().

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

Definition at line 3212 of file HZZ4LRooPdfs.cc.

3214  :
3215 RooAbsPdf(name,title),
3216 m4l("m4l","m4l",this,_m4l),
3217 mH("mH","mH",this,_mH)
3218 {
3219 }
RooRealProxy mH
Definition: HZZ4LRooPdfs.h:439
RooRealProxy m4l
Definition: HZZ4LRooPdfs.h:438
RooFourMuMassRes::RooFourMuMassRes ( const RooFourMuMassRes other,
const char *  name = 0 
)

Definition at line 3222 of file HZZ4LRooPdfs.cc.

3222  :
3223 RooAbsPdf(other,name),
3224 m4l("m4l",this,other.m4l),
3225 mH("mH",this,other.mH)
3226 {
3227 }
RooRealProxy mH
Definition: HZZ4LRooPdfs.h:439
RooRealProxy m4l
Definition: HZZ4LRooPdfs.h:438
virtual RooFourMuMassRes::~RooFourMuMassRes ( )
inlinevirtual

Definition at line 434 of file HZZ4LRooPdfs.h.

434 { }

Member Function Documentation

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

Definition at line 433 of file HZZ4LRooPdfs.h.

References RooFourMuMassRes().

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

Definition at line 3230 of file HZZ4LRooPdfs.cc.

References create_public_lumi_plots::exp, m4l, RooFit::mean(), mH, N, RooFit::N(), funct::pow(), RooFit::sigma_CB(), lumiQTWidget::t, and vdt::x.

3231 {
3232 
3233  Double_t x = m4l;
3234  Double_t mHreq = mH;
3235  Double_t mean_ = RooFit::mean(mHreq,"4mu");
3236  Double_t alpha1 = -1.3;
3237  Double_t alpha2 = 1.3;
3238  Double_t sigma_ = RooFit::sigma_CB(mHreq,"4mu");
3239  Double_t n1 = 60;
3240  Double_t n2 = 60;
3241  Double_t N = RooFit::N(mHreq,"4mu");
3242 
3243  Double_t t = (x-mean_)/sigma_;
3244  if (alpha1 < 0) t = -t;
3245 
3246  Double_t absAlpha = TMath::Abs(alpha1);
3247  Double_t absAlpha2 = TMath::Abs(alpha2);
3248 
3249  if (t >= alpha1 && t <= alpha2) {
3250  return N*exp(-0.5*t*t);
3251  }
3252  else if ( t > alpha2) {
3253  Double_t a1 = pow(n2/absAlpha2,n2)*exp(-0.5*absAlpha2*absAlpha2);
3254  Double_t b1 = n2/absAlpha2 - absAlpha2;
3255 
3256  return N*(a1/pow(b1 + t, n2));
3257 
3258  }
3259  else {
3260  Double_t a2 = pow(n1/absAlpha,n1)*exp(-0.5*absAlpha*absAlpha);
3261  Double_t b2 = n1/absAlpha - absAlpha;
3262 
3263  return N*(a2/pow(b2 - t, n1));
3264 
3265  }
3266 
3267 }
Double_t N(Double_t mH, TString proc)
Double_t sigma_CB(Double_t mH, TString proc)
RooRealProxy mH
Definition: HZZ4LRooPdfs.h:439
RooRealProxy m4l
Definition: HZZ4LRooPdfs.h:438
#define N
Definition: blowfish.cc:9
Double_t mean(Double_t mH, TString proc)
x
Definition: VDTMath.h:216
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40

Member Data Documentation

RooRealProxy RooFourMuMassRes::m4l
protected

Definition at line 438 of file HZZ4LRooPdfs.h.

Referenced by evaluate().

RooRealProxy RooFourMuMassRes::mH
protected

Definition at line 439 of file HZZ4LRooPdfs.h.

Referenced by evaluate().