CMS 3D CMS Logo

Classes | Typedefs | Functions
Geom Namespace Reference

Classes

class  Cartesian2Cartesian3D
 
class  Cylindrical2Cartesian
 
struct  MinusPiToPi
 
class  NormalizeWrapper
 
class  NormalizeWrapper< T1, MinusPiToPi >
 
class  NormalizeWrapper< T1, ZeroTo2pi >
 
class  OnePiRange
 
class  Phi
 
class  Polar2Cartesian
 
class  Spherical2Cartesian
 
class  Theta
 
struct  ZeroTo2pi
 

Typedefs

template<typename T >
using Phi0To2pi = Phi< T, ZeroTo2pi >
 

Functions

constexpr float fhalfPi ()
 
constexpr float fpi ()
 
constexpr float ftwoPi ()
 
constexpr double halfPi ()
 
template<class T , class Scalar >
OnePiRange< Toperator* (const OnePiRange< T > &a, const Scalar &b)
 Multiplication with scalar, does not change the precision. More...
 
template<typename T1 , typename Range , typename Scalar >
Phi< T1, Rangeoperator* (const Phi< T1, Range > &a, const Scalar &b)
 Multiplication with scalar, does not change the precision. More...
 
template<class T >
OnePiRange< Toperator* (double a, const OnePiRange< T > &b)
 Multiplication with scalar. More...
 
template<typename T1 , typename Range >
Phi< T1, Rangeoperator* (double a, const Phi< T1, Range > &b)
 Multiplication with scalar. More...
 
template<class T >
OnePiRange< Toperator+ (const OnePiRange< T > &a, const OnePiRange< T > &b)
 Addition. More...
 
template<class T , class Scalar >
OnePiRange< Toperator+ (const OnePiRange< T > &a, const Scalar &b)
 Addition with scalar, does not change the precision. More...
 
template<typename T1 , typename Range >
Phi< T1, Rangeoperator+ (const Phi< T1, Range > &a, const Phi< T1, Range > &b)
 Addition. More...
 
template<typename T1 , typename Range , typename Scalar >
Phi< T1, Rangeoperator+ (const Phi< T1, Range > &a, const Scalar &b)
 Addition with scalar, does not change the precision. More...
 
template<class T , class Scalar >
OnePiRange< Toperator+ (const Scalar &a, const OnePiRange< T > &b)
 Addition with scalar, does not change the precision. More...
 
template<typename T1 , typename Range , typename Scalar >
Phi< T1, Rangeoperator+ (const Scalar &a, const Phi< T1, Range > &b)
 Addition with scalar, does not change the precision. More...
 
template<class T >
OnePiRange< Toperator- (const OnePiRange< T > &a)
 
template<class T >
OnePiRange< Toperator- (const OnePiRange< T > &a, const OnePiRange< T > &b)
 Subtraction. More...
 
template<class T , class Scalar >
OnePiRange< Toperator- (const OnePiRange< T > &a, const Scalar &b)
 Subtraction with scalar, does not change the precision. More...
 
template<typename T1 , typename Range >
Phi< T1, Rangeoperator- (const Phi< T1, Range > &a)
 
template<typename T1 , typename Range >
Phi< T1, Rangeoperator- (const Phi< T1, Range > &a, const Phi< T1, Range > &b)
 Subtraction. More...
 
template<typename T1 , typename Range , typename Scalar >
Phi< T1, Rangeoperator- (const Phi< T1, Range > &a, const Scalar &b)
 Subtraction with scalar, does not change the precision. More...
 
template<class T , class Scalar >
OnePiRange< Toperator- (const Scalar &a, const OnePiRange< T > &b)
 Subtraction with scalar, does not change the precision. More...
 
template<typename T1 , typename Range , typename Scalar >
Phi< T1, Rangeoperator- (const Scalar &a, const Phi< T1, Range > &b)
 Subtraction with scalar, does not change the precision. More...
 
template<class T >
T operator/ (const OnePiRange< T > &a, const OnePiRange< T > &b)
 Division. More...
 
template<class T >
OnePiRange< Toperator/ (const OnePiRange< T > &a, double b)
 Division by scalar. More...
 
template<typename T1 , typename Range >
T1 operator/ (const Phi< T1, Range > &a, const Phi< T1, Range > &b)
 Division. More...
 
template<typename T1 , typename Range >
Phi< T1, Rangeoperator/ (const Phi< T1, Range > &a, double b)
 Division by scalar. More...
 
template<class Vector1 , class Vector2 >
bool phiLess (const Vector1 &v1, const Vector2 &v2)
 
bool phiLess (double phi1, double phi2)
 
bool phiLess (float phi1, float phi2)
 
constexpr double pi ()
 
constexpr double twoPi ()
 

Typedef Documentation

◆ Phi0To2pi

template<typename T >
using Geom::Phi0To2pi = typedef Phi<T, ZeroTo2pi>

Definition at line 187 of file Phi.h.

Function Documentation

◆ fhalfPi()

constexpr float Geom::fhalfPi ( )
inlineconstexpr

Definition at line 37 of file Pi.h.

37 { return 0.5f * 3.141592653589793238f; }

◆ fpi()

constexpr float Geom::fpi ( )
inlineconstexpr

Definition at line 35 of file Pi.h.

35 { return 3.141592653589793238f; }

Referenced by MagGeoBuilderFromDDD::build(), RecHitsSortedInPhi::doubleRange(), and RecHitsSortedInPhi::hits().

◆ ftwoPi()

constexpr float Geom::ftwoPi ( )
inlineconstexpr

◆ halfPi()

constexpr double Geom::halfPi ( )
inlineconstexpr

Definition at line 33 of file Pi.h.

33 { return 0.5 * 3.141592653589793238; }

Referenced by reco::trackingParametersAtClosestApproachToBeamSpot().

◆ operator*() [1/4]

template<class T , class Scalar >
OnePiRange<T> Geom::operator* ( const OnePiRange< T > &  a,
const Scalar &  b 
)
inline

Multiplication with scalar, does not change the precision.

Definition at line 110 of file OnePiRange.h.

110  {
111  return OnePiRange<T>(a) *= b;
112  }

References a, and b.

◆ operator*() [2/4]

template<typename T1 , typename Range , typename Scalar >
Phi<T1, Range> Geom::operator* ( const Phi< T1, Range > &  a,
const Scalar &  b 
)
inline

Multiplication with scalar, does not change the precision.

Definition at line 165 of file Phi.h.

165  {
166  return Phi<T1, Range>(a) *= b;
167  }

References a, and b.

◆ operator*() [3/4]

template<class T >
OnePiRange<T> Geom::operator* ( double  a,
const OnePiRange< T > &  b 
)
inline

Multiplication with scalar.

Definition at line 116 of file OnePiRange.h.

116  {
117  return OnePiRange<T>(b) *= a;
118  }

References a, and b.

◆ operator*() [4/4]

template<typename T1 , typename Range >
Phi<T1, Range> Geom::operator* ( double  a,
const Phi< T1, Range > &  b 
)
inline

Multiplication with scalar.

Definition at line 170 of file Phi.h.

170  {
171  return Phi<T1, Range>(b) *= a;
172  }

References a, and b.

◆ operator+() [1/6]

template<class T >
OnePiRange<T> Geom::operator+ ( const OnePiRange< T > &  a,
const OnePiRange< T > &  b 
)
inline

Addition.

Definition at line 76 of file OnePiRange.h.

76  {
77  return OnePiRange<T>(a) += b;
78  }

References a, and b.

◆ operator+() [2/6]

template<class T , class Scalar >
OnePiRange<T> Geom::operator+ ( const OnePiRange< T > &  a,
const Scalar &  b 
)
inline

Addition with scalar, does not change the precision.

Definition at line 81 of file OnePiRange.h.

81  {
82  return OnePiRange<T>(a) += b;
83  }

References a, and b.

◆ operator+() [3/6]

template<typename T1 , typename Range >
Phi<T1, Range> Geom::operator+ ( const Phi< T1, Range > &  a,
const Phi< T1, Range > &  b 
)
inline

Addition.

Definition at line 133 of file Phi.h.

133  {
134  return Phi<T1, Range>(a) += b;
135  }

References a, and b.

◆ operator+() [4/6]

template<typename T1 , typename Range , typename Scalar >
Phi<T1, Range> Geom::operator+ ( const Phi< T1, Range > &  a,
const Scalar &  b 
)
inline

Addition with scalar, does not change the precision.

Definition at line 138 of file Phi.h.

138  {
139  return Phi<T1, Range>(a) += b;
140  }

References a, and b.

◆ operator+() [5/6]

template<class T , class Scalar >
OnePiRange<T> Geom::operator+ ( const Scalar &  a,
const OnePiRange< T > &  b 
)
inline

Addition with scalar, does not change the precision.

Definition at line 86 of file OnePiRange.h.

86  {
87  return OnePiRange<T>(b) += a;
88  }

References a, and b.

◆ operator+() [6/6]

template<typename T1 , typename Range , typename Scalar >
Phi<T1, Range> Geom::operator+ ( const Scalar &  a,
const Phi< T1, Range > &  b 
)
inline

Addition with scalar, does not change the precision.

Definition at line 143 of file Phi.h.

143  {
144  return Phi<T1, Range>(b) += a;
145  }

References a, and b.

◆ operator-() [1/8]

template<class T >
OnePiRange<T> Geom::operator- ( const OnePiRange< T > &  a)
inline
  • operator

Definition at line 71 of file OnePiRange.h.

71 {return OnePiRange<T>(-a.value());}

References a.

◆ operator-() [2/8]

template<class T >
OnePiRange<T> Geom::operator- ( const OnePiRange< T > &  a,
const OnePiRange< T > &  b 
)
inline

Subtraction.

Definition at line 92 of file OnePiRange.h.

92  {
93  return OnePiRange<T>(a) -= b;
94  }

References a, and b.

◆ operator-() [3/8]

template<class T , class Scalar >
OnePiRange<T> Geom::operator- ( const OnePiRange< T > &  a,
const Scalar &  b 
)
inline

Subtraction with scalar, does not change the precision.

Definition at line 98 of file OnePiRange.h.

98  {
99  return OnePiRange<T>(a) -= b;
100  }

References a, and b.

◆ operator-() [4/8]

template<typename T1 , typename Range >
Phi<T1, Range> Geom::operator- ( const Phi< T1, Range > &  a)
inline
  • operator

Definition at line 127 of file Phi.h.

127  {
128  return Phi<T1, Range>(-a.value());
129  }

References a.

◆ operator-() [5/8]

template<typename T1 , typename Range >
Phi<T1, Range> Geom::operator- ( const Phi< T1, Range > &  a,
const Phi< T1, Range > &  b 
)
inline

Subtraction.

Definition at line 149 of file Phi.h.

149  {
150  return Phi<T1, Range>(a) -= b;
151  }

References a, and b.

◆ operator-() [6/8]

template<typename T1 , typename Range , typename Scalar >
Phi<T1, Range> Geom::operator- ( const Phi< T1, Range > &  a,
const Scalar &  b 
)
inline

Subtraction with scalar, does not change the precision.

Definition at line 154 of file Phi.h.

154  {
155  return Phi<T1, Range>(a) -= b;
156  }

References a, and b.

◆ operator-() [7/8]

template<class T , class Scalar >
OnePiRange<T> Geom::operator- ( const Scalar &  a,
const OnePiRange< T > &  b 
)
inline

Subtraction with scalar, does not change the precision.

Definition at line 104 of file OnePiRange.h.

104  {
105  return OnePiRange<T>(a - b.value()); // use of unary operators would normalize twice
106  }

References a, and b.

◆ operator-() [8/8]

template<typename T1 , typename Range , typename Scalar >
Phi<T1, Range> Geom::operator- ( const Scalar &  a,
const Phi< T1, Range > &  b 
)
inline

Subtraction with scalar, does not change the precision.

Definition at line 159 of file Phi.h.

159  {
160  return Phi<T1, Range>(a - b.value());
161  }

References a, and b.

◆ operator/() [1/4]

template<class T >
T Geom::operator/ ( const OnePiRange< T > &  a,
const OnePiRange< T > &  b 
)
inline

Division.

Definition at line 122 of file OnePiRange.h.

122  {
123  return a.value() / b.value();
124  }

References a, and b.

◆ operator/() [2/4]

template<class T >
OnePiRange<T> Geom::operator/ ( const OnePiRange< T > &  a,
double  b 
)
inline

Division by scalar.

Definition at line 128 of file OnePiRange.h.

128  {
129  return OnePiRange<T>(a) /= b;
130  }

References a, and b.

◆ operator/() [3/4]

template<typename T1 , typename Range >
T1 Geom::operator/ ( const Phi< T1, Range > &  a,
const Phi< T1, Range > &  b 
)
inline

Division.

Definition at line 176 of file Phi.h.

176  {
177  return a.value() / b.value();
178  }

References a, and b.

◆ operator/() [4/4]

template<typename T1 , typename Range >
Phi<T1, Range> Geom::operator/ ( const Phi< T1, Range > &  a,
double  b 
)
inline

Division by scalar.

Definition at line 181 of file Phi.h.

181  {
182  return Phi<T1, Range>(a) /= b;
183  }

References a, and b.

◆ phiLess() [1/3]

template<class Vector1 , class Vector2 >
bool Geom::phiLess ( const Vector1 &  v1,
const Vector2 &  v2 
)

Definition at line 21 of file VectorUtil.h.

21  {
22  return deltaPhi(v1.phi(), v2.phi()) < 0.;
23  }

References SiPixelRawToDigiRegional_cfi::deltaPhi.

◆ phiLess() [2/3]

bool Geom::phiLess ( double  phi1,
double  phi2 
)
inline

Definition at line 19 of file VectorUtil.h.

19 { return deltaPhi(phi1, phi2) < 0; }

References SiPixelRawToDigiRegional_cfi::deltaPhi.

◆ phiLess() [3/3]

bool Geom::phiLess ( float  phi1,
float  phi2 
)
inline

◆ pi()

constexpr double Geom::pi ( )
inlineconstexpr

Definition at line 31 of file Pi.h.

31 { return 3.141592653589793238; }

Referenced by SimpleConvertedPhotonAnalyzer::analyze(), DTVDriftCalibration::analyze(), EwkDQM::analyze(), PhotonsWithConversionsAnalyzer::analyze(), DTLocalTriggerSynchTask::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), PixelLumiDQM::bookHistograms(), MagGeoBuilderFromDDD::buildInterpolator(), SuperClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_Covariances(), tkDetUtil::calculatePhiWindow(), TIBRing::checkPeriodicity(), ForwardDiskSectorBuilderFromWedges::computeBounds(), ForwardDiskSectorBuilderFromDet::computeBounds(), DTTime2DriftParametrization::computeDriftDistance_mean(), DTTime2DriftParametrization::computeDriftDistance_mode(), EcalClusterToolsT< noZS >::covariances(), CylinderFromSectorMFGrid::CylinderFromSectorMFGrid(), Geom::OnePiRange< T >::degrees(), RecHitsSortedInPhi::doubleRange(), DTTrigGeomUtils::DTTrigGeomUtils(), ContainmentCorrectionAnalyzer::ecalEta(), egammaTools::ecalEta(), EgammaSuperClusters::ecalEta(), EgammaObjects::ecalEta(), egammaTools::ecalPhi(), RecHitsSortedInPhi::hits(), HResolution::HResolution(), HResolution1DRecHit::HResolution1DRecHit(), HTrackVariables::HTrackVariables(), MagBLayer::MagBLayer(), MagGeometry::MagGeometry(), HLTDTActivityFilter::matchChamber(), Geom::NormalizeWrapper< T1, MinusPiToPi >::normalize(), Geom::OnePiRange< T >::normalize(), SimpleConeBounds::openingAngle(), ForwardDiskSectorBuilderFromWedges::operator()(), DTSegmentSelector::operator()(), PhiBorderFinder::PhiBorderFinder(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), L2MuonSeedGeneratorFromL1TkMu::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), RPCtoDTTranslator::radialAngle(), SteppingHelixPropagator::refToDest(), SteppingHelixPropagator::refToMatVolume(), Cone::side(), TrapezoidalCylindricalMFGrid::TrapezoidalCylindricalMFGrid(), and DTTrigGeomUtils::trigPos().

◆ twoPi()

constexpr double Geom::twoPi ( )
inlineconstexpr
SiPixelRawToDigiRegional_cfi.deltaPhi
deltaPhi
Definition: SiPixelRawToDigiRegional_cfi.py:9
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119