CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
funct::GammaZInterference Struct Reference

#include <GammaZInterference.h>

Public Member Functions

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

Public Attributes

std::shared_ptr< double > mass
 
std::shared_ptr< double > width
 

Detailed Description

Definition at line 9 of file GammaZInterference.h.

Constructor & Destructor Documentation

◆ GammaZInterference() [1/2]

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

Definition at line 10 of file GammaZInterference.h.

10 : mass(m.ptr()), width(g.ptr()) {}

◆ GammaZInterference() [2/2]

funct::GammaZInterference::GammaZInterference ( std::shared_ptr< double >  m,
std::shared_ptr< double >  g 
)
inline

Definition at line 11 of file GammaZInterference.h.

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

Member Function Documentation

◆ operator()()

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

Definition at line 12 of file GammaZInterference.h.

12  {
13  double m2 = *mass * (*mass);
14  double g2 = *width * (*width);
15  double g2OverM2 = g2 / m2;
16  double s = x * x;
17  double deltaS = s - m2;
18  double interference = 0;
19  if (fabs(deltaS / m2) < 16) {
20  double prop = deltaS * deltaS + s * s * g2OverM2;
21  interference = 5 * (*mass) * deltaS / prop;
22  }
23  return interference;
24  }

References diffTwoXMLs::g2, mass, alignCSCRings::s, and width.

Member Data Documentation

◆ mass

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

◆ width

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

Definition at line 25 of file GammaZInterference.h.

Referenced by operator()().

DDAxes::x
funct::GammaZInterference::width
std::shared_ptr< double > width
Definition: GammaZInterference.h:25
alignCSCRings.s
s
Definition: alignCSCRings.py:92
funct::m
m
Definition: Factorize.h:45
diffTwoXMLs.g2
g2
Definition: diffTwoXMLs.py:71
funct::GammaZInterference::mass
std::shared_ptr< double > mass
Definition: GammaZInterference.h:25
g
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