test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions | Variables
Basic3DVectorLD.h File Reference

Go to the source code of this file.

Classes

class  Basic3DVector< long double >
 

Typedefs

typedef Basic3DVector< long
double > 
Basic3DVectorLD
 
typedef
Geom::Cylindrical2Cartesian< T
Cylindrical
 
typedef Basic3DVector< TMathVector
 
typedef Spherical Polar
 
typedef T ScalarType
 
typedef
Geom::Spherical2Cartesian< T
Spherical
 
typedef long double T
 

Functions

template<>
class Basic3DVector< long double > __attribute__ ((aligned(16)))
 
T barePhi () const
 
T bareTheta () const
 
 Basic3DVector ()
 
 Basic3DVector (const Basic3DVector &p)
 Copy constructor from same type. Should not be needed but for gcc bug 12685. More...
 
template<class U >
 Basic3DVector (const Basic3DVector< U > &p)
 Copy constructor and implicit conversion from Basic3DVector of different precision. More...
 
 Basic3DVector (const Basic2DVector< T > &p)
 constructor from 2D vector (X and Y from 2D vector, z set to zero) More...
 
template<class OtherPoint >
 Basic3DVector (const OtherPoint &p)
 
 Basic3DVector (const T &x, const T &y, const T &z)
 construct from cartesian coordinates More...
 
template<typename U >
 Basic3DVector (const Geom::Theta< U > &theta, const Geom::Phi< U > &phi, const T &r)
 
Basic3DVector cross (const Basic3DVector &v) const
 Vector product, or "cross" product, with a vector of same type. More...
 
template<class U >
Basic3DVector< typename
PreciseFloatType< T, U >::Type > 
cross (const Basic3DVector< U > &v) const
 
T dot (const Basic3DVector &v) const
 Scalar product, or "dot" product, with a vector of same type. More...
 
template<class U >
PreciseFloatType< T, U >::Type dot (const Basic3DVector< U > &v) const
 
T eta () const
 
T mag () const
 The vector magnitude. Equivalent to sqrt(vec.mag2()) More...
 
T mag2 () const
 The vector magnitude squared. Equivalent to vec.dot(vec) More...
 
long double operator* (const Basic3DVector< long double > &v1, const Basic3DVector< long double > &v2)
 scalar product of vectors of same precision More...
 
template<class U >
PreciseFloatType< long double,
U >::Type 
operator* (const Basic3DVector< long double > &v1, const Basic3DVector< U > &v2)
 scalar product of vectors of different precision More...
 
template<class U >
PreciseFloatType< long double,
U >::Type 
operator* (const Basic3DVector< U > &v1, const Basic3DVector< long double > &v2)
 
Basic3DVector< long double > operator* (const Basic3DVector< long double > &v, long double t)
 
Basic3DVector< long double > operator* (long double t, const Basic3DVector< long double > &v)
 Same as operator*( Vector, Scalar) More...
 
template<typename S >
Basic3DVector< long double > operator* (S t, const Basic3DVector< long double > &v)
 
template<typename S >
Basic3DVector< long double > operator* (const Basic3DVector< long double > &v, S t)
 
Basic3DVectoroperator*= (T t)
 Scaling by a scalar value (multiplication) More...
 
Basic3DVector< long double > operator+ (const Basic3DVector< long double > &a, const Basic3DVector< long double > &b)
 vector sum and subtraction of vectors of possibly different precision More...
 
template<class U >
Basic3DVector< typename
PreciseFloatType< long double,
U >::Type > 
operator+ (const Basic3DVector< long double > &a, const Basic3DVector< U > &b)
 
template<class U >
Basic3DVector< typename
PreciseFloatType< long double,
U >::Type > 
operator+ (const Basic3DVector< U > &a, const Basic3DVector< long double > &b)
 
template<class U >
Basic3DVectoroperator+= (const Basic3DVector< U > &p)
 
Basic3DVector operator- () const
 Unary minus, returns a vector with components (-x(),-y(),-z()) More...
 
Basic3DVector< long double > operator- (const Basic3DVector< long double > &a, const Basic3DVector< long double > &b)
 
template<class U >
Basic3DVector< typename
PreciseFloatType< long double,
U >::Type > 
operator- (const Basic3DVector< long double > &a, const Basic3DVector< U > &b)
 
template<class U >
Basic3DVector< typename
PreciseFloatType< long double,
U >::Type > 
operator- (const Basic3DVector< U > &a, const Basic3DVector< long double > &b)
 
template<class U >
Basic3DVectoroperator-= (const Basic3DVector< U > &p)
 
template<typename S >
Basic3DVector< long double > operator/ (const Basic3DVector< long double > &v, S s)
 
Basic3DVectoroperator/= (T t)
 Scaling by a scalar value (division) More...
 
bool operator== (const Basic3DVector &rh) const
 
T perp () const
 Magnitude of transverse component. More...
 
T perp2 () const
 Squared magnitude of transverse component. More...
 
Geom::Phi< Tphi () const
 
Geom::Theta< Ttheta () const
 
T transverse () const
 Another name for perp() More...
 
Basic3DVector unit () const
 
T x () const
 Cartesian x coordinate. More...
 
Basic2DVector< Txy () const
 
T y () const
 Cartesian y coordinate. More...
 
T z () const
 Cartesian z coordinate. More...
 

Variables

T theW
 
T theX
 
T theY
 
T theZ
 

Typedef Documentation

typedef Basic3DVector<long double> Basic3DVectorLD

Definition at line 335 of file Basic3DVectorLD.h.

Definition at line 59 of file Basic3DVectorLD.h.

Definition at line 63 of file Basic3DVectorLD.h.

typedef Spherical Polar

Definition at line 61 of file Basic3DVectorLD.h.

typedef T ScalarType

Definition at line 58 of file Basic3DVectorLD.h.

Definition at line 60 of file Basic3DVectorLD.h.

typedef long double T

Definition at line 57 of file Basic3DVectorLD.h.

Function Documentation

template<>
class Basic3DVector< long double > __attribute__ ( (aligned(16))  )
T __attribute__::barePhi ( ) const

Azimuthal angle. The value is returned in radians, in the range (-pi,pi]. Same precision as the system atan2(x,y) function. The return type is Geom::Phi<T>, see it's documentation.

Definition at line 162 of file Basic3DVectorLD.h.

Referenced by MuonAlignmentAnalyzer::analyze(), SeedForPhotonConversionFromQuadruplets::bubbleReverseSortVsPhi(), SeedForPhotonConversionFromQuadruplets::bubbleSortVsPhi(), PixelHitMatcher::compatibleHits(), and ME0SegmentMatcher::produce().

162 {
T __attribute__::bareTheta ( ) const

Polar angle. The value is returned in radians, in the range [0,pi] Same precision as the system atan2(x,y) function. The return type is Geom::Phi<T>, see it's documentation.

Definition at line 169 of file Basic3DVectorLD.h.

170 { return Basic3DVector(-x(),-y(),-z());}
float float float z
T x() const
Cartesian x coordinate.
Basic3DVector()
__attribute__::Basic3DVector ( )

default constructor uses default constructor of T to initialize the components. For built-in floating-point types this means initialization to zero??? (force init to 0)

Definition at line 69 of file Basic3DVectorLD.h.

70 :
Basic3DVector ( const Basic3DVector p)

Copy constructor from same type. Should not be needed but for gcc bug 12685.

Definition at line 72 of file Basic3DVectorLD.h.

template<class U >
__attribute__::Basic3DVector ( const Basic3DVector< U > &  p)

Copy constructor and implicit conversion from Basic3DVector of different precision.

Definition at line 77 of file Basic3DVectorLD.h.

__attribute__::Basic3DVector ( const Basic2DVector< T > &  p)

constructor from 2D vector (X and Y from 2D vector, z set to zero)

Definition at line 81 of file Basic3DVectorLD.h.

85  { return theX;}
T theX
template<class OtherPoint >
__attribute__::Basic3DVector ( const OtherPoint &  p)
explicit

Explicit constructor from other (possibly unrelated) vector classes The only constraint on the argument type is that it has methods x(), y() and z(), and that these methods return a type convertible to T. Examples of use are
construction from a Basic3DVector with different precision
construction from a Hep3Vector
construction from a coordinate system converter

Definition at line 93 of file Basic3DVectorLD.h.

References Basic3DVector< T >::theX, and Basic3DVector< T >::theY.

93  { return Basic2DVector<T>(theX,theY);}
94 
T theY
T theX
__attribute__::Basic3DVector ( const T x,
const T y,
const T z 
)

construct from cartesian coordinates

Definition at line 112 of file Basic3DVectorLD.h.

114  { return perp();}
T perp() const
Magnitude of transverse component.
template<typename U >
__attribute__::Basic3DVector ( const Geom::Theta< U > &  theta,
const Geom::Phi< U > &  phi,
const T r 
)

Deprecated construct from polar coordinates, use
Basic3DVector<T>( Basic3DVector<T>::Polar( theta, phi, r)) instead.

Definition at line 120 of file Basic3DVectorLD.h.

References Basic3DVector< T >::x(), and Basic3DVector< T >::y().

120  {return std::atan2(y(),x());}
121  Geom::Phi<T> phi() const {return Geom::Phi<T>(barePhi());}
122 
T barePhi() const
T x() const
Cartesian x coordinate.
Geom::Phi< T > phi() const
Definition: Phi.h:20
Basic3DVector __attribute__::cross ( const Basic3DVector v) const
template<class U >
Basic3DVector<typename PreciseFloatType<T,U>::Type> __attribute__::cross ( const Basic3DVector< U > &  v) const

Vector (or cross) product with a vector of different precision. The product is computed without loss of precision. The type of the returned vector is the more precise of the types of the two vectors.

Definition at line 261 of file Basic3DVectorLD.h.

template<class U >
PreciseFloatType<T,U>::Type __attribute__::dot ( const Basic3DVector< U > &  v) const

Scalar (or dot) product with a vector of different precision. The product is computed without loss of precision. The type of the returned scalar is the more precise of the scalar types of the two vectors.

Definition at line 242 of file Basic3DVectorLD.h.

244  {
T __attribute__::eta ( ) const

Pseudorapidity. Does not check for zero transverse component; in this case the behavior is as for divide-by zero, i.e. system-dependent.

Definition at line 177 of file Basic3DVectorLD.h.

181 {
T __attribute__::mag ( ) const

The vector magnitude. Equivalent to sqrt(vec.mag2())

Definition at line 147 of file Basic3DVectorLD.h.

Referenced by PixelDigitizerAlgorithm::accumulateSimHits(), PSSDigitizerAlgorithm::accumulateSimHits(), SSDigitizerAlgorithm::accumulateSimHits(), PSPDigitizerAlgorithm::accumulateSimHits(), SiPixelDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), ReferenceTrajectory::addMaterialEffectsBrl(), SiStripElectronAnalyzer::analyze(), TestHits::analyze(), DTChamberEfficiencyTask::analyze(), TestSmoothHits::analyze(), MuonTrackResidualAnalyzer::analyze(), MuonDTDigis::analyze(), IPTagPlotter< Container, Base >::analyzeTag(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), reco::GhostTrackState::axisDistance(), ThirdHitPrediction::calculateRangesBarrel(), CaloCellCrossing::CaloCellCrossing(), TkGluedMeasurementDet::checkHitProjection(), GlobalMuonRefitter::checkMuonHits(), VZeroFinder::checkTrackPair(), MuonTrajectoryCleaner::clean(), Bcm1fSD::closeHit(), PltSD::closeHit(), TkAccumulatingSensitiveDetector::closeHit(), Phase1PixelBlade::computeCrossings(), GlobalMuonTrackMatcher::convertToTSOSMuHit(), GlobalMuonTrackMatcher::convertToTSOSTkHit(), MuonSensitiveDetector::createHit(), fireworks::createSegment(), CaloDetIdAssociator::crossedElement(), TangentCircle::curvatureError(), SiLinearChargeDivider::DeconvolutionShape(), OptOMirror::detailedDeviatesLightRay(), TangentCircle::direction(), RK4PreciseStep::distance(), SignedImpactParameter3D::distanceWithJetAxis(), DTSegtoRPC::DTSegtoRPC(), DTDigitizer::dumpHit(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), Phase1PixelBlade::findBin2(), AdaptiveVertexFitter::fit(), Trajectory::geometricalInnermostState(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), TrackAssociatorByPositionImpl::getState(), FlatTrd::getTransform(), TruncatedPyramid::getTransform(), CaloCellGeometry::getTransform(), MuonShowerInformationFiller::hitsFromSegments(), IdealObliquePrism::initCorners(), MaterialAccountingGroup::inside(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), IPTools::jetTrackDistance(), HSCPValidator::makeGenPlots(), egHLT::ParticlePair< T >::mass(), GlobalCosmicMuonTrajectoryBuilder::match(), GlobalMuonTrackMatcher::match_D(), GlobalMuonTrackMatcher::match_d(), MatcherUsingTracksAlgorithm::matchByDirectComparison(), MatcherUsingTracksAlgorithm::matchWithPropagation(), NuclearTester::meanHitDistance(), TracksClusteringFromDisplacedSeed::nearTracks(), ConversionHitChecker::nHitsBeforeVtx(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), RKCylindricalDistance< T, N >::operator()(), RKCurvilinearDistance< T, N >::operator()(), LinTrackCache::Vicinity::operator()(), RKCartesianDistance::operator()(), RecHitLessByDet::operator()(), MuonShowerInformationFiller::LessMag::operator()(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), reco::TrackResiduals::pack_pull(), reco::TrackResiduals::pack_residual(), egHLT::EgTagProbeCut< T >::pass(), egHLT::EgTrigTagProbeCut::pass(), egHLT::EgTrigTagProbeCut_New::pass(), egHLT::EgTrigTagProbeCut_NewPho::pass(), SiLinearChargeDivider::PeakShape(), SoftPFMuonTagInfoProducer::produce(), SoftPFElectronTagInfoProducer::produce(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), SiStripElectronAssociator::produce(), reco::modules::CosmicTrackSplitter::produce(), SteppingHelixPropagator::propagate(), SteppingHelixPropagator::propagateWithPath(), TrackAssociatorByPositionImpl::quality(), GenericTripletGenerator::qualityFilter(), SteppingHelixPropagator::refToDest(), CosmicRegionalSeedGenerator::regions(), SoftLepton::relativeEta(), TrackInfoProducerAlgorithm::run(), DigiSimLinkAlgorithm::run(), MagGeoBuilderFromDDD::volumeHandle::sameSurface(), SeedGeneratorForCosmics::seeds(), FWMagField::setFFFieldMag(), DDErrorDetection::so(), DynamicTruncation::sort(), SETSeedFinder::sortByLayer(), GlobalCosmicMuonTrajectoryBuilder::sortHits(), CosmicMuonSmoother::sortHitsAlongMom(), SeedFromNuclearInteraction::stateWithError(), TangentCircle::TangentCircle(), TangentHelix::TangentHelix(), ThirdHitPredictionFromCircle::transverseIP(), reco::TrackResiduals::unpack_pull(), reco::TrackResiduals::unpack_residual(), CheckSecondary::update(), MuonSensitiveDetector::updateHit(), and MultiVertexFitter::updateSeeds().

152 {
long double operator* ( const Basic3DVector< long double > &  v1,
const Basic3DVector< long double > &  v2 
)
inline

scalar product of vectors of same precision

Definition at line 282 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::dot().

282  {
283  return v1.dot(v2);
284 }
T dot(const Basic3DVector &v) const
Scalar product, or &quot;dot&quot; product, with a vector of same type.
template<class U >
PreciseFloatType<long double,U>::Type operator* ( const Basic3DVector< long double > &  v1,
const Basic3DVector< U > &  v2 
)
inline

scalar product of vectors of different precision

Definition at line 288 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::x(), Basic3DVector< T >::x(), Basic3DVector< long double >::y(), Basic3DVector< T >::y(), Basic3DVector< long double >::z(), and Basic3DVector< T >::z().

289  {
290  return v1.x()*v2.x() + v1.y()*v2.y() + v1.z()*v2.z();
291 }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
PreciseFloatType<long double,U>::Type operator* ( const Basic3DVector< U > &  v1,
const Basic3DVector< long double > &  v2 
)
inline

Definition at line 294 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::x(), Basic3DVector< T >::x(), Basic3DVector< long double >::y(), Basic3DVector< T >::y(), Basic3DVector< long double >::z(), and Basic3DVector< T >::z().

295  {
296  return v1.x()*v2.x() + v1.y()*v2.y() + v1.z()*v2.z();
297 }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
Basic3DVector<long double> operator* ( const Basic3DVector< long double > &  v,
long double  t 
)
inline

Multiplication by scalar, does not change the precision of the vector. The return type is the same as the type of the vector argument.

Definition at line 304 of file Basic3DVectorLD.h.

References t, Basic3DVector< long double >::x(), Basic3DVector< long double >::y(), and Basic3DVector< long double >::z().

304  {
305  return Basic3DVector<long double>(v.x()*t, v.y()*t, v.z()*t);
306 }
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
Basic3DVector<long double> operator* ( long double  t,
const Basic3DVector< long double > &  v 
)
inline

Same as operator*( Vector, Scalar)

Definition at line 310 of file Basic3DVectorLD.h.

References t, Basic3DVector< long double >::x(), Basic3DVector< long double >::y(), and Basic3DVector< long double >::z().

310  {
311  return Basic3DVector<long double>(v.x()*t, v.y()*t, v.z()*t);
312 }
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<typename S >
Basic3DVector<long double> operator* ( S  t,
const Basic3DVector< long double > &  v 
)
inline

Definition at line 315 of file Basic3DVectorLD.h.

References t.

315  {
316  return static_cast<long double>(t)*v;
317 }
template<typename S >
Basic3DVector<long double> operator* ( const Basic3DVector< long double > &  v,
S  t 
)
inline

Definition at line 320 of file Basic3DVectorLD.h.

References t.

320  {
321  return static_cast<long double>(t)*v;
322 }
Basic3DVector& __attribute__::operator*= ( T  t)

Scaling by a scalar value (multiplication)

Definition at line 215 of file Basic3DVectorLD.h.

Basic3DVector<long double> operator+ ( const Basic3DVector< long double > &  a,
const Basic3DVector< long double > &  b 
)
inline

vector sum and subtraction of vectors of possibly different precision

Definition at line 239 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::x(), Basic3DVector< long double >::y(), and Basic3DVector< long double >::z().

239  {
240  typedef Basic3DVector<long double> RT;
241  return RT(a.x()+b.x(), a.y()+b.y(), a.z()+b.z());
242 }
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
Basic3DVector<typename PreciseFloatType<long double,U>::Type> operator+ ( const Basic3DVector< long double > &  a,
const Basic3DVector< U > &  b 
)
inline

Definition at line 253 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::x(), Basic3DVector< T >::x(), Basic3DVector< long double >::y(), Basic3DVector< T >::y(), Basic3DVector< long double >::z(), and Basic3DVector< T >::z().

253  {
255  return RT(a.x()+b.x(), a.y()+b.y(), a.z()+b.z());
256 }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
Basic3DVector<typename PreciseFloatType<long double,U>::Type> operator+ ( const Basic3DVector< U > &  a,
const Basic3DVector< long double > &  b 
)
inline

Definition at line 260 of file Basic3DVectorLD.h.

260  {
262  return RT(a.x()+b.x(), a.y()+b.y(), a.z()+b.z());
263 }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
Basic3DVector& __attribute__::operator+= ( const Basic3DVector< U > &  p)

Operator += with a Basic3DVector of possibly different precision.

Definition at line 194 of file Basic3DVectorLD.h.

Basic3DVector __attribute__::operator- ( ) const

Unary minus, returns a vector with components (-x(),-y(),-z())

Definition at line 212 of file Basic3DVectorLD.h.

Basic3DVector<long double> operator- ( const Basic3DVector< long double > &  a,
const Basic3DVector< long double > &  b 
)
inline

Definition at line 244 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::x(), Basic3DVector< long double >::y(), and Basic3DVector< long double >::z().

244  {
245  typedef Basic3DVector<long double> RT;
246  return RT(a.x()-b.x(), a.y()-b.y(), a.z()-b.z());
247 }
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
Basic3DVector<typename PreciseFloatType<long double,U>::Type> operator- ( const Basic3DVector< long double > &  a,
const Basic3DVector< U > &  b 
)
inline

Definition at line 268 of file Basic3DVectorLD.h.

268  {
270  return RT(a.x()-b.x(), a.y()-b.y(), a.z()-b.z());
271 }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
Basic3DVector<typename PreciseFloatType<long double,U>::Type> operator- ( const Basic3DVector< U > &  a,
const Basic3DVector< long double > &  b 
)
inline

Definition at line 275 of file Basic3DVectorLD.h.

References Basic3DVector< long double >::x(), Basic3DVector< T >::x(), Basic3DVector< long double >::y(), Basic3DVector< T >::y(), Basic3DVector< long double >::z(), and Basic3DVector< T >::z().

275  {
277  return RT(a.x()-b.x(), a.y()-b.y(), a.z()-b.z());
278 }
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
T x() const
Cartesian x coordinate.
T z() const
Cartesian z coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
template<class U >
Basic3DVector& __attribute__::operator-= ( const Basic3DVector< U > &  p)

Operator -= with a Basic3DVector of possibly different precision.

Definition at line 204 of file Basic3DVectorLD.h.

205  {
206  return Basic3DVector( y()*v.z() - v.y()*z(),
207  z()*v.x() - v.z()*x(),
208  x()*v.y() - v.x()*y());
209  }
float float float z
T x() const
Cartesian x coordinate.
Basic3DVector()
template<typename S >
Basic3DVector<long double> operator/ ( const Basic3DVector< long double > &  v,
S  s 
)
inline

Division by scalar, does not change the precision of the vector. The return type is the same as the type of the vector argument.

Definition at line 329 of file Basic3DVectorLD.h.

References alignCSCRings::s, and t.

329  {
330  long double t = 1/s;
331  return v*t;
332 }
Basic3DVector& __attribute__::operator/= ( T  t)

Scaling by a scalar value (division)

Definition at line 223 of file Basic3DVectorLD.h.

225  :
226  T theX;
227  T theY;
228  T theZ;
229  T theW;
T theZ
T theY
T theW
T theX
long double T
bool __attribute__::operator== ( const Basic3DVector rh) const

Definition at line 139 of file Basic3DVectorLD.h.

141  {
T __attribute__::perp ( ) const

Magnitude of transverse component.

Definition at line 153 of file Basic3DVectorLD.h.

Referenced by CMSTopTagger::_find_min_mass(), ElectronMcSignalValidator::analyze(), DrellYanValidation::analyze(), MBUEandQCDValidation::analyze(), MuonAlignmentAnalyzer::analyze(), Phase2OTBarrelRodBuilder::build(), TOBLayerBuilder::build(), PixelBlade::computeCrossings(), ZeeCalibration::fillEleInfo(), HcalHardcodeGeometryLoader::fillHE(), HcalFlexiHardcodeGeometryLoader::fillHE(), HcalHardcodeGeometryLoader::fillHF(), HcalFlexiHardcodeGeometryLoader::fillHF(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProdHist::fillTrk(), GlobalHitsProducer::fillTrk(), TIDLayer::findClosest(), SiStripElectronAlgo::findElectron(), TIDLayer::findNextIndex(), MuonShowerInformationFiller::findPerpCluster(), Phase2EndcapLayer::findThreeClosest(), Trajectory::geometricalInnermostState(), CaloGeometryHelper::getClosestCell(), TrackFitter::getCotThetaAndUpdateZip(), TkLasBeamFitter::getLasBeams(), reco::GhostTrackPrediction::GhostTrackPrediction(), TkLasBeamFitter::globalTrackPoint(), SimpleDiskBounds::inside(), DiskSectorBounds::inside(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), MaterialAccountingGroup::MaterialAccountingGroup(), ThirdHitZPrediction::operator()(), CompareTwoTracksVectors::operator()(), TangentApproachInRPhi::perpdist(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), RKPropagatorInS::propagateParametersOnCylinder(), AnalyticalPropagator::propagateParametersOnPlane(), SoftLepton::refineJetAxis(), CATopJetAlgorithm::run(), cms::CATopJetProducer::runAlgorithm(), and cms::HTTTopJetProducer::runAlgorithm().

162 {
Geom::Phi<T> __attribute__::phi ( ) const

Definition at line 163 of file Basic3DVectorLD.h.

Referenced by fireworks::addStraightLineSegment(), JetValidation::analyze(), HiBasicGenTest::analyze(), DijetMass< Jet >::analyze(), BPHHistoSpecificDecay::analyze(), TrackBuildingAnalyzer::analyze(), L1TdeGCT::analyze(), L1TDEMON::analyze(), edm::FlatEGunASCIIWriter::analyze(), MuonPFAnalyzer::analyze(), HLTInclusiveVBFSource::analyze(), FourVectorHLT::analyze(), JetAnalyzer::analyze(), HLTObjectMonitorProtonLead::analyze(), HLTObjectMonitor::analyze(), METAnalyzer::analyze(), L1TEfficiencyMuons_Offline::analyze(), B2GDQM::analyzeJets(), heppy::MuScleFitCorrector::applyPtCorrection(), heppy::MuScleFitCorrector::applyPtSmearing(), L1TwinMux::MBLTCollection::associate(), cms::MinBias::beginJob(), FourVectorHLT::beginJob(), BestTracks(), L1TdeGCT::bookHistograms(), L1TDEMON::bookHistograms(), PFRecoTauTagInfoAlgorithm::buildPFTauTagInfo(), L1TMuon::GeometryTranslator::calcDTSpecificPoint(), OuterDetCompatibility::center(), RPCSeedPattern::checkSegmentAlgorithmSpecial(), RPCSeedPattern::checkSimplePattern(), TangentApproachInRPhi::circleParameters(), EcalClusterToolsT< noZS >::cluster2ndMoments(), egammaisolation::EgammaRecHitExtractor::collect(), PixelHitMatcher::compatibleHits(), EgammaTowerIsolationNew< NC >::compute(), ForwardDiskSectorBuilderFromDet::computeBounds(), tauImpactParameter::TrackHelixVertexFitter::computeLorentzVectorPar(), tauImpactParameter::TrackHelixVertexFitter::computeTrackPar(), tauImpactParameter::ParticleBuilder::createTrackParticle(), EcalElectronicsMapping::DCCid(), Decay(), reco::tau::cone::DeltaRFilter< typename CandType::value_type >::DeltaRFilter(), Deltas(), DetectorVector(), PFRecoTauDiscriminationByIsolation::discriminate(), MuonGmtPair::dR(), EcalAlignmentXMLTranslator::dumpXML(), pat::PackedCandidate::dxy(), pat::PackedCandidate::dz(), EcalABAnalyzer::EcalABAnalyzer(), EcalLaserAnalyzer2::EcalLaserAnalyzer2(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), EcalTestPulseAnalyzer::EcalTestPulseAnalyzer(), cms::MinBias::endJob(), tauImpactParameter::MultiProngTauSolver::estimateNu(), metsig::SignAlgoResolutions::evalPF(), DDHCalTestBeamAlgo::execute(), DDHCalXtalAlgo::execute(), spr::extraIds(), EcalClusterToolsT< noZS >::fast_AbsZernikeMoment(), BPHWriteSpecificDecay::fill(), DAClusterizerInZ::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), HistoFiller< T >::fillHistos(), GenericBenchmark::fillHistos(), HcalObjRepresent::FillUnphysicalHEHFBins(), BdecayFilter::filter(), BsJpsiPhiFilter::filter(), JetHTJetPlusHOFilter::filter(), SinglePhotonJetPlusHOFilter::filter(), WZInterestingEventSelector::filter(), CSCEfficiency::filter(), ThirdHitPrediction::findTouchingCircles(), tauImpactParameter::TauA1NuConstrainedFitter::fit(), PerigeeConversions::ftsToPerigeeParameters(), gen::Pythia6EGun::generateEvent(), gen::Pythia6JetGun::generateEvent(), gen::Pythia6PartonEGun::generateEvent(), gen::Pythia6PartonPtGun::generateEvent(), gen::Pythia6PtGun::generateEvent(), gen::Pythia6PtYDistGun::generateEvent(), gen::Py8PtGun::generatePartonsAndHadronize(), gen::Py8JetGun::generatePartonsAndHadronize(), gen::Py8EGun::generatePartonsAndHadronize(), gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), get3x3(), get5x5(), l1t::MicroGMTIsolationUnit::getCaloIndex(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalClusterToolsT< noZS >::getDPhiEndcap(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), HcalHaloAlgo::GetHaloClusterCandidateHB(), HcalHaloAlgo::GetHaloClusterCandidateHE(), reco::TauMassTagInfo::getInvariantMass(), CalibrationCluster::getMap(), L1TEfficiencyMuons_Offline::getMuonGmtPairs(), hgcal::RecHitTools::getPhi(), L1TEfficiencyMuons_Offline::getProbeMuons(), RPCSeedPattern::getSpecialAlgorithmErrorMatrix(), pat::helper::IsoDepositIsolator::getValue(), MEEBGeom::globalCoord(), GlobalDetRodRangeZPhi::GlobalDetRodRangeZPhi(), l1t::CaloTools::gtPhi(), RectangularEtaPhiTrackingRegion::hits(), CosmicTrackingRegion::hits_(), HLLHCEvtVtxGenerator::HLLHCEvtVtxGenerator(), HLTJetPairDzMatchFilter< T >::hltFilter(), Thrust::initialAxis(), DDHCalTestBeamAlgo::initialize(), MuonMesh::isDuplicateOf(), IsotropicR3(), EcalElectronicsMapping::iTT(), jacobianCurvilinearToCartesian(), EcalListOfFEDSProducer::Jets(), ESListOfFEDSProducer::Jets(), L1TMuonTPPproducer(), EcalClusterToolsT< noZS >::lat(), L1MuDTPhiLut::load(), main(), HFClusterAlgo::makeCluster(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::makeFilteredColl(), hcalCalib::makeTextFile(), l1t::Stage2Layer2TauAlgorithmFirmwareImp1::merging(), Mod(), mtrTransfer(), EcalListOfFEDSProducer::Muon(), ESListOfFEDSProducer::Muon(), reco::Mustache::MustacheClust(), normalized_phi(), reco::isodeposit::NumCrystalEtaPhiVeto::NumCrystalEtaPhiVeto(), ValidHitPairFilter::operator()(), l1t::stage2::CaloTowerPacker::pack(), parse_peak_member_function(), kinem::phi(), reco::helper::CastorJetIDHelper::phiangle(), phiFromXtal(), PhysicsVector(), PhysicsVectorRaw(), DTTFFEDReader::process(), l1t::Stage2Layer2DemuxEGAlgoFirmwareImp1::processEvent(), l1t::Stage2Layer2DemuxTauAlgoFirmwareImp1::processEvent(), l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1::processEvent(), edm::FileRandomKEThetaGunProducer::produce(), reco::modules::CaloRecHitCandidateProducer< HitCollection >::produce(), edm::FlatRandomEGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), edm::ExpoRandomPGunProducer::produce(), pf2pat::PFMETAlgo::produce(), L1TMuonTriggerPrimitiveProducer::produce(), L1TPhysicalEtAdder::produce(), L1TMuonLegacyConverter::produce(), GenHIEventProducer::produce(), l1t::GenToInputProducer::produce(), JetCrystalsAssociator::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), TrackKinematicStatePropagator::propagateToTheTransversePCANeutral(), tauImpactParameter::TrackTools::propagateToXPosition(), tauImpactParameter::TrackTools::propagateToYPosition(), tauImpactParameter::TrackTools::propagateToZPosition(), reco::isodeposit::RectangularEtaPhiVeto::RectangularEtaPhiVeto(), relative_phi(), TrackFitter::run(), TBPLayer::searchNeighbors(), RPCSeedPattern::SegmentAlgorithmSpecial(), egHLT::trigTools::setFiltersObjPasses(), tauImpactParameter::TauA1NuConstrainedFitter::SolveAmbiguityAnalytically(), tauImpactParameter::TauA1NuConstrainedFitter::SolveAmbiguityAnalyticallywithRot(), tauImpactParameter::MultiProngTauSolver::solveByRotation(), reco::TemplatedSoftLeptonTagInfo< REF >::taggingVariables(), tauImpactParameter::TauA1NuConstrainedFitter::TauRot(), TBposition(), EcalElectronicsMapping::TCCid(), l1t::CaloTools::towerPhi(), PF_PU_FirstVertexTracks::TrackMatch(), TrackPlots(), translateCoeff(), ecalIM::uniqueIndex(), pat::PackedGenParticle::unpack(), pat::PackedCandidate::unpack(), pat::PackedCandidate::unpackVtx(), FP420Test::update(), DDI::Tubs::volume(), writeCalibTxt(), writeCMSSWCoeff(), TangentApproachInRPhi::zCoord(), and ClosestApproachInRPhi::zCoord().

170 { return Basic3DVector(-x(),-y(),-z());}
float float float z
T x() const
Cartesian x coordinate.
Basic3DVector()
Geom::Theta<T> __attribute__::theta ( ) const

Definition at line 170 of file Basic3DVectorLD.h.

References Basic3DVector< T >::Basic3DVector(), Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

Referenced by GflashTrajectory::_refreshCache(), Hector::addPartToHepMC(), fireworks::addStraightLineSegment(), HCALRecHitAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), StandaloneTrackMonitor::analyze(), TrackerHitAnalyzer::analyze(), TrackBuildingAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), edm::FlatEGunASCIIWriter::analyze(), MuonDTDigis::analyze(), EcalTPGParamBuilder::analyze(), BremsstrahlungSimulator::brem(), MuonBremsstrahlungSimulator::brem(), FWConvTrackHitsDetailView::build(), FWMET3DProxyBuilder::build(), FWTauProxyBuilderBase::buildBaseTau(), FWECALCaloDataDetailViewBuilder::buildCaloData(), FWPFClusterRPZUtils::buildRhoZClusterLineSet(), FWMETProxyBuilder::buildViewType(), FWJetProxyBuilder::buildViewType(), TFitParticleMCPInvSpher::calc4Vec(), TFitParticleMCSpher::calc4Vec(), TFitParticleESpher::calc4Vec(), TFitParticleEtThetaPhi::calc4Vec(), TFitParticleSpher::calc4Vec(), CSCHaloAlgo::Calculate(), TwoBodyDecayModel::cartesianSecondaryMomenta(), MultipleScatteringSimulator::compute(), NuclearInteractionSimulator::compute(), AnalyticalCurvilinearJacobian::computeFullJacobian(), HDRShower::computeShower(), DTDigitizer::computeTime(), EcalHitMaker::configureGeometry(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule0(), ElectronEnergyCalibrator::correctLinearity(), TSCPBuilderNoMaterial::createFTSatTransverseImpactPointNeutral(), DDHGCalNoTaperEndcap::createQuarter(), fireworks::createSegment(), Deltas(), ZMuMuIsolationAnalyzer::Deposits(), Decay3Body::doDecay(), CSCValidation::doSegments(), DTDigitizer::driftTimeFromParametrization(), DTBtiChip::DTBtiChip(), ECALPositionCalculator::ecalEta(), tauImpactParameter::MultiProngTauSolver::estimateNu(), RawParticle::eta(), metsig::SignAlgoResolutions::eval(), DDHCalXtalAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTECOptoHybAlgo::execute(), DDTIBLayerAlgo::execute(), DDHCalTBZposAlgo::execute(), DDHCalTestBeamAlgo::execute(), DDTECAxialCableAlgo::execute(), DDTECPhiAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTIDRingAlgo::execute(), DDTrackerAngular::execute(), DDTrackerAngularV1::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerPhiAlgo::execute(), DDAngular::execute(), DDEcalBarrelAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDTrackerRingAlgo::execute(), KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), HcalTestAnalysis::fill(), SimG4HcalValidation::fill(), HcalTB04Analysis::fillBuffer(), GenSpecificAlgo::fillCommonMETData(), TrackerHitProducer::fillG4MC(), TrackAnalyzer::fillHistosForState(), reco::Mustache::FillMustacheVar(), NtupleManager::FillOptObjects(), EopVariables::fillVariables(), SETFilter::find3MoreStartingPoints(), spr::findDetIdECAL(), spr::findDetIdHCAL(), SETFilter::findMinChi2(), MuonShowerInformationFiller::findThetaCluster(), tauImpactParameter::TauA1NuConstrainedFitter::fit(), OutInConversionSeedFinder::fixPointRadius(), PerigeeConversions::ftsToPerigeeParameters(), calib::CalibElectron::getCalibModulesWeights(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), L1TMuon::TriggerPrimitive::getCMSGlobalPoint(), TFitParticleMCPInvSpher::getDerivative(), TFitParticleMCSpher::getDerivative(), TFitParticleESpher::getDerivative(), TFitParticleEtThetaPhi::getDerivative(), TFitParticleSpher::getDerivative(), HcalDDDSimConstants::getDetEta(), ZdcSD::getEnergyDeposit(), CastorSD::getEnergyDeposit(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), IsolatedPixelTrackCandidateL1TProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), IsoTrig::GetEtaPhiAtEcal(), reco::TauMassTagInfo::getInvariantMass(), CastorShowerLibraryMaker::GetKinematics(), pftools::CaloEllipse::getMajorMinorAxes(), GetPackedEta(), CastorShowerLibrary::getShowerHits(), pftools::CaloEllipse::getTheta(), CaloCellId::getThetaCell(), HcalDDDRecConstants::getThickActive(), DDHCalTBZposAlgo::initialize(), DDHCalTestBeamAlgo::initialize(), FastTimeDDDConstants::initialize(), MuonMesh::isClusteredWith(), MuonMesh::isDuplicateOf(), edm::RandomtXiGunProducer::make_particle(), HcalDDDGeometryLoader::makeCell(), Multi5x5BremRecoveryClusterAlgo::makeIslandSuperClusters(), fireworks::makeRhoZSuperCluster(), FinalTreeBuilder::momentumPart(), CosmicGenFilterHelix::monitorStart(), heppy::Davismt2::mt2_massless(), muonisolation::CaloExtractor::MuonAtCaloPosition(), FWGUIManager::open3DRegion(), SimpleConeBounds::openingAngle(), SimG4HcalHitCluster::operator+=(), reco::PreshowerCluster::operator<(), ListGroups::overlayEtaReferences(), DDLTrapezoid::processElement(), edm::FlatRandomMultiParticlePGunProducer::produce(), edm::GaussRandomPThetaGunProducer::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), ShallowTracksProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), edm::FlatRandomEGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), edm::ExpoRandomPGunProducer::produce(), ShallowSimTracksProducer::produce(), pf2pat::PFMETAlgo::produce(), HLTL1TMuonSelector::produce(), HLTL1MuonSelector::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), L1TMuonEndCapTrackProducer::produce(), JetCrystalsAssociator::produce(), TrackKinematicStatePropagator::propagateToTheTransversePCANeutral(), AsciiNeutronReader::readNextEvent(), heppy::Hemisphere::Reconstruct(), SteppingHelixPropagator::refToDest(), PointSeededTrackingRegionsProducer::regions(), heppy::Hemisphere::RejectISR(), KFBasedPixelFitter::run(), PFSpecificAlgo::run(), EcalRecHitWorkerRecover::run(), PFPhotonAlgo::RunPFPhoton(), RecoTracktoTP::s_eta(), TPtoRecoTrack::s_eta(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), TFitParticleMCPInvSpher::setIni4Vec(), TFitParticleMCSpher::setIni4Vec(), TFitParticleESpher::setIni4Vec(), TFitParticleEtThetaPhi::setIni4Vec(), TFitParticleSpher::setIni4Vec(), HcalForwardAnalysis::setPhotons(), tauImpactParameter::MultiProngTauSolver::setTauDirectionatThetaGJMax(), ConvertedHit::SetTheta(), L1TMuon::TriggerPrimitive::setThetaBend(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), ConvertedHit::SetValues(), DTRecHitQuality::simHitImpactAngle(), smearFunctionBase::smearEta(), tauImpactParameter::TauA1NuConstrainedFitter::SolveAmbiguityAnalytically(), tauImpactParameter::TauA1NuConstrainedFitter::SolveAmbiguityAnalyticallywithRot(), tauImpactParameter::MultiProngTauSolver::solveByRotation(), TangentCircle::TangentCircle(), tauImpactParameter::TauA1NuConstrainedFitter::TauRot(), kinem::theta(), HDRShower::thetaFunction(), HcalTestAnalysis::timeOfFlight(), HcalTB04Analysis::timeOfFlight(), spr::timeOfFlight(), SiStripFineDelayTOF::timeOfFlightBeamB(), SiStripFineDelayTOF::timeOfFlightCosmicB(), MuonNavigableLayer::trackingRange(), InvariantMassFromVertex::uncertainty(), HcalTestAnalysis::update(), HcalTB02Analysis::update(), DoCastorAnalysis::update(), CastorTestAnalysis::update(), FW3DViewBase::updateClipPlanes(), pftools::Utils::VectorEPRtoXYZ(), and ECALRecHitAnalyzer::WriteECALRecHits().

170 { return Basic3DVector(-x(),-y(),-z());}
float float float z
T x() const
Cartesian x coordinate.
Basic3DVector()
T __attribute__::transverse ( ) const

Another name for perp()

Definition at line 156 of file Basic3DVectorLD.h.

Referenced by SequentialVertexFitter< N >::fit().

162 {
Basic3DVector __attribute__::unit ( ) const

Unit vector parallel to this. If mag() is zero, a zero vector is returned.

Definition at line 183 of file Basic3DVectorLD.h.

190  {
T __attribute__::x ( ) const

Cartesian x coordinate.

Definition at line 127 of file Basic3DVectorLD.h.

References Basic3DVector< T >::perp(), and Basic3DVector< T >::z().

Referenced by HcalOnlineHarvesting::_dqmEndLuminosityBlock(), BPHFittedBasicSelect::accept(), RPCDigiValid::analyze(), DQMSourceExample::analyze(), DTChamberEfficiencyTask::analyze(), MuonDTDigis::analyze(), TreeProducerCalibSimul::analyze(), analyzer::SiPixelLorentzAngle::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), dqm::DQMFileSaverOnline::appendSnapshot(), SignedTransverseImpactParameter::apply(), edm::HepMCProduct::applyVtxGen(), approx_atan2f_P< 11 >(), approx_atan2f_P< 13 >(), approx_atan2f_P< 15 >(), approx_atan2f_P< 3 >(), approx_atan2f_P< 5 >(), approx_atan2f_P< 7 >(), approx_atan2f_P< 9 >(), approx_atan2i_P< 11 >(), approx_atan2i_P< 13 >(), approx_atan2i_P< 15 >(), approx_atan2i_P< 3 >(), approx_atan2i_P< 5 >(), approx_atan2i_P< 7 >(), approx_atan2i_P< 9 >(), approx_expf(), edm::ThinnedAssociationsHelper::associationToBranches(), fastmath::atan2r(), ESDaqInfoTask::beginJob(), ESDaqInfoTask::beginLuminosityBlock(), BestTracks(), gen::HijingHadronizer::build_hijing(), gen::HijingHadronizer::build_hijing_vertex(), gen::HydjetHadronizer::build_hyjet(), gen::Hydjet2Hadronizer::build_hyjet2_vertex(), gen::HydjetHadronizer::build_hyjet_vertex(), edm::TypeWithDict::byName(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), GlobalHaloAlgo::Calculate(), l1t::EmtfPtAssignment::calculateAddress(), ESIntegrityTask::calculateDIFraction(), CalculatePt_FullPrecision(), hitfit::Base_Constrainer::call_constraint_fcn(), reco::GhostTrackPrediction::cartesianError(), cast_to_L1TMuonGlobalParams(), cast_to_L1TMuonGlobalParams_PUBLIC(), edm::service::MessageServicePSetValidation::catBoolRestriction(), edm::service::MessageServicePSetValidation::catInts(), edm::service::MessageServicePSetValidation::catNone(), EcalCrystalMatrixProbality< T >::Central(), gen::Hydjet2Hadronizer::CharmEnhancementFactor(), RPCSeedPattern::checkStraightwithThreerecHits(), clean(), edm::EventSelector::combine(), AnalyticalCurvilinearJacobian::computeFullJacobian(), tauImpactParameter::TrackHelixVertexFitter::computeLorentzVectorPar(), RPCSeedPattern::computePtwithThreerecHits(), RPCSeedPattern::computePtWithThreerecHits(), DTDigitizer::computeTime(), tauImpactParameter::TrackHelixVertexFitter::computeTrackPar(), barrelUtil::computeWindowSize(), npstat::convertToHistoAxis(), dtCalibration::DTTTrigResidualCorrection::correction(), align::createPoints(), tauImpactParameter::ParticleBuilder::createTrackParticle(), dd_get_boolean_params(), DDcreateRotationMatrix(), DDrot(), DDrotReflect(), cscdqm::Detector::Detector(), ClusterShape::determineShape(), EcalCrystalMatrixProbality< T >::Diagonal(), CSCValidation::doADCTiming(), CSCValidation::doAFEBTiming(), CSCValidation::doCompTiming(), IntegralOverPhiFunction::DoEvalPar(), IntegrandThetaFunction::DoEvalPar(), CSCValidation::doGasGain(), MuonRecoTest::dqmEndJob(), dqmservices::DQMMonitoringService::DQMMonitoringService(), fwlite::Scanner< Collection >::draw2D(), ChargeDrifterFP420::drift(), funct::HistoPdf::dump(), hcaldqm::ContainerXXX< STDTYPE >::dump(), DTDigitizer::dumpHit(), EcalAlignmentXMLTranslator::dumpXML(), edm::NavigateEventsLooper::duringLoop(), editBoolParameter(), hf_egamma::eSeLCorrected(), Chi2Strip1DEstimator::estimate(), kinem::eta(), metsig::SignAlgoResolutions::eval(), l1t::ForestHelper::evaluate(), DDHCalTBZposAlgo::execute(), edm::EventSelector::expandDecisionList(), hcaldqm::ContainerSingle1D::extendAxisRange(), hcaldqm::ContainerSingle2D::extendAxisRange(), hcaldqm::Container1D::extendAxisRange(), LMFDat::fetch(), CSCValHists::fill2DHistByEvent(), ecaldqm::MESet::fill_(), HcalObjRepresent::fillOneGain(), cms::BHFilter::filter(), fnc_dscb(), Vx3DHLTAnalyzer::Gauss3DFunc(), gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), HepMCValidationHelper::genMet(), funct::Master< F >::get(), TMTQ::getAmpl(), TAPD::getAPD(), TAPD::getAPDoAPD0(), TAPD::getAPDoAPD1(), TAPD::getAPDoPN(), TAPD::getAPDoPN0(), TAPD::getAPDoPN1(), ecaldqm::MESetProjection::getBinContent(), L1TOccupancyClient::getBinCoordinateOnAxisWithValue(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetProjection::getBinError(), hcalCalib::GetCoefFromMtrxInvOfAve(), TotemRPGeometry::GetDetEdgePosition(), TotemRPGeometry::GetDetTranslation(), TMTQ::getFit(), TMTQ::getFw20(), TMTQ::getFw80(), TMTQ::getFwhm(), hcaldqm::quantity::getLabels_TTSubdetPM(), heppy::BTagSF::getMistag(), hgcal::ClusterTools::getMultiClusterPosition(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalTPGBadXTHandler::getNewObjects(), popcon::EcalTPGPedestalsHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsP5(), TMTQ::getPeak(), TMTQ::getPed(), TMTQ::getPedsig(), TPN::getPN(), TPN::getPNoPN(), TPN::getPNoPN0(), TPN::getPNoPN1(), GetRandom(), TotemRPGeometry::GetRPGlobalTranslation(), heppy::BTagSF::getSFb(), heppy::BTagSF::getSFc(), heppy::BTagSF::getSFl(), TMTQ::getSigma(), TMTQ::getSliding(), TAPD::getTime(), TMTQ::getTrise(), hcaldqm::quantity::getValue_ieta(), hcaldqm::quantity::getValue_TTSubdetPM(), TotemRPGeometry::GlobalToLocal(), DDI::Ellipsoid::halfVol(), HankelK0(), HankelK1(), HankelKn(), gen::Cascade2Hadronizer::imposeProperTime(), gen::Pythia6Hadronizer::imposeProperTime(), InduceChargeFP420::induce(), edm::ThinnedAssociationsHelper::initAssociationsFromSecondary(), HCALResponse::interMU(), npstat::ArrayND< Numeric, StackLen, StackDim >::interpolate1(), interpolateLinear(), npstat::ArrayND< Numeric, StackLen, StackDim >::interpolateLoop(), npstat::LinInterpolatedTableND< Numeric, Axis >::invert1DResponse(), npstat::LinInterpolatedTableND< Numeric, Axis >::invertRatioResponse(), rpcdqm::utils::labelXAxisSector(), rpcdqm::utils::labelXAxisSegment(), langaupro(), HDQMUtil::langaupro(), linear(), FWPFMaths::lineCircleIntersect(), fftjetcms::LinInterpolatedTable1D::LinInterpolatedTable1D(), hcaldqm::ContainerXXX< STDTYPE >::load(), TotemRPGeometry::LocalToGlobal(), main(), SiStripGainFromCalibTree::merge(), RPCSeedPattern::MiddlePointsAlgorithm(), gen::Hydjet2Hadronizer::MidpointIntegrator2(), muonisolation::CaloExtractor::MuonAtCaloPosition(), MuonResidualsFitter_logGaussPowerTails(), edm::service::MessageServicePSetValidation::noneExcept(), fit::HistoChiSquare< T >::numberOfBins(), fit::HistoPoissonLikelihoodRatio< T >::numberOfBins(), TransientVertex::operator reco::VertexCompositePtrCandidate(), reco::parser::abs_f::operator()(), reco::parser::acos_f::operator()(), reco::parser::asin_f::operator()(), reco::parser::atan_f::operator()(), reco::parser::atan2_f::operator()(), reco::parser::chi2prob_f::operator()(), reco::parser::cos_f::operator()(), reco::parser::cosh_f::operator()(), reco::parser::exp_f::operator()(), reco::parser::hypot_f::operator()(), reco::parser::log_f::operator()(), fit::HistoChiSquare< T >::operator()(), fit::HistoPoissonLikelihoodRatio< T >::operator()(), reco::parser::log10_f::operator()(), reco::parser::max_f::operator()(), reco::parser::min_f::operator()(), reco::parser::pow_f::operator()(), reco::parser::sin_f::operator()(), reco::parser::sinh_f::operator()(), reco::parser::sqrt_f::operator()(), reco::parser::tan_f::operator()(), reco::parser::tanh_f::operator()(), CSCThrTurnOnFcn::operator()(), npstat::MultivariateFunctorScanner< IndexMapper >::operator()(), de_rank< T >::operator()(), edm::operator<(), hitfit::Lepjets_Event_Lep::operator<(), p1evlf(), edm::ThinnedAssociationsHelper::parentBegin(), edm::ThinnedAssociationsHelper::parentEnd(), reco::ParticleState::ParticleState(), kinem::phi(), Phi_0_2pi(), Phi_mpi_pi(), DTLocalTriggerBaseTest::phiRange(), DTGeometryBuilderFromDDD::plane(), DTGeometryParsFromDD::plane(), PlotDebugFPIX_XYMap(), polevlf(), reco::BeamSpot::position(), reco::GhostTrackPrediction::positionError(), L1TOccupancyClient::printDeadChannels(), printRot(), tfwliteselectortest::ThingsWorker::process(), tfwliteselectortest::ThingsTSelector::process(), NtpProducer< C >::produce(), FakeTrackProducer< T >::produce(), HLTJetCollForElePlusJets< T >::produce(), HLTJetCollectionsForElePlusJets< T >::produce(), CaloGeometryDBEP< T, U >::produceAligned(), EcalTrivialConditionRetriever::produceEcalLaserAlphas(), tauImpactParameter::TrackTools::propagateToYPosition(), tauImpactParameter::TrackTools::propagateToZPosition(), ptomaine(), l1t::PrescalesVetosHelper::readAndWriteFromEventSetup(), l1t::GlobalParamsHelper::readAndWriteFromEventSetup(), l1t::EndCapParamsHelper::readAndWriteFromEventSetup(), l1t::ForestHelper::readAndWriteFromEventSetup(), cscdqm::Summary::ReadErrorChambers(), cscdqm::Summary::ReadReportingChambers(), cscdqm::Summary::ReadReportingChambersRef(), hcaltb::HcalTBTDCUnpacker::reconstructWC(), EcalCrystalMatrixProbality< T >::ReftRight(), HepMCValidationHelper::removeIsolatedLeptons(), ParabolaFit::result(), funct::RootHistoPdf::RootHistoPdf(), gen::PyquenHadronizer::rotateEvtPlane(), KFBasedPixelFitter::run(), ContentsXRange::runTest(), safe_atan2f(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetProjection::setBinError(), L1TOccupancyClientHistogramService::setMaskedBins(), pat::MET::shiftedP4(), pat::MET::shiftedP4_74x(), edm::ThinnedAssociationsHelper::shouldKeepAssociation(), sicif(), gen::Hydjet2Hadronizer::SimpsonIntegrator(), gen::Hydjet2Hadronizer::SimpsonIntegrator2(), QGLikelihoodCalculator::smearingFunction(), hitfit::Top_Decaykin::solve_nu(), edm::ThinnedAssociationsHelper::sort(), sqr(), square(), reco::IPTagInfo< Container, Base >::taggingVariables(), kinem::theta(), trajectoryToResiduals(), two_joined_lines(), unsafe_acos(), unsafe_acos07(), unsafe_acos71(), unsafe_asin(), unsafe_asin07(), unsafe_asin71(), unsafe_atan2f(), unsafe_atan2i(), unsafe_expf(), unsafe_logf(), edm::ThinnedAssociationsHelper::updateFromSecondaryInput(), EcalCrystalMatrixProbality< T >::UpDown(), TauJetCorrector::ParametrizationTauJet::value(), JetPartonNamespace::ParametrizationJetParton::value(), sistripvvi::VVIObj::VVIObj(), edm::Lumi3DReWeighting::weight3D_init(), reweight::LumiReWeighting::weight3D_init(), cscdqm::Summary::Write(), cscdqm::Summary::WriteChamberState(), cscdqm::Summary::WriteMap(), xtalFromEtaPhi(), TangentApproachInRPhi::zCoord(), and ClosestApproachInRPhi::zCoord().

127 {return std::atan2(perp(),z());}
float float float z
T perp() const
Magnitude of transverse component.
Basic2DVector<T> __attribute__::xy ( ) const

Definition at line 135 of file Basic3DVectorLD.h.

References eta, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().

135 { return detailsBasic3DVector::eta(x(),y(),z());} // correct
float float float z
T x() const
Cartesian x coordinate.
T __attribute__::y ( ) const

Cartesian y coordinate.

Definition at line 130 of file Basic3DVectorLD.h.

135 { return detailsBasic3DVector::eta(x(),y(),z());} // correct
float float float z
T x() const
Cartesian x coordinate.
T __attribute__::z ( ) const

Cartesian z coordinate.

Definition at line 133 of file Basic3DVectorLD.h.

135 { return detailsBasic3DVector::eta(x(),y(),z());} // correct
float float float z
T x() const
Cartesian x coordinate.

Variable Documentation

T theW

Definition at line 271 of file Basic3DVectorLD.h.

Referenced by align::diffAlignables().

T theX

Definition at line 268 of file Basic3DVectorLD.h.

T theY

Definition at line 269 of file Basic3DVectorLD.h.

T theZ

Definition at line 270 of file Basic3DVectorLD.h.

Referenced by LaserAlignment::testRoutine().