#include <PhysicsTools/Utilities/interface/BreitWigner.h>
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 |
Definition at line 10 of file BreitWigner.h.
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] |
funct::BreitWigner::BreitWigner | ( | double | m, | |
double | g | |||
) | [inline] |
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 }
boost::shared_ptr<double> funct::BreitWigner::mass |
boost::shared_ptr<double> funct::BreitWigner::width |