CMS 3D CMS Logo

Classes | Functions | Variables
Geom Namespace Reference

Classes

class  Cartesian2Cartesian3D
 
class  Cylindrical2Cartesian
 
class  OnePiRange
 
class  Phi
 
class  Polar2Cartesian
 
class  Spherical2Cartesian
 
class  Theta
 

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<class T , class Scalar >
Phi< Toperator* (const Phi< T > &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<class T >
Phi< Toperator* (double a, const Phi< T > &b)
 Multiplication with scalar. More...
 
template<class T >
OnePiRange< Toperator+ (const OnePiRange< T > &a, const OnePiRange< T > &b)
 Addition. More...
 
template<class T >
Phi< Toperator+ (const Phi< T > &a, const Phi< 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<class T , class Scalar >
Phi< Toperator+ (const Phi< T > &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<class T , class Scalar >
Phi< Toperator+ (const Scalar &a, const Phi< T > &b)
 Addition with scalar, does not change the precision. More...
 
template<class T >
OnePiRange< Toperator- (const OnePiRange< T > &a)
 
template<class T >
Phi< Toperator- (const Phi< T > &a)
 
template<class T >
OnePiRange< Toperator- (const OnePiRange< T > &a, const OnePiRange< T > &b)
 Subtraction. More...
 
template<class T >
Phi< Toperator- (const Phi< T > &a, const Phi< 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<class T , class Scalar >
Phi< Toperator- (const Phi< T > &a, const Scalar &b)
 Subtraction with scalar, does not change the precision. More...
 
template<class T , class Scalar >
Phi< Toperator- (const Scalar &a, const Phi< T > &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<class T >
T operator/ (const OnePiRange< T > &a, const OnePiRange< T > &b)
 Division. More...
 
template<class T >
T operator/ (const Phi< T > &a, const Phi< T > &b)
 Division. More...
 
template<class T >
Phi< Toperator/ (const Phi< T > &a, double b)
 Division by scalar. More...
 
template<class T >
OnePiRange< Toperator/ (const OnePiRange< T > &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 ()
 

Variables

class Geom::Polar2Cartesian  __attribute__
 

Function Documentation

constexpr float Geom::fhalfPi ( )
inline

Definition at line 37 of file Pi.h.

37 {return 0.5f*3.141592653589793238f;}
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;}
constexpr float Geom::ftwoPi ( )
inline
constexpr double Geom::halfPi ( )
inline

Definition at line 33 of file Pi.h.

Referenced by reco::trackingParametersAtClosestApproachToBeamSpot().

33 {return 0.5*3.141592653589793238;}
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.

References a.

110  {
111  return OnePiRange<T>(a) *= b;
112  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T , class Scalar >
Phi<T> Geom::operator* ( const Phi< T > &  a,
const Scalar &  b 
)
inline

Multiplication with scalar, does not change the precision.

Definition at line 111 of file Phi.h.

References a.

111  {
112  return Phi<T>(a) *= b;
113  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References b.

116  {
117  return OnePiRange<T>(b) *= a;
118  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
Phi<T> Geom::operator* ( double  a,
const Phi< T > &  b 
)
inline

Multiplication with scalar.

Definition at line 116 of file Phi.h.

References b.

116  {
117  return Phi<T>(b) *= a;
118  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References a.

76  {
77  return OnePiRange<T>(a) += b;
78  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
Phi<T> Geom::operator+ ( const Phi< T > &  a,
const Phi< T > &  b 
)
inline

Addition.

Definition at line 77 of file Phi.h.

References a.

77  {
78  return Phi<T>(a) += b;
79  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References a.

81  {
82  return OnePiRange<T>(a) += b;
83  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T , class Scalar >
Phi<T> Geom::operator+ ( const Phi< T > &  a,
const Scalar &  b 
)
inline

Addition with scalar, does not change the precision.

Definition at line 82 of file Phi.h.

References a.

82  {
83  return Phi<T>(a) += b;
84  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References b.

86  {
87  return OnePiRange<T>(b) += a;
88  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T , class Scalar >
Phi<T> Geom::operator+ ( const Scalar &  a,
const Phi< T > &  b 
)
inline

Addition with scalar, does not change the precision.

Definition at line 87 of file Phi.h.

References b.

87  {
88  return Phi<T>(b) += a;
89  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
OnePiRange<T> Geom::operator- ( const OnePiRange< T > &  a)
inline
  • operator

Definition at line 71 of file OnePiRange.h.

References Geom::OnePiRange< T >::value().

71 {return OnePiRange<T>(-a.value());}
double a
Definition: hdecay.h:121
template<class T >
Phi<T> Geom::operator- ( const Phi< T > &  a)
inline
  • operator

Definition at line 72 of file Phi.h.

References Geom::Phi< T >::value().

72 {return Phi<T>(-a.value());}
double a
Definition: hdecay.h:121
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.

References a.

92  {
93  return OnePiRange<T>(a) -= b;
94  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
Phi<T> Geom::operator- ( const Phi< T > &  a,
const Phi< T > &  b 
)
inline

Subtraction.

Definition at line 94 of file Phi.h.

References a.

94  {
95  return Phi<T>(a) -= b;
96  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References a.

98  {
99  return OnePiRange<T>(a) -= b;
100  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T , class Scalar >
Phi<T> Geom::operator- ( const Phi< T > &  a,
const Scalar &  b 
)
inline

Subtraction with scalar, does not change the precision.

Definition at line 99 of file Phi.h.

References a.

99  {
100  return Phi<T>(a) -= b;
101  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T , class Scalar >
Phi<T> Geom::operator- ( const Scalar &  a,
const Phi< T > &  b 
)
inline

Subtraction with scalar, does not change the precision.

Definition at line 104 of file Phi.h.

References Geom::Phi< T >::value().

104  {
105  return Phi<T>(a - b.value()); // use of unary operators would normalize twice
106  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References Geom::OnePiRange< T >::value().

104  {
105  return OnePiRange<T>(a - b.value()); // use of unary operators would normalize twice
106  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
T Geom::operator/ ( const OnePiRange< T > &  a,
const OnePiRange< T > &  b 
)
inline

Division.

Definition at line 122 of file OnePiRange.h.

References Geom::OnePiRange< T >::value().

122  {
123  return a.value() / b.value();
124  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
T Geom::operator/ ( const Phi< T > &  a,
const Phi< T > &  b 
)
inline

Division.

Definition at line 123 of file Phi.h.

References Geom::Phi< T >::value().

123  {
124  return a.value() / b.value();
125  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
template<class T >
Phi<T> Geom::operator/ ( const Phi< T > &  a,
double  b 
)
inline

Division by scalar.

Definition at line 128 of file Phi.h.

References a.

128  {
129  return Phi<T>(a) /= b;
130  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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.

References a.

128  {
129  return OnePiRange<T>(a) /= b;
130  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
bool Geom::phiLess ( float  phi1,
float  phi2 
)
inline

Definition of ordering of azimuthal angles. phi1 is less than phi2 if the angle covered by a point going from phi1 to phi2 in the counterclockwise direction is smaller than pi. It makes sense only if ALL phis are in a single hemisphere...

Definition at line 23 of file VectorUtil.h.

References hiPixelPairStep_cff::deltaPhi.

Referenced by tkDetUtil::calculatePhiWindow(), BoundSpan::compute(), PhiLess::operator()(), CompositeTECWedge::searchNeighbors(), TIDRing::searchNeighbors(), and Phase2EndcapRing::searchNeighbors().

23  {
24  return deltaPhi(phi1,phi2)<0;
25  }
bool Geom::phiLess ( double  phi1,
double  phi2 
)
inline

Definition at line 26 of file VectorUtil.h.

References hiPixelPairStep_cff::deltaPhi.

26  {
27  return deltaPhi(phi1,phi2)<0;
28  }
template<class Vector1 , class Vector2 >
bool Geom::phiLess ( const Vector1 &  v1,
const Vector2 &  v2 
)

Definition at line 30 of file VectorUtil.h.

References hiPixelPairStep_cff::deltaPhi.

30  {
31  return deltaPhi(v1.phi(),v2.phi())<0.;
32  }
constexpr double Geom::pi ( )
inline

Definition at line 31 of file Pi.h.

Referenced by PhotonsWithConversionsAnalyzer::analyze(), SimpleConvertedPhotonAnalyzer::analyze(), DTVDriftCalibration::analyze(), EwkDQM::analyze(), DTLocalTriggerSynchTask::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), PixelLumiDQM::bookHistograms(), MagGeoBuilderFromDDD::buildInterpolator(), l1t::calc_phi_glob_rad(), l1t::calc_phi_glob_rad_hit(), l1t::calc_phi_GMT_rad(), l1t::calc_phi_loc_rad(), l1t::calc_theta_deg(), l1t::calc_theta_rad_from_int(), SuperClusterShapeAlgo::Calculate_Covariances(), ClusterShapeAlgo::Calculate_Covariances(), tkDetUtil::calculatePhiWindow(), TIBRing::checkPeriodicity(), ForwardDiskSectorBuilderFromWedges::computeBounds(), ForwardDiskSectorBuilderFromDet::computeBounds(), DTTime2DriftParametrization::computeDriftDistance_mean(), DTTime2DriftParametrization::computeDriftDistance_mode(), PrimitiveConverterRPC::convert(), PFClusterShapeAlgo::covariances(), EcalClusterToolsT< noZS >::covariances(), CylinderFromSectorMFGrid::CylinderFromSectorMFGrid(), Geom::OnePiRange< T >::degrees(), Geom::Phi< float >::degrees(), RecHitsSortedInPhi::doubleRange(), DTTrigGeomUtils::DTTrigGeomUtils(), ECALPositionCalculator::ecalEta(), ContainmentCorrectionAnalyzer::ecalEta(), EgammaSuperClusters::ecalEta(), EgammaObjects::ecalEta(), ECALPositionCalculator::ecalPhi(), DDI::Ellipsoid::halfVol(), RecHitsSortedInPhi::hits(), HResolution::HResolution(), HResolution1DRecHit::HResolution1DRecHit(), HTrackVariables::HTrackVariables(), EcalListOfFEDSProducer::ListOfFEDS(), ESListOfFEDSProducer::ListOfFEDS(), MagBLayer::MagBLayer(), MagGeometry::MagGeometry(), HLTDTActivityFilter::matchChamber(), Geom::Phi< float >::normalize(), Geom::OnePiRange< T >::normalize(), SimpleConeBounds::openingAngle(), ForwardDiskSectorBuilderFromWedges::operator()(), DTSegmentSelector::operator()(), PhiBorderFinder::PhiBorderFinder(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), L1TMuonEndCapTrackProducer::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), L1TwinMux::PrimitiveCombiner::radialAngleFromGlobalPhi(), SteppingHelixPropagator::refToDest(), SteppingHelixPropagator::refToMatVolume(), l1t::EMTFHitExtra::set_phi_glob_rad(), l1t::EMTFTrack::set_phi_glob_rad(), Cone::side(), TrapezoidalCylindricalMFGrid::TrapezoidalCylindricalMFGrid(), DTTrigGeomUtils::trigPos(), DDI::Sphere::volume(), DDI::Orb::volume(), DDI::EllipticalTube::volume(), and DDI::Ellipsoid::volume().

31 {return 3.141592653589793238;}
constexpr double Geom::twoPi ( )
inline

Variable Documentation

class Geom::Theta Geom::__attribute__