CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

RooFourMuMassRes Class Reference

#include <HZZ4LRooPdfs.h>

List of all members.

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

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

Definition at line 3222 of file HZZ4LRooPdfs.cc.

                                                                                  :
RooAbsPdf(other,name),
m4l("m4l",this,other.m4l),
mH("mH",this,other.mH)
{
}
virtual RooFourMuMassRes::~RooFourMuMassRes ( ) [inline, virtual]

Definition at line 434 of file HZZ4LRooPdfs.h.

{ }

Member Function Documentation

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

Definition at line 433 of file HZZ4LRooPdfs.h.

References RooFourMuMassRes().

{ 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, timingPdfMaker::mean, mH, N, funct::pow(), RooFit::sigma_CB(), lumiQTWidget::t, and x.

{
        
        Double_t x = m4l;
        Double_t mHreq = mH;
        Double_t mean_ = RooFit::mean(mHreq,"4mu");
        Double_t alpha1 = -1.3;
        Double_t alpha2 = 1.3;
        Double_t sigma_ = RooFit::sigma_CB(mHreq,"4mu");
        Double_t n1 = 60;
        Double_t n2 = 60;
        Double_t N = RooFit::N(mHreq,"4mu");
        
        Double_t t = (x-mean_)/sigma_;
        if (alpha1 < 0) t = -t;
        
        Double_t absAlpha = TMath::Abs(alpha1);
        Double_t absAlpha2 = TMath::Abs(alpha2);
        
        if (t >= alpha1 && t <= alpha2) {
                return N*exp(-0.5*t*t);
        }
        else if ( t > alpha2) {
                Double_t a1 =  pow(n2/absAlpha2,n2)*exp(-0.5*absAlpha2*absAlpha2);
                Double_t b1 = n2/absAlpha2 - absAlpha2;
                
                return N*(a1/pow(b1 + t, n2));
                
        }
        else {
                Double_t a2 =  pow(n1/absAlpha,n1)*exp(-0.5*absAlpha*absAlpha);
                Double_t b2 = n1/absAlpha - absAlpha;
                
                return N*(a2/pow(b2 - t, n1));
                
        }
        
}

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