CMS 3D CMS Logo

Functions
reco::helper::VirtualJetProducerHelper Namespace Reference

Functions

double intersection (double r12)
 
double intersection (double r12, double r23, double r13)
 
double intersection (double r12, double r23, double r13, double a12, double a23, double a13)
 

Function Documentation

◆ intersection() [1/3]

double reco::helper::VirtualJetProducerHelper::intersection ( double  r12)
inline

◆ intersection() [2/3]

double reco::helper::VirtualJetProducerHelper::intersection ( double  r12,
double  r23,
double  r13 
)
inline

Definition at line 23 of file VirtualJetProducerHelper.h.

References trackingPlots::common, intersection(), M_PI, SiStripPI::max, mathSSE::sqrt(), and groupFilesInBlocks::temp.

23  {
24  if (r12 >= 2 || r23 >= 2 || r13 >= 2)
25  return 0;
26  const double r12_2 = r12 * r12;
27  const double r13_2 = r13 * r13;
28  const double temp = (r12_2 + r13_2 - r23 * r23);
29  const double T2 = std::max(0.0, 4 * r12_2 * r13_2 - temp * temp);
30  const double common = 0.5 * (intersection(r12) + intersection(r13) + intersection(r23) - M_PI + 0.5 * sqrt(T2));
31  return common;
32  }
T sqrt(T t)
Definition: SSEVec.h:23
double intersection(double r12, double r23, double r13, double a12, double a23, double a13)
#define M_PI
Definition: common.py:1

◆ intersection() [3/3]

double reco::helper::VirtualJetProducerHelper::intersection ( double  r12,
double  r23,
double  r13,
double  a12,
double  a23,
double  a13 
)
inline

Definition at line 33 of file VirtualJetProducerHelper.h.

References trackingPlots::common, M_PI, SiStripPI::max, mathSSE::sqrt(), and groupFilesInBlocks::temp.

33  {
34  if (r12 >= 2 || r23 >= 2 || r13 >= 2)
35  return 0;
36  const double r12_2 = r12 * r12;
37  const double r13_2 = r13 * r13;
38  const double temp = (r12_2 + r13_2 - r23 * r23);
39  const double T2 = std::max(0.0, 4 * r12_2 * r13_2 - temp * temp);
40  const double common = 0.5 * (a12 + a13 + a23 - M_PI + 0.5 * sqrt(T2));
41  return common;
42  }
T sqrt(T t)
Definition: SSEVec.h:23
#define M_PI
Definition: common.py:1