RooCruijff Class Reference

#include <RooCruijff.hh>

List of all members.

Public Member Functions

 RooCruijff (const char *name, const char *title, RooAbsReal &_x, RooAbsReal &_m0, RooAbsReal &_sigmaL, RooAbsReal &_sigmaR, RooAbsReal &_alphaL, RooAbsReal &_alphaR)
 RooCruijff (const RooCruijff &other, const char *name=0)
virtual TObject * clone (const char *newname) const
virtual ~RooCruijff ()

Protected Member Functions

Double_t evaluate () const

Protected Attributes

RooRealProxy x
RooRealProxy m0
RooRealProxy sigmaL
RooRealProxy sigmaR
RooRealProxy alphaL
RooRealProxy alphaR


Detailed Description

Definition at line 20 of file RooCruijff.hh.


Constructor & Destructor Documentation

RooCruijff::RooCruijff ( const char *  name,
const char *  title,
RooAbsReal &  _x,
RooAbsReal &  _m0,
RooAbsReal &  _sigmaL,
RooAbsReal &  _sigmaR,
RooAbsReal &  _alphaL,
RooAbsReal &  _alphaR 
)

Referenced by clone().

RooCruijff::RooCruijff ( const RooCruijff other,
const char *  name = 0 
)

Definition at line 38 of file RooCruijff.cc.

00038                                                                 :
00039   RooAbsPdf(other, name), 
00040   x("x", this, other.x), 
00041   m0("m0", this, other.m0),
00042   sigmaL("sigmaL", this, other.sigmaL), 
00043   sigmaR("sigmaR", this, other.sigmaR), 
00044   alphaL("alphaL", this, other.alphaL), 
00045   alphaR("alphaR", this, other.alphaR)
00046 {
00047 }

virtual RooCruijff::~RooCruijff (  )  [inline, virtual]

Definition at line 33 of file RooCruijff.hh.

00033 { }


Member Function Documentation

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

Definition at line 30 of file RooCruijff.hh.

References RooCruijff().

00030                                                     { 
00031     return new RooCruijff(*this,newname); }

Double_t RooCruijff::evaluate (  )  const [protected]

Definition at line 49 of file RooCruijff.cc.

References alphaL, alphaR, m0, sigmaL, sigmaR, and x.

00050 {
00051   // build the functional form
00052   double sigma = 0.0;
00053   double alpha = 0.0;
00054   double dx = (x - m0);
00055   if(dx<0){
00056     sigma = sigmaL;
00057     alpha = alphaL;
00058   } else {
00059     sigma = sigmaR;
00060     alpha = alphaR;
00061   }
00062   double f = 2*sigma*sigma + alpha*dx*dx ;
00063   return exp(-dx*dx/f) ;
00064 }


Member Data Documentation

RooRealProxy RooCruijff::alphaL [protected]

Definition at line 40 of file RooCruijff.hh.

Referenced by evaluate().

RooRealProxy RooCruijff::alphaR [protected]

Definition at line 41 of file RooCruijff.hh.

Referenced by evaluate().

RooRealProxy RooCruijff::m0 [protected]

Definition at line 37 of file RooCruijff.hh.

Referenced by evaluate().

RooRealProxy RooCruijff::sigmaL [protected]

Definition at line 38 of file RooCruijff.hh.

Referenced by evaluate().

RooRealProxy RooCruijff::sigmaR [protected]

Definition at line 39 of file RooCruijff.hh.

Referenced by evaluate().

RooRealProxy RooCruijff::x [protected]

Definition at line 36 of file RooCruijff.hh.

Referenced by evaluate().


The documentation for this class was generated from the following files:
Generated on 30 Oct 2013 for RooRarFit by  doxygen 1.4.7