CMS 3D CMS Logo

GammaZInterference.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_GammaZInterference_h
2 #define PhysicsTools_Utilities_GammaZInterference_h
4 #include <boost/shared_ptr.hpp>
5 #include <cmath>
6 
7 namespace funct {
8 
11  mass(m.ptr()), width(g.ptr()) { }
12  GammaZInterference(boost::shared_ptr<double> m, boost::shared_ptr<double> g):
13  mass(m), width(g) {}
14  double operator()(double x) const {
15  double m2 = *mass * (*mass);
16  double g2 = *width * (*width);
17  double g2OverM2 = g2/m2;
18  double s = x*x;
19  double deltaS = s - m2;
20  double interference = 0;
21  if (fabs(deltaS/m2)<16) {
22  double prop = deltaS*deltaS + s*s*g2OverM2;
23  interference = 5*(*mass)*deltaS/prop;
24  }
25  return interference;
26  }
27  boost::shared_ptr<double> mass, width;
28  };
29 
30 }
31 
32 #endif
double operator()(double x) const
Definition: Abs.h:5
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
boost::shared_ptr< double > width
GammaZInterference(boost::shared_ptr< double > m, boost::shared_ptr< double > g)
GammaZInterference(const Parameter &m, const Parameter &g)
boost::shared_ptr< double > mass