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

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

Definition at line 14 of file VirtualJetProducerHelper.h.

References M_PI, SiStripPI::max, and mathSSE::sqrt().

Referenced by compareHistograms::create_dif(), BeautifulSoup.BeautifulStoneSoup::endData(), RectangularEtaPhiTrackingRegion::estimator(), intersection(), FKDTree< TYPE, numberOfDimensions >::search(), edm::serviceregistry::ServicesManager::ServicesManager(), and VirtualJetProducer::writeJets().

14  {
15  if (r12 == 0)
16  return M_PI;
17  if (r12 >= 2)
18  return 0;
19  return 2 * std::acos(0.5 * r12) - 0.5 * r12 * sqrt(std::max(0.0, 4 - r12 * r12));
20  }
T sqrt(T t)
Definition: SSEVec.h:19
#define M_PI
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:19
double intersection(double r12, double r23, double r13, double a12, double a23, double a13)
#define M_PI
Definition: common.py:1
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:19
#define M_PI
Definition: common.py:1