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  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<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<typename T1 , typename Range >
Phi< T1, Rangeoperator* (double a, const Phi< T1, Range > &b)
 Multiplication with scalar. 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<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<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<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<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...
 
bool phiLess (float phi1, float phi2)
 
bool phiLess (double phi1, double phi2)
 
template<class Vector1 , class Vector2 >
bool phiLess (const Vector1 &v1, const Vector2 &v2)
 
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 ( )
inline

Definition at line 37 of file Pi.h.

37 { return 0.5f * 3.141592653589793238f; }

◆ fpi()

constexpr float Geom::fpi ( )
inline

Definition at line 35 of file Pi.h.

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

35 { return 3.141592653589793238f; }

◆ ftwoPi()

constexpr float Geom::ftwoPi ( )
inline

◆ halfPi()

constexpr double Geom::halfPi ( )
inline

Definition at line 33 of file Pi.h.

Referenced by reco::trackingParametersAtClosestApproachToBeamSpot().

33 { return 0.5 * 3.141592653589793238; }

◆ operator*() [1/2]

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.

References a, and b.

165  {
166  return Phi<T1, Range>(a) *= b;
167  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator*() [2/2]

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.

References a, and b.

170  {
171  return Phi<T1, Range>(b) *= a;
172  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator+() [1/3]

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.

References a, and b.

133  {
134  return Phi<T1, Range>(a) += b;
135  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator+() [2/3]

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.

References a, and b.

138  {
139  return Phi<T1, Range>(a) += b;
140  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator+() [3/3]

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.

References a, and b.

143  {
144  return Phi<T1, Range>(b) += a;
145  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator-() [1/4]

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.

References a.

127  {
128  return Phi<T1, Range>(-a.value());
129  }
double a
Definition: hdecay.h:119

◆ operator-() [2/4]

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.

References a, and b.

149  {
150  return Phi<T1, Range>(a) -= b;
151  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator-() [3/4]

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.

References a, and b.

154  {
155  return Phi<T1, Range>(a) -= b;
156  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator-() [4/4]

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.

References a, and b.

159  {
160  return Phi<T1, Range>(a - b.value());
161  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator/() [1/2]

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.

References a, and b.

176  {
177  return a.value() / b.value();
178  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ operator/() [2/2]

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.

References a, and b.

181  {
182  return Phi<T1, Range>(a) /= b;
183  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119

◆ phiLess() [1/3]

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

◆ phiLess() [2/3]

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

Definition at line 19 of file VectorUtil.h.

References SiPixelRawToDigiRegional_cfi::deltaPhi.

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

◆ phiLess() [3/3]

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

Definition at line 21 of file VectorUtil.h.

References SiPixelRawToDigiRegional_cfi::deltaPhi.

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

◆ pi()

constexpr double Geom::pi ( )
inline

Definition at line 31 of file Pi.h.

Referenced by EwkDQM::analyze(), DTVDriftCalibration::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(), RecHitsSortedInPhi::doubleRange(), DTTrigGeomUtils::DTTrigGeomUtils(), egammaTools::ecalEta(), ContainmentCorrectionAnalyzer::ecalEta(), EgammaSuperClusters::ecalEta(), EgammaObjects::ecalEta(), egammaTools::ecalPhi(), RecHitsSortedInPhi::hits(), hMuonStat::hMuonStat(), HResolution::HResolution(), HResolution1DRecHit::HResolution1DRecHit(), HTrackVariables::HTrackVariables(), MagBLayer::MagBLayer(), MagGeometry::MagGeometry(), HLTDTActivityFilter::matchChamber(), Geom::NormalizeWrapper< T1, MinusPiToPi >::normalize(), SimpleConeBounds::openingAngle(), ForwardDiskSectorBuilderFromWedges::operator()(), DTSegmentSelector::operator()(), PhiBorderFinder::PhiBorderFinder(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGeneratorFromL1TkMu::produce(), L2MuonSeedGenerator::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), RPCtoDTTranslator::radialAngle(), SteppingHelixPropagator::refToDest(), SteppingHelixPropagator::refToMatVolume(), Cone::side(), TrapezoidalCylindricalMFGrid::TrapezoidalCylindricalMFGrid(), and DTTrigGeomUtils::trigPos().

31 { return 3.141592653589793238; }

◆ twoPi()

constexpr double Geom::twoPi ( )
inline