CMS 3D CMS Logo

Classes | Typedefs | Functions | Variables
Basic3DVectorLD.h File Reference
#include "extBasic3DVector.h"

Go to the source code of this file.

Classes

class  Basic3DVector< long double >
 

Typedefs

typedef Basic3DVector< long double > Basic3DVectorLD
 
typedef Geom::Cylindrical2Cartesian< TCylindrical
 
typedef Basic3DVector< TMathVector
 
typedef Spherical Polar
 
typedef T ScalarType
 
typedef Geom::Spherical2Cartesian< TSpherical
 
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...
 
Basic3DVectoroperator= (const Basic3DVector &)=default
 Assignment operator. 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

◆ Basic3DVectorLD

typedef Basic3DVector<long double> Basic3DVectorLD

Definition at line 310 of file Basic3DVectorLD.h.

◆ Cylindrical

Definition at line 50 of file Basic3DVectorLD.h.

◆ MathVector

Definition at line 54 of file Basic3DVectorLD.h.

◆ Polar

typedef Spherical Polar

Definition at line 52 of file Basic3DVectorLD.h.

◆ ScalarType

typedef T ScalarType

Definition at line 49 of file Basic3DVectorLD.h.

◆ Spherical

Definition at line 51 of file Basic3DVectorLD.h.

◆ T

typedef long double T

Definition at line 48 of file Basic3DVectorLD.h.

Function Documentation

◆ __attribute__()

template<>
class Basic3DVector< long double > __attribute__ ( (aligned(16))  )

◆ barePhi()

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 145 of file Basic3DVectorLD.h.

Referenced by MuonAlignmentAnalyzer::analyze(), SeedForPhotonConversionFromQuadruplets::bubbleReverseSortVsPhi(), and SeedForPhotonConversionFromQuadruplets::bubbleSortVsPhi().

153 {

◆ bareTheta()

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 152 of file Basic3DVectorLD.h.

153 {

◆ Basic3DVector() [1/7]

__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 60 of file Basic3DVectorLD.h.

60 : theX(iv[0]), theY(iv[1]), theZ(iv[2]), theW(0) {}
T theZ
T theY
T theW
T theX

◆ Basic3DVector() [2/7]

Basic3DVector ( const Basic3DVector p)

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

Definition at line 63 of file Basic3DVectorLD.h.

64 : theX(x), theY(y), theZ(z), theW(0) {}
T theZ
T theY
T theW
T x() const
Cartesian x coordinate.
T theX
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.

◆ Basic3DVector() [3/7]

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

Copy constructor and implicit conversion from Basic3DVector of different precision.

Definition at line 67 of file Basic3DVectorLD.h.

◆ Basic3DVector() [4/7]

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

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

Definition at line 70 of file Basic3DVectorLD.h.

◆ Basic3DVector() [5/7]

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 84 of file Basic3DVectorLD.h.

85 { return theZ; }
T theZ

◆ Basic3DVector() [6/7]

__attribute__::Basic3DVector ( const T x,
const T y,
const T z 
)

construct from cartesian coordinates

Definition at line 98 of file Basic3DVectorLD.h.

99 { return x() * x() + y() * y(); }
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.

◆ Basic3DVector() [7/7]

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 105 of file Basic3DVectorLD.h.

References Basic3DVector< T >::perp().

105  { return perp(); }
106 
T perp() const
Magnitude of transverse component.

◆ cross() [1/2]

Basic3DVector __attribute__::cross ( const Basic3DVector v) const

◆ cross() [2/2]

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 238 of file Basic3DVectorLD.h.

239  {
241  return RT(a.x() + b.x(), a.y() + b.y(), a.z() + b.z());
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ dot() [1/2]

T __attribute__::dot ( const Basic3DVector v) const

◆ dot() [2/2]

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 223 of file Basic3DVectorLD.h.

225  {

◆ eta()

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 160 of file Basic3DVectorLD.h.

Referenced by Basic3DVector< long double >::eta().

161 { return Basic3DVector(-x(), -y(), -z()); }
Basic3DVector()
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.

◆ mag()

T __attribute__::mag ( ) const

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

Definition at line 130 of file Basic3DVectorLD.h.

Referenced by Phase2TrackerDigitizerAlgorithm::accumulateSimHits(), SiPixelDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), ReferenceTrajectory::addMaterialEffectsBrl(), MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), DTChamberEfficiencyTask::analyze(), MuonTrackResidualAnalyzer::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), MuonDTDigis::analyze(), IPTagPlotter< Container, Base >::analyzeTag(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), reco::GhostTrackState::axisDistance(), btagbtvdeep::TrackPairInfoBuilder::buildTrackPairInfo(), ThirdHitPrediction::calculateRangesBarrel(), CaloCellCrossing::CaloCellCrossing(), TkGluedMeasurementDet::checkHitProjection(), GlobalMuonRefitter::checkMuonHits(), MuonTrajectoryCleaner::clean(), TkAccumulatingSensitiveDetector::closeHit(), HGCalMulticlusteringImpl::clusterizeDR(), HGCalClusteringImpl::clusterizeDRNN(), Phase1PixelBlade::computeCrossings(), GlobalMuonTrackMatcher::convertToTSOSMuHit(), GlobalMuonTrackMatcher::convertToTSOSTkHit(), fastsim::TrackerSimHitProducer::createHitOnDetector(), fireworks::createSegment(), CaloDetIdAssociator::crossedElement(), TangentCircle::curvatureError(), OptOMirror::detailedDeviatesLightRay(), TangentCircle::direction(), RK4PreciseStep::distance(), l1t::HGCalClusterT< l1t::HGCalCluster >::distance(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit::distanceTo(), SignedImpactParameter3D::distanceWithJetAxis(), HGCalHistoClusteringImpl::dR(), DTDigitizer::dumpHit(), HLTDQMTagAndProbeEff< TagType, TagCollType, ProbeType, ProbeCollType >::fill(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), HLTPixelThrustFilter::filter(), Phase1PixelBlade::findBin2(), HGCalMulticlusteringImpl::findNeighbor(), AdaptiveVertexFitter::fit(), Trajectory::geometricalInnermostState(), SeedMvaEstimatorPhase2::getHitTsosPairs(), BTVHLTOfflineSource::getOfflineBTagTracks(), TrackAssociatorByPositionImpl::getState(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), FlatTrd::getTransform(), CaloCellGeometry::getTransform(), MuonShowerInformationFiller::hitsFromSegments(), Pixel3DDigitizerAlgorithm::induce_signal(), Phase2TrackerDigitizerAlgorithm::induce_signal(), IdealObliquePrism::initCorners(), MaterialAccountingGroup::inside(), HGCalTriggerClusterInterpretationEM::interpret(), DD4hep_MaterialAccountingGroup::isInside(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), HGCalMulticlusteringImpl::isPertinent(), IPTools::jetTrackDistance(), HGCalUncalibRecHitRecWeightsAlgo< HGCDataFrame >::makeRecHit(), egHLT::ParticlePair< T >::mass(), GlobalCosmicMuonTrajectoryBuilder::match(), GlobalMuonTrackMatcher::match_D(), GlobalMuonTrackMatcher::match_d(), MatcherUsingTracksAlgorithm::matchByDirectComparison(), MatcherUsingTracksAlgorithm::matchWithPropagation(), NuclearTester::meanHitDistance(), TracksClusteringFromDisplacedSeed::nearTracks(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), RKCylindricalDistance< T, N >::operator()(), LinTrackCache::Vicinity::operator()(), RKCurvilinearDistance< T, N >::operator()(), RKCartesianDistance::operator()(), RecHitLessByDet::operator()(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), MuonShowerInformationFiller::MagTransform::operator()(), MuonShowerInformationFiller::LessMag::operator()(), HGCalShowerShape::pass(), egHLT::EgTagProbeCut< T >::pass(), egHLT::EgTrigTagProbeCut::pass(), egHLT::EgTrigTagProbeCut_New::pass(), egHLT::EgTrigTagProbeCut_NewPho::pass(), PixelCPEClusterRepair::PixelCPEClusterRepair(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), SeedGeneratorFromL1TTracksEDProducer::produce(), SoftPFElectronTagInfoProducer::produce(), SoftPFMuonTagInfoProducer::produce(), reco::modules::CosmicTrackSplitter::produce(), SteppingHelixPropagator::propagate(), SteppingHelixPropagator::propagateWithPath(), TrackAssociatorByPositionImpl::quality(), GenericTripletGenerator::qualityFilter(), SteppingHelixPropagator::refToDest(), CosmicRegionalSeedGenerator::regions(), SoftLepton::relativeEta(), HGCalClusteringImpl::removeUnconnectedTCinCluster(), TrackInfoProducerAlgorithm::run(), DigiSimLinkAlgorithm::run(), magneticfield::BaseVolumeHandle::sameSurface(), btagbtvdeep::seedingTracksToFeatures(), SeedGeneratorForCosmics::seeds(), tt::SensorModule::SensorModule(), FWMagField::setFFFieldMag(), DDErrorDetection::so(), DynamicTruncation::sort(), SETSeedFinder::sortByLayer(), GlobalCosmicMuonTrajectoryBuilder::sortHits(), CosmicMuonSmoother::sortHitsAlongMom(), SeedFromNuclearInteraction::stateWithError(), TangentCircle::TangentCircle(), TangentHelix::TangentHelix(), DTSegtoRPC::thePoints(), SiLinearChargeDivider::TimeResponse(), ThirdHitPredictionFromCircle::transverseIP(), CheckSecondary::update(), and MultiVertexFitter::updateSeeds().

131 {

◆ mag2()

T __attribute__::mag2 ( ) const

◆ operator*() [1/7]

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

scalar product of vectors of same precision

Definition at line 260 of file Basic3DVectorLD.h.

260  {
261  return v1.dot(v2);
262 }

◆ operator*() [2/7]

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 266 of file Basic3DVectorLD.h.

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

267  {
268  return v1.x() * v2.x() + v1.y() * v2.y() + v1.z() * v2.z();
269 }
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.

◆ operator*() [3/7]

template<class U >
PreciseFloatType<long double, U>::Type operator* ( const Basic3DVector< U > &  v1,
const Basic3DVector< long double > &  v2 
)
inline

Definition at line 272 of file Basic3DVectorLD.h.

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

273  {
274  return v1.x() * v2.x() + v1.y() * v2.y() + v1.z() * v2.z();
275 }
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
T x() const
Cartesian x coordinate.

◆ operator*() [4/7]

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 281 of file Basic3DVectorLD.h.

References submitPVValidationJobs::t, and findQualityFiles::v.

◆ operator*() [5/7]

Basic3DVector<long double> operator* ( long double  t,
const Basic3DVector< long double > &  v 
)
inline

Same as operator*( Vector, Scalar)

Definition at line 287 of file Basic3DVectorLD.h.

References submitPVValidationJobs::t, and findQualityFiles::v.

◆ operator*() [6/7]

template<typename S >
Basic3DVector<long double> operator* ( S  t,
const Basic3DVector< long double > &  v 
)
inline

Definition at line 292 of file Basic3DVectorLD.h.

References submitPVValidationJobs::t, and findQualityFiles::v.

292  {
293  return static_cast<long double>(t) * v;
294 }

◆ operator*() [7/7]

template<typename S >
Basic3DVector<long double> operator* ( const Basic3DVector< long double > &  v,
S  t 
)
inline

Definition at line 297 of file Basic3DVectorLD.h.

References submitPVValidationJobs::t, and findQualityFiles::v.

297  {
298  return static_cast<long double>(t) * v;
299 }

◆ operator*=()

Basic3DVector& __attribute__::operator*= ( T  t)

Scaling by a scalar value (multiplication)

Definition at line 198 of file Basic3DVectorLD.h.

Referenced by Matriplex::__attribute__().

◆ operator+() [1/3]

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 221 of file Basic3DVectorLD.h.

221  {
222  typedef Basic3DVector<long double> RT;
223  return RT(a.x() + b.x(), a.y() + b.y(), a.z() + b.z());
224 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator+() [2/3]

template<class U >
Basic3DVector<typename PreciseFloatType<long double, U>::Type> operator+ ( const Basic3DVector< long double > &  a,
const Basic3DVector< U > &  b 
)
inline

Definition at line 231 of file Basic3DVectorLD.h.

References a, and b.

232  {
234  return RT(a.x() + b.x(), a.y() + b.y(), a.z() + b.z());
235 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator+() [3/3]

template<class U >
Basic3DVector<typename PreciseFloatType<long double, U>::Type> operator+ ( const Basic3DVector< U > &  a,
const Basic3DVector< long double > &  b 
)
inline

Definition at line 238 of file Basic3DVectorLD.h.

References a, and b.

239  {
241  return RT(a.x() + b.x(), a.y() + b.y(), a.z() + b.z());
242 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator+=()

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

Operator += with a Basic3DVector of possibly different precision.

Definition at line 177 of file Basic3DVectorLD.h.

Referenced by Matriplex::__attribute__().

181  { return x() * v.x() + y() * v.y() + z() * v.z(); }
182 
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.

◆ operator-() [1/4]

Basic3DVector __attribute__::operator- ( ) const

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

Definition at line 195 of file Basic3DVectorLD.h.

◆ operator-() [2/4]

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

Definition at line 225 of file Basic3DVectorLD.h.

References a, and b.

225  {
226  typedef Basic3DVector<long double> RT;
227  return RT(a.x() - b.x(), a.y() - b.y(), a.z() - b.z());
228 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator-() [3/4]

template<class U >
Basic3DVector<typename PreciseFloatType<long double, U>::Type> operator- ( const Basic3DVector< long double > &  a,
const Basic3DVector< U > &  b 
)
inline

Definition at line 245 of file Basic3DVectorLD.h.

246  {
248  return RT(a.x() - b.x(), a.y() - b.y(), a.z() - b.z());
249 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator-() [4/4]

template<class U >
Basic3DVector<typename PreciseFloatType<long double, U>::Type> operator- ( const Basic3DVector< U > &  a,
const Basic3DVector< long double > &  b 
)
inline

Definition at line 252 of file Basic3DVectorLD.h.

References a, and b.

253  {
255  return RT(a.x() - b.x(), a.y() - b.y(), a.z() - b.z());
256 }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121

◆ operator-=()

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

Operator -= with a Basic3DVector of possibly different precision.

Definition at line 187 of file Basic3DVectorLD.h.

Referenced by Matriplex::__attribute__().

189  {
190  return x() * v.x() + y() * v.y() + z() * v.z();
191  }
192 
T x() const
Cartesian x coordinate.
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.

◆ operator/()

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 305 of file Basic3DVectorLD.h.

References alignCSCRings::s, submitPVValidationJobs::t, and findQualityFiles::v.

305  {
306  long double t = 1 / s;
307  return v * t;
308 }

◆ operator/=()

Basic3DVector& __attribute__::operator/= ( T  t)

Scaling by a scalar value (division)

Definition at line 206 of file Basic3DVectorLD.h.

Referenced by Matriplex::__attribute__().

209  :
210  T theX;
211  T theY;
212  T theZ;
T theZ
T theY
T theX
long double T

◆ operator=()

Basic3DVector& __attribute__::operator= ( const Basic3DVector )
default

◆ operator==()

bool __attribute__::operator== ( const Basic3DVector rh) const

Definition at line 124 of file Basic3DVectorLD.h.

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

◆ perp()

T __attribute__::perp ( ) const

Magnitude of transverse component.

Definition at line 136 of file Basic3DVectorLD.h.

Referenced by CMSTopTagger::_find_min_mass(), ElectronMcSignalValidator::analyze(), DrellYanValidation::analyze(), MBUEandQCDValidation::analyze(), MuonAlignmentAnalyzer::analyze(), TOBLayerBuilder::build(), Phase2OTBarrelRodBuilder::build(), TBLayer::computeCrossings(), PixelBlade::computeCrossings(), DD4hep_MaterialAccountingGroup::DD4hep_MaterialAccountingGroup(), IdealObliquePrism::etaPhiPerp(), IdealZPrism::etaPhiPerp(), ZeeCalibration::fillEleInfo(), HcalHardcodeGeometryLoader::fillHE(), HcalFlexiHardcodeGeometryLoader::fillHE(), HcalHardcodeGeometryLoader::fillHF(), HcalFlexiHardcodeGeometryLoader::fillHF(), GlobalHitsProdHist::fillMuon(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalHitsProdHist::fillTrk(), GlobalHitsAnalyzer::fillTrk(), GlobalHitsProducer::fillTrk(), TIDLayer::findClosest(), TIDLayer::findNextIndex(), MuonShowerInformationFiller::findPerpCluster(), tkDetUtil::findThreeClosest(), Trajectory::geometricalInnermostState(), CaloGeometryHelper::getClosestCell(), TrackFitter::getCotThetaAndUpdateZip(), TkLasBeamFitter::getLasBeams(), reco::GhostTrackPrediction::GhostTrackPrediction(), GlobalCoordsObtainer::GlobalCoordsObtainer(), TkLasBeamFitter::globalTrackPoint(), SimpleDiskBounds::inside(), DiskSectorBounds::inside(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), MaterialAccountingGroup::MaterialAccountingGroup(), PerpendicularBoundPlaneBuilder::operator()(), ThirdHitZPrediction::operator()(), CompareTwoTracksVectors::operator()(), TangentApproachInRPhi::perpdist(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), RKPropagatorInS::propagateParametersOnCylinder(), AnalyticalPropagator::propagateParametersOnPlane(), SoftLepton::refineJetAxis(), SeedFromNuclearInteraction::rotationMatrix(), CATopJetAlgorithm::run(), cms::CATopJetProducer::runAlgorithm(), and cms::HTTTopJetProducer::runAlgorithm().

143 {

◆ perp2()

T __attribute__::perp2 ( ) const

◆ phi()

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

Definition at line 146 of file Basic3DVectorLD.h.

153 {

◆ theta()

Geom::Theta<T> __attribute__::theta ( ) const

◆ transverse()

T __attribute__::transverse ( ) const

Another name for perp()

Definition at line 139 of file Basic3DVectorLD.h.

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

143 {

◆ unit()

Basic3DVector __attribute__::unit ( ) const

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

Definition at line 165 of file Basic3DVectorLD.h.

Referenced by AlignableDet::AlignableDet(), SiPixelLorentzAngleDBLoader::analyze(), FWME0SegmentProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), DTCombinatorialExtendedPatternReco::buildSegments(), DTCombinatorialPatternReco::buildSegments(), btagbtvdeep::TrackPairInfoBuilder::buildTrackPairInfo(), FWGEMSegmentProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), PhiMemoryImage::check_input(), DTTrig::chPhiSegm1(), DTTrig::chPhiSegm2(), DTTrig::chSectCollPhSegm1(), DTTrig::chSectCollPhSegm2(), DTTrig::chSectCollThSegm(), DTTrig::chThetaSegm(), PhiMemoryImage::clear_bit(), AnalyticalCurvilinearJacobian::computeInfinitesimalJacobian(), ForwardDiskSectorBuilderFromWedges::computeRotation(), ForwardDiskSectorBuilderFromDet::computeRotation(), converter::SuperClusterToCandidate::convert(), CaloDetIdAssociator::crossedElement(), CSCFileReader::CSCFileReader(), SignedImpactParameter3D::distance(), Line::distance(), SignedImpactParameter3D::distanceWithJetAxis(), TransverseImpactPointExtrapolator::doExtrapolation(), GlobalHitsProdHist::fillG4MC(), GlobalHitsAnalyzer::fillG4MC(), GlobalHitsProducer::fillG4MC(), PhiMemoryImage::get_word(), StubPtConsistency::getConsistency(), DDG4Builder::getDouble(), HcalDDDRecConstants::getEtaPhi(), HcalDDDRecConstants::getHCID(), MEGeom::getHist(), FlatHexagon::getTransform(), TruncatedPyramid::getTransform(), FlatTrd::getTransform(), CaloCellGeometry::getTransform(), HcalObjRepresent::HcalDataContainer< Items, Item >::GetUnit(), HcalDDDSimConstants::HcalCellTypes(), HcalDDDRecConstants::HcalCellTypes(), HcalTopology::HcalTopology(), HcalDDDRecConstants::initialize(), DTChamberEfficiencyTask::interpolate(), IPTools::jetTrackDistance(), IPTools::linearImpactParameter(), TracksClusteringFromDisplacedSeed::nearTracks(), TransverseBoundPlaneFactory::operator()(), PerpendicularBoundPlaneBuilder::operator()(), operator<<(), HcalTopology::phiBin(), PlotAlignmentValidation::plotDMR(), FullModelHadronicProcess::PostStepDoIt(), SiStripFedCabling::printSummary(), SimPFProducer::produce(), GoodSeedProducer::produce(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), LowPtGsfElectronSeedProducer::propagateTrackToCalo(), regressionTest_first(), ResolutionPlots_HistoMaker(), SeedFromNuclearInteraction::rotationMatrix(), SeedFromGenericPairOrTriplet::seedFromPair(), PhiMemoryImage::set_bit(), PhiMemoryImage::set_word(), l1tVertexFinder::Stub::setModuleInfo(), CSCSegFit::setOutFromIP(), MuonSegFit::setOutFromIP(), PhiMemoryImage::test_bit(), npstat::BoxND< unsigned >::unitBox(), and AlignableDet::update().

172  {

◆ x()

T __attribute__::x ( ) const

Cartesian x coordinate.

Definition at line 113 of file Basic3DVectorLD.h.

118 { return std::atan2(perp(), z()); }
T perp() const
Magnitude of transverse component.
T z() const
Cartesian z coordinate.
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)
Definition: Matriplex.h:648

◆ xy()

Basic2DVector<T> __attribute__::xy ( ) const

Definition at line 121 of file Basic3DVectorLD.h.

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

◆ y()

T __attribute__::y ( ) const

Cartesian y coordinate.

Definition at line 116 of file Basic3DVectorLD.h.

118 { return std::atan2(perp(), z()); }
T perp() const
Magnitude of transverse component.
T z() const
Cartesian z coordinate.
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)
Definition: Matriplex.h:648

◆ z()

T __attribute__::z ( ) const

Cartesian z coordinate.

Definition at line 119 of file Basic3DVectorLD.h.

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

119 { return Geom::Theta<T>(std::atan2(perp(), z())); }
T perp() const
Magnitude of transverse component.
T z() const
Cartesian z coordinate.
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)
Definition: Matriplex.h:648

Variable Documentation

◆ theW

T theW
private

Definition at line 247 of file Basic3DVectorLD.h.

Referenced by align::diffAlignables().

◆ theX

T theX
private

Definition at line 244 of file Basic3DVectorLD.h.

◆ theY

T theY
private

Definition at line 245 of file Basic3DVectorLD.h.

◆ theZ

T theZ
private

Definition at line 246 of file Basic3DVectorLD.h.

Referenced by LaserAlignment::testRoutine().