CMS 3D CMS Logo

Classes | Typedefs | Functions | Variables
Basic3DVectorLD.h File Reference
#include "DataFormats/GeometryVector/interface/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...
 
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 336 of file Basic3DVectorLD.h.

Definition at line 68 of file Basic3DVectorLD.h.

Definition at line 72 of file Basic3DVectorLD.h.

typedef Spherical Polar

Definition at line 70 of file Basic3DVectorLD.h.

typedef T ScalarType

Definition at line 67 of file Basic3DVectorLD.h.

Definition at line 69 of file Basic3DVectorLD.h.

typedef long double T

Definition at line 66 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 171 of file Basic3DVectorLD.h.

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

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

171 { return Basic3DVector(-x(),-y(),-z());}
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
T x() const
Cartesian x coordinate.
Basic3DVector()
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 178 of file Basic3DVectorLD.h.

182 {
__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 78 of file Basic3DVectorLD.h.

__attribute__::Basic3DVector ( const Basic3DVector p)

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

Definition at line 81 of file Basic3DVectorLD.h.

86  { return theX;}
T theX
template<class U >
__attribute__::Basic3DVector ( const Basic3DVector< U > &  p)

Copy constructor and implicit conversion from Basic3DVector of different precision.

Definition at line 86 of file Basic3DVectorLD.h.

References Basic3DVector< T >::theX.

86  { return theX;}
87 
T theX
__attribute__::Basic3DVector ( const Basic2DVector< T > &  p)

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

Definition at line 90 of file Basic3DVectorLD.h.

92  { return theZ;}
T theZ
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 102 of file Basic3DVectorLD.h.

103  { return x()*x() + y()*y()+z()*z();}
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
T x() const
Cartesian x coordinate.
__attribute__::Basic3DVector ( const T x,
const T y,
const T z 
)

construct from cartesian coordinates

Definition at line 121 of file Basic3DVectorLD.h.

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

121  {return std::atan2(y(),x());}
122  Geom::Phi<T> phi() const {return Geom::Phi<T>(barePhi());}
T barePhi() const
T y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
Geom::Phi< T > phi() const
Definition: Phi.h:20
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 129 of file Basic3DVectorLD.h.

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

129  {return Geom::Theta<T>(std::atan2(perp(),z()));}
130 
T z() const
Cartesian z coordinate.
T perp() const
Magnitude of transverse component.
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 270 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 251 of file Basic3DVectorLD.h.

254  {
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 186 of file Basic3DVectorLD.h.

Referenced by x().

191 {
T __attribute__::mag ( ) const

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

Definition at line 156 of file Basic3DVectorLD.h.

Referenced by PixelDigitizerAlgorithm::accumulateSimHits(), PSSDigitizerAlgorithm::accumulateSimHits(), SSDigitizerAlgorithm::accumulateSimHits(), PSPDigitizerAlgorithm::accumulateSimHits(), SiPixelDigitizerAlgorithm::accumulateSimHits(), SiStripDigitizerAlgorithm::accumulateSimHits(), ReferenceTrajectory::addMaterialEffectsBrl(), MonopoleTransportation::AlongStepGetPhysicalInteractionLength(), SiStripElectronAnalyzer::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), DTChamberEfficiencyTask::analyze(), MuonTrackResidualAnalyzer::analyze(), MuonDTDigis::analyze(), IPTagPlotter< Container, Base >::analyzeTag(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), reco::GhostTrackState::axisDistance(), 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(), SiLinearChargeDivider::DeconvolutionShape(), OptOMirror::detailedDeviatesLightRay(), TangentCircle::direction(), RK4PreciseStep::distance(), l1t::HGCalClusterT< l1t::HGCalCluster >::distance(), SignedImpactParameter3D::distanceWithJetAxis(), DTSegtoRPC::DTSegtoRPC(), DTDigitizer::dumpHit(), HLTDQMTagAndProbeEff< TagType, TagCollType, ProbeType, ProbeCollType >::fill(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), Phase1PixelBlade::findBin2(), HGCalMulticlusteringImpl::findNeighbor(), AdaptiveVertexFitter::fit(), Trajectory::geometricalInnermostState(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), TrackAssociatorByPositionImpl::getState(), FlatHexagon::getTransform(), FlatTrd::getTransform(), TruncatedPyramid::getTransform(), CaloCellGeometry::getTransform(), MuonShowerInformationFiller::hitsFromSegments(), IdealObliquePrism::initCorners(), MaterialAccountingGroup::inside(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), MuonCosmicCompatibilityFiller::isOverlappingMuon(), HGCalMulticlusteringImpl::isPertinent(), IPTools::jetTrackDistance(), HSCPValidator::makeGenPlots(), 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()(), RKCurvilinearDistance< T, N >::operator()(), LinTrackCache::Vicinity::operator()(), RKCartesianDistance::operator()(), RecHitLessByDet::operator()(), MuonShowerInformationFiller::LessMag::operator()(), MuonTrackResidualAnalyzer::RadiusComparatorInOut::operator()(), 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(), HGCalClusteringImpl::removeUnconnectedTCinCluster(), 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(), CheckSecondary::update(), and MultiVertexFitter::updateSeeds().

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

scalar product of vectors of same precision

Definition at line 283 of file Basic3DVectorLD.h.

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

283  {
284  return v1.dot(v2);
285 }
T dot(const Basic3DVector &v) const
Scalar product, or "dot" 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 289 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().

290  {
291  return v1.x()*v2.x() + v1.y()*v2.y() + v1.z()*v2.z();
292 }
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 295 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().

296  {
297  return v1.x()*v2.x() + v1.y()*v2.y() + v1.z()*v2.z();
298 }
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 305 of file Basic3DVectorLD.h.

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

305  {
306  return Basic3DVector<long double>(v.x()*t, v.y()*t, v.z()*t);
307 }
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 311 of file Basic3DVectorLD.h.

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

311  {
312  return Basic3DVector<long double>(v.x()*t, v.y()*t, v.z()*t);
313 }
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 316 of file Basic3DVectorLD.h.

References lumiQTWidget::t.

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

Definition at line 321 of file Basic3DVectorLD.h.

References lumiQTWidget::t.

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

Scaling by a scalar value (multiplication)

Definition at line 224 of file Basic3DVectorLD.h.

Referenced by magfieldparam::rz_poly::SetAllON().

226  :
227  T theX;
228  T theY;
229  T theZ;
T theZ
T theY
T theX
long double T
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 240 of file Basic3DVectorLD.h.

240  {
241  typedef Basic3DVector<long double> RT;
242  return RT(a.x()+b.x(), a.y()+b.y(), a.z()+b.z());
243 }
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 254 of file Basic3DVectorLD.h.

254  {
256  return RT(a.x()+b.x(), a.y()+b.y(), a.z()+b.z());
257 }
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 261 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().

261  {
263  return RT(a.x()+b.x(), a.y()+b.y(), a.z()+b.z());
264 }
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 203 of file Basic3DVectorLD.h.

Referenced by RPCLinkSynchroStat::SynchroCounts::counts(), and RPCRawDataCounts::~RPCRawDataCounts().

206  {
207  return Basic3DVector( y()*v.z() - v.y()*z(),
208  z()*v.x() - v.z()*x(),
T y() const
Cartesian y coordinate.
T z() const
Cartesian z coordinate.
T x() const
Cartesian x coordinate.
Basic3DVector()
Basic3DVector __attribute__::operator- ( ) const

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

Definition at line 221 of file Basic3DVectorLD.h.

226 :
227  T theX;
T theX
long double T
Basic3DVector<long double> operator- ( const Basic3DVector< long double > &  a,
const Basic3DVector< long double > &  b 
)
inline

Definition at line 245 of file Basic3DVectorLD.h.

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

245  {
246  typedef Basic3DVector<long double> RT;
247  return RT(a.x()-b.x(), a.y()-b.y(), a.z()-b.z());
248 }
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 269 of file Basic3DVectorLD.h.

269  {
271  return RT(a.x()-b.x(), a.y()-b.y(), a.z()-b.z());
272 }
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 276 of file Basic3DVectorLD.h.

276  {
278  return RT(a.x()-b.x(), a.y()-b.y(), a.z()-b.z());
279 }
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 213 of file Basic3DVectorLD.h.

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

References alignCSCRings::s, and lumiQTWidget::t.

Referenced by mathSSE::as3D().

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

Scaling by a scalar value (division)

Definition at line 232 of file Basic3DVectorLD.h.

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

Definition at line 148 of file Basic3DVectorLD.h.

153  {
T __attribute__::perp ( ) const

Magnitude of transverse component.

Definition at line 162 of file Basic3DVectorLD.h.

Referenced by CMSTopTagger::_find_min_mass(), ElectronMcSignalValidator::analyze(), DrellYanValidation::analyze(), MBUEandQCDValidation::analyze(), MuonAlignmentAnalyzer::analyze(), TOBLayerBuilder::build(), Phase2OTBarrelRodBuilder::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(), IdealZPrism::forPF(), 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()(), SeedFromNuclearInteraction::outerHit(), TangentApproachInRPhi::perpdist(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), RKPropagatorInS::propagateParametersOnCylinder(), AnalyticalPropagator::propagateParametersOnPlane(), SoftLepton::refineJetAxis(), CATopJetAlgorithm::run(), cms::CATopJetProducer::runAlgorithm(), and cms::HTTTopJetProducer::runAlgorithm().

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

Definition at line 172 of file Basic3DVectorLD.h.

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

Definition at line 179 of file Basic3DVectorLD.h.

Referenced by GflashTrajectory::_refreshCache(), Hector::addPartToHepMC(), CTPPSHector::addPartToHepMC(), fireworks::addStraightLineSegment(), algorithm(), EcalEBTrigPrimAnalyzer::analyze(), HCALRecHitAnalyzer::analyze(), ElectronTagProbeAnalyzer::analyze(), StandaloneTrackMonitor::analyze(), TrackerHitAnalyzer::analyze(), EcalTrigPrimAnalyzer::analyze(), TrackBuildingAnalyzer::analyze(), edm::FlatEGunASCIIWriter::analyze(), MuonDTDigis::analyze(), EcalTPGParamBuilder::analyze(), CTPPSHector::ApplyBeamCorrection(), BremsstrahlungSimulator::brem(), fastsim::Bremsstrahlung::brem(), fastsim::MuonBremsstrahlung::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(), emtf::calc_theta_deg_from_int(), emtf::calc_theta_int(), emtf::calc_theta_int_rpc(), emtf::calc_theta_rad_from_eta(), CalcTrackTheta(), CSCHaloAlgo::Calculate(), PtAssignmentEngine2017::calculate_address(), PtAssignmentEngine2016::calculate_address(), AngleCalculation::calculate_angles(), PtAssignmentEngine2017::calculate_pt_xml(), PtAssignmentEngine2016::calculate_pt_xml(), CandidatePointSeededTrackingRegionsProducer::CandidatePointSeededTrackingRegionsProducer(), TwoBodyDecayModel::cartesianSecondaryMomenta(), MultipleScatteringSimulator::compute(), NuclearInteractionSimulator::compute(), AnalyticalCurvilinearJacobian::computeFullJacobian(), HDRShower::computeShower(), DTDigitizer::computeTime(), EcalHitMaker::configureGeometry(), DDHCalEndcapAlgo::constructInsideModule(), DDHCalEndcapAlgo::constructInsideModule0(), convert_boolean(), ElectronEnergyCalibrator::correctLinearity(), TSCPBuilderNoMaterial::createFTSatTransverseImpactPointNeutral(), DDHGCalNoTaperEndcap::createQuarter(), fireworks::createSegment(), DDAngular::DDAngular(), ZMuMuIsolationAnalyzer::Deposits(), Decay3Body::doDecay(), CSCValidation::doSegments(), DTDigitizer::driftTimeFromParametrization(), DTBtiChip::DTBtiChip(), ECALPositionCalculator::ecalEta(), tauImpactParameter::MultiProngTauSolver::estimateNu(), RawParticle::eta(), metsig::SignAlgoResolutions::eval(), DDTECOptoHybAlgo::execute(), DDHCalTBZposAlgo::execute(), DDHCalTestBeamAlgo::execute(), DDHCalXtalAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDTIBLayerAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDTrackerAngular::execute(), DDTECAxialCableAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTrackerAngularV1::execute(), DDTECPhiAltAlgo::execute(), DDTIDRingAlgo::execute(), DDTECPhiAlgo::execute(), DDAngular::execute(), DDEcalBarrelAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDTrackerRingAlgo::execute(), KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), CTPPSFastTrackingProducer::FastReco(), HcalTestAnalysis::fill(), SimG4HcalValidation::fill(), HcalTB04Analysis::fillBuffer(), GenSpecificAlgo::fillCommonMETData(), TrackerHitProducer::fillG4MC(), dqm::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(), PtAssignmentEngineAux2017::get8bMode15(), CTPPSFastTrackingProducer::Get_t_and_xi(), calib::CalibElectron::getCalibModulesWeights(), EcalDeadCellTriggerPrimitiveFilter::getChannelStatusMaps(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), L1TMuon::TTTriggerPrimitive::getCMSGlobalPoint(), L1TMuon::TriggerPrimitive::getCMSGlobalPoint(), TFitParticleMCPInvSpher::getDerivative(), TFitParticleMCSpher::getDerivative(), TFitParticleESpher::getDerivative(), TFitParticleEtThetaPhi::getDerivative(), TFitParticleSpher::getDerivative(), HcalDDDSimConstants::getDetEta(), ZdcSD::getEnergyDeposit(), PtAssignmentEngineAux2016::getEtaFromThetaInt(), IsolatedPixelTrackCandidateProducer::GetEtaPhiAtEcal(), PythiaFilterIsolatedTrack::GetEtaPhiAtEcal(), IsolatedPixelTrackCandidateL1TProducer::GetEtaPhiAtEcal(), IsoTrig::GetEtaPhiAtEcal(), CastorSD::getFromLibrary(), PtAssignmentEngineAux::getGMTEta(), reco::TauMassTagInfo::getInvariantMass(), CastorShowerLibraryMaker::GetKinematics(), pftools::CaloEllipse::getMajorMinorAxes(), CastorShowerLibrary::getShowerHits(), pftools::CaloEllipse::getTheta(), CaloCellId::getThetaCell(), HcalDDDRecConstants::getThickActive(), DDHCalEndcapAlgo::getTolAbs(), DDHCalTBZposAlgo::initialize(), DDHCalTestBeamAlgo::initialize(), FastTimeDDDConstants::initialize(), fastsim::Bremsstrahlung::interact(), fastsim::MultipleScattering::interact(), fastsim::MuonBremsstrahlung::interact(), fastsim::NuclearInteraction::interact(), MuonMesh::isClusteredWith(), MuonMesh::isDuplicateOf(), hitfit::Gentop_Args::kt_res_str(), 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(), DDEcalBarrelAlgo::pincerCutHeight(), DDEcalBarrelNewAlgo::pincerCutHeight(), DDLTrapezoid::processElement(), edm::FlatRandomMultiParticlePGunProducer::produce(), edm::RandomMultiParticlePGunProducer::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::GaussRandomPThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), ShallowTracksProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), edm::FlatRandomEGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), ShallowSimTracksProducer::produce(), edm::ExpoRandomPGunProducer::produce(), L1TTwinMuxProducer::produce(), pf2pat::PFMETAlgo::produce(), HLTL1TMuonSelector::produce(), HLTL1MuonSelector::produce(), L2MuonSeedGeneratorFromL1T::produce(), L2MuonSeedGenerator::produce(), JetCrystalsAssociator::produce(), TrackKinematicStatePropagator::propagateToTheTransversePCANeutral(), AsciiNeutronReader::readNextEvent(), heppy::Hemisphere::Reconstruct(), SteppingHelixPropagator::refToDest(), PointSeededTrackingRegionsProducer::regions(), CandidatePointSeededTrackingRegionsProducer::regions(), heppy::Hemisphere::RejectISR(), KFBasedPixelFitter::run(), PFSpecificAlgo::run(), EcalRecHitWorkerRecover::run(), PFPhotonAlgo::RunPFPhoton(), RecoTracktoTP::s_eta(), TPtoRecoTrack::s_eta(), CTPPSFastTrackingProducer::SearchTrack(), EcalDeadCellTriggerPrimitiveFilter::setEvtRecHitstatus(), TFitParticleMCSpher::setIni4Vec(), TFitParticleMCPInvSpher::setIni4Vec(), TFitParticleEtThetaPhi::setIni4Vec(), TFitParticleSpher::setIni4Vec(), TFitParticleESpher::setIni4Vec(), HcalForwardAnalysis::setPhotons(), tauImpactParameter::MultiProngTauSolver::setTauDirectionatThetaGJMax(), L1TMuon::TriggerPrimitive::setThetaBend(), EcalSelectiveReadoutValidation::setTtEtSums(), EcalSelectiveReadoutSuppressor::setTtFlags(), DTRecHitQuality::simHitImpactAngle(), smearFunctionBase::smearEta(), tauImpactParameter::TauA1NuConstrainedFitter::SolveAmbiguityAnalytically(), tauImpactParameter::TauA1NuConstrainedFitter::SolveAmbiguityAnalyticallywithRot(), tauImpactParameter::MultiProngTauSolver::solveByRotation(), sqr(), TangentCircle::TangentCircle(), tauImpactParameter::TauA1NuConstrainedFitter::TauRot(), HDRShower::thetaFunction(), HcalTestAnalysis::timeOfFlight(), HcalTB04Analysis::timeOfFlight(), spr::timeOfFlight(), SiStripFineDelayTOF::timeOfFlightBeamB(), SiStripFineDelayTOF::timeOfFlightCosmicB(), MuonNavigableLayer::trackingRange(), MTDNavigableLayer::trackingRange(), InvariantMassFromVertex::uncertainty(), PtAssignmentEngineAux2017::unpackTheta(), HcalTestAnalysis::update(), HcalTB02Analysis::update(), DoCastorAnalysis::update(), CastorTestAnalysis::update(), FW3DViewBase::updateClipPlanes(), pftools::Utils::VectorEPRtoXYZ(), ECALRecHitAnalyzer::WriteECALRecHits(), Geom::Spherical2Cartesian< T >::z(), CMSCGENnorm::~CMSCGENnorm(), HDRShower::~HDRShower(), and tauImpactParameter::MultiProngTauSolver::~MultiProngTauSolver().

182 {
T __attribute__::transverse ( ) const

Another name for perp()

Definition at line 165 of file Basic3DVectorLD.h.

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

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

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

Definition at line 192 of file Basic3DVectorLD.h.

T __attribute__::x ( ) const

Cartesian x coordinate.

Definition at line 136 of file Basic3DVectorLD.h.

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

136 { return detailsBasic3DVector::eta(x(),y(),z());} // correct
T y() const
Cartesian y coordinate.
T eta() const
T z() const
Cartesian z coordinate.
T x() const
Cartesian x coordinate.
Basic2DVector<T> __attribute__::xy ( ) const

Definition at line 144 of file Basic3DVectorLD.h.

T __attribute__::y ( ) const

Cartesian y coordinate.

Definition at line 139 of file Basic3DVectorLD.h.

142 {
T __attribute__::z ( ) const

Cartesian z coordinate.

Definition at line 142 of file Basic3DVectorLD.h.

References Basic3DVector< T >::mag2().

142 {

Variable Documentation

T theX
private

Definition at line 277 of file Basic3DVectorLD.h.

T theY
private

Definition at line 278 of file Basic3DVectorLD.h.

T theZ
private

Definition at line 279 of file Basic3DVectorLD.h.

Referenced by LaserAlignment::testRoutine().