CMS 3D CMS Logo

Public Member Functions | Public Attributes

funct::GammaZInterference Struct Reference

#include <GammaZInterference.h>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 8 of file GammaZInterference.h.


Constructor & Destructor Documentation

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

Definition at line 9 of file GammaZInterference.h.

                                                              : 
      mass(m.ptr()), width(g.ptr()) { }
funct::GammaZInterference::GammaZInterference ( boost::shared_ptr< double >  m,
boost::shared_ptr< double >  g 
) [inline]

Definition at line 11 of file GammaZInterference.h.

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

Member Function Documentation

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

Definition at line 13 of file GammaZInterference.h.

References mass, asciidump::s, width, and ExpressReco_HICollisions_FallBack::x.

                                      { 
      double m2 = *mass * (*mass); 
      double g2 = *width * (*width);
      double g2OverM2 = g2/m2; 
      double s = x*x;
      double deltaS = s - m2;
      double interference = 0;
      if (fabs(deltaS/m2)<16) {
        double prop = deltaS*deltaS + s*s*g2OverM2;
        interference =  5*(*mass)*deltaS/prop;
      }
      return interference;
    }

Member Data Documentation

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

Definition at line 26 of file GammaZInterference.h.

Referenced by operator()().

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

Definition at line 26 of file GammaZInterference.h.

Referenced by operator()().