CMS 3D CMS Logo

funct::BreitWigner Struct Reference

#include <PhysicsTools/Utilities/interface/BreitWigner.h>

List of all members.

Public Member Functions

 BreitWigner (double m, double g)
 BreitWigner (boost::shared_ptr< double > m, boost::shared_ptr< double > g)
 BreitWigner (const Parameter &m, const Parameter &g)
double operator() (double x) const

Public Attributes

boost::shared_ptr< double > mass
boost::shared_ptr< double > width


Detailed Description

Definition at line 10 of file BreitWigner.h.


Constructor & Destructor Documentation

funct::BreitWigner::BreitWigner ( const Parameter m,
const Parameter g 
) [inline]

Definition at line 11 of file BreitWigner.h.

00011                                                        :
00012       mass(m.ptr()), width(g.ptr()) { }
    BreitWigner(boost::shared_ptr<double> m, boost::shared_ptr<double> g): 

funct::BreitWigner::BreitWigner ( boost::shared_ptr< double >  m,
boost::shared_ptr< double >  g 
) [inline]

Definition at line 13 of file BreitWigner.h.

00013                                                                      : 
00014       mass(m), width(g) {}

funct::BreitWigner::BreitWigner ( double  m,
double  g 
) [inline]

Definition at line 15 of file BreitWigner.h.

00015                                    : 
00016       mass(new double(m)), width(new double(g)) {}


Member Function Documentation

double funct::BreitWigner::operator() ( double  x  )  const [inline]

Definition at line 17 of file BreitWigner.h.

References g2, mass, s, funct::twoOverPi, and width.

00017                                       {
00018       double m2 = *mass * (*mass); 
00019       double g2 = *width * (*width);
00020       double g2OverM2 = g2/m2;
00021       double s = x*x;
00022       double deltaS = s - m2;
00023       double lineShape = 0;
00024       if (fabs(deltaS/m2)<16) {
00025         double prop = deltaS*deltaS + s*s*g2OverM2;
00026         lineShape = twoOverPi * (*width) * s/prop;
00027       }
00028       return lineShape;
00029     }


Member Data Documentation

boost::shared_ptr<double> funct::BreitWigner::mass

Definition at line 30 of file BreitWigner.h.

Referenced by operator()().

boost::shared_ptr<double> funct::BreitWigner::width

Definition at line 30 of file BreitWigner.h.

Referenced by operator()().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:01 2009 for CMSSW by  doxygen 1.5.4