#include <Vector3DBase.h>
Public Types | |
typedef PV3DBase< T, VectorTag, FrameTag > | BaseClass |
typedef BaseClass::BasicVectorType | BasicVectorType |
typedef BaseClass::Cylindrical | Cylindrical |
typedef BaseClass::Polar | Polar |
typedef BaseClass::Spherical | Spherical |
typedef Vector3DBase< T, FrameTag > | VectorType |
Public Types inherited from PV3DBase< T, VectorTag, FrameTag > | |
typedef Basic3DVector< T > | BasicVectorType |
typedef BasicVectorType::Cylindrical | Cylindrical |
typedef BasicVectorType::MathVector | MathVector |
typedef BasicVectorType::Polar | Polar |
typedef T | ScalarType |
typedef BasicVectorType::Spherical | Spherical |
Public Member Functions | |
template<class U > | |
Vector3DBase< typename PreciseFloatType< T, U >::Type, FrameTag > | cross (const Vector3DBase< U, FrameTag > &v) const |
template<class U > | |
PreciseFloatType< T, U >::Type | dot (const Vector3DBase< U, FrameTag > &v) const |
Vector3DBase & | operator*= (const T &t) |
Scaling by a scalar value (multiplication) More... | |
template<class U > | |
Vector3DBase & | operator+= (const Vector3DBase< U, FrameTag > &v) |
Vector3DBase | operator- () const |
Unary minus, returns a vector with components (-x(),-y(),-z()) More... | |
template<class U > | |
Vector3DBase & | operator-= (const Vector3DBase< U, FrameTag > &v) |
Vector3DBase & | operator/= (const T &t) |
Scaling by a scalar value (division) More... | |
bool | operator== (const Vector3DBase &rh) const |
Vector3DBase | unit () const |
Vector3DBase () | |
template<class U > | |
Vector3DBase (const Vector3DBase< U, FrameTag > &v) | |
Vector3DBase (const T &x, const T &y, const T &z) | |
construct from cartesian coordinates More... | |
Vector3DBase (const Cylindrical &set) | |
Vector3DBase (const Polar &set) | |
construct from polar coordinates More... | |
Vector3DBase (const Geom::Theta< T > &th, const Geom::Phi< T > &ph, const T &r) | |
template<class U > | |
Vector3DBase (const Basic3DVector< U > &v) | |
Public Member Functions inherited from PV3DBase< T, VectorTag, FrameTag > | |
T | barePhi () const |
T | bareTheta () const |
const BasicVectorType & | basicVector () const |
T | eta () const |
T | mag () const |
T | mag2 () const |
MathVector const & | mathVector () const |
MathVector & | mathVector () |
T | perp () const |
T | perp2 () const |
Geom::Phi< T > | phi () const |
PV3DBase () | |
PV3DBase (const T &x, const T &y, const T &z) | |
construct from cartesian coordinates More... | |
PV3DBase (const Cylindrical &set) | |
PV3DBase (const Polar &set) | |
construct from polar coordinates More... | |
PV3DBase (const Geom::Theta< T > &th, const Geom::Phi< T > &ph, const T &r) | |
PV3DBase (const Basic3DVector< U > &v) | |
Geom::Theta< T > | theta () const |
T | transverse () const |
T | x () const |
T | y () const |
T | z () const |
Additional Inherited Members | |
Protected Attributes inherited from PV3DBase< T, VectorTag, FrameTag > | |
BasicVectorType | theVector |
Definition at line 9 of file Vector3DBase.h.
typedef PV3DBase<T, VectorTag, FrameTag> Vector3DBase< T, FrameTag >::BaseClass |
Definition at line 12 of file Vector3DBase.h.
typedef BaseClass::BasicVectorType Vector3DBase< T, FrameTag >::BasicVectorType |
Definition at line 17 of file Vector3DBase.h.
typedef BaseClass::Cylindrical Vector3DBase< T, FrameTag >::Cylindrical |
Definition at line 14 of file Vector3DBase.h.
typedef BaseClass::Polar Vector3DBase< T, FrameTag >::Polar |
Definition at line 16 of file Vector3DBase.h.
typedef BaseClass::Spherical Vector3DBase< T, FrameTag >::Spherical |
Definition at line 15 of file Vector3DBase.h.
typedef Vector3DBase< T, FrameTag> Vector3DBase< T, FrameTag >::VectorType |
Definition at line 13 of file Vector3DBase.h.
|
inline |
default constructor uses default constructor of T to initialize the components. For built-in floating-point types this means initialization to zero
Definition at line 23 of file Vector3DBase.h.
Referenced by Vector3DBase< float, MeasurementTag >::operator-(), and Vector3DBase< float, MeasurementTag >::unit().
|
inline |
Construct from another point in the same reference frame, possiblly with different precision
Definition at line 29 of file Vector3DBase.h.
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Deprecated construct from polar coordinates, use constructor from Polar( theta, phi, r) instead.
Definition at line 44 of file Vector3DBase.h.
|
inlineexplicit |
Explicit constructor from BasicVectorType, bypasses consistency checks for point/vector and for coordinate frame. To be used as carefully as e.g. const_cast.
Definition at line 52 of file Vector3DBase.h.
|
inline |
Vector (or cross) product with a vector of possibly different precision, defined in the same reference frame. The product is computed without loss of precision. The precision of the returned Vector is the higher precision of the scalar types of the two vectors.
Definition at line 119 of file Vector3DBase.h.
Referenced by gen::EvtGenInterface::addToHepMC(), L1MuonPixelTrackFitter::Circle::Circle(), RPCSeedPattern::computePtwithSegment(), Phase1PixelBlade::computeRadiusRanges(), ForwardDiskSectorBuilderFromWedges::computeRotation(), RodPlaneBuilderFromDet::computeRotation(), ForwardDiskSectorBuilderFromDet::computeRotation(), PlaneBuilderForGluedDet::computeRotation(), DTDigitizer::computeTime(), ReferenceTrajectory::construct(), Line::distance(), SignedImpactParameter3D::distanceWithJetAxis(), TransverseImpactPointExtrapolator::doExtrapolation(), RPCSeedPattern::extropolateStep(), Cylinder::fastTangent(), AlCaHOCalibProducer::fillHOStore(), jacobianCartesianToCurvilinear(), PerigeeConversions::jacobianCurvilinear2Perigee(), jacobianCurvilinearToCartesian(), PerigeeConversions::jacobianPerigee2Curvilinear(), TransverseBoundPlaneFactory::operator()(), PerpendicularBoundPlaneBuilder::operator()(), PathToPlane2Order::operator()(), SeedFromNuclearInteraction::rotationMatrix(), RPCSeedPattern::SegmentAlgorithmSpecial(), Cylinder::tangentPlane(), TransverseImpactPointExtrapolator::tipSurface(), TkRotation< align::Scalar >::TkRotation(), and L1MuonPixelTrackFitter::valPhi().
|
inline |
Scalar (or dot) product with a vector of possibly different precision, defined in the same reference frame. 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 107 of file Vector3DBase.h.
Referenced by GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), SignedImpactParameter3D::apply(), SignedDecayLength3D::apply(), TwoTrackMinimumDistanceLineLine::calculate(), Line::closerPointToLine(), JacobianCurvilinearToLocal::compute(), JacobianLocalToCurvilinear::compute(), ForwardDiskSectorBuilderFromDet::computeBounds(), ForwardRingDiskBuilderFromDet::computeBounds(), TIBRing::computeHelicity(), ForwardDetLayer::computeSurface(), DTDigitizer::computeTime(), Line::distance(), SignedImpactParameter3D::distanceWithJetAxis(), PropagateToMuon::extrapolate(), V0Fitter::fitAll(), getDistInPlane(), getDistInPlaneSimple(), spr::getDistInPlaneTrackDir(), getDistInPlaneTrackDir(), PerigeeConversions::jacobianCurvilinear2Perigee(), PerigeeConversions::jacobianPerigee2Curvilinear(), Plane::localZ(), OuterDetCompatibility::maximalLocalDisplacement(), TSCBLBuilderWithPropagator::operator()(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), BtoCharmDecayVertexMergerT< VTX >::resolveBtoDchain(), MagGeoBuilderFromDDD::volumeHandle::sameSurface(), and PropagateToMuon::startingState().
|
inline |
|
inline |
Increment by another Vector of possibly different precision, defined in the same reference frame
Definition at line 69 of file Vector3DBase.h.
|
inline |
Unary minus, returns a vector with components (-x(),-y(),-z())
Definition at line 84 of file Vector3DBase.h.
|
inline |
Decrement by another Vector of possibly different precision, defined in the same reference frame
Definition at line 78 of file Vector3DBase.h.
|
inline |
|
inline |
Definition at line 60 of file Vector3DBase.h.
|
inline |
Unit vector parallel to this. If mag() is zero, a zero vector is returned.
Definition at line 57 of file Vector3DBase.h.
Referenced by gen::EvtGenInterface::addToHepMC(), DisplayGeom::analyze(), SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), FWME0SegmentProxyBuilder::build(), FWCSCSegmentProxyBuilder::build(), FWGEMSegmentProxyBuilder::buildViewType(), FWDTSegmentProxyBuilder::buildViewType(), SignedDecayLength3D::closestApproachToJet(), SignedImpactParameter3D::closestApproachToJet(), ForwardDiskSectorBuilderFromDet::computeBounds(), ForwardRingDiskBuilderFromDet::computeBounds(), AnalyticalCurvilinearJacobian::computeFullJacobian(), AnalyticalCurvilinearJacobian::computeStraightLineJacobian(), ForwardDetLayer::computeSurface(), DTDigitizer::computeTime(), TSCPBuilderNoMaterial::createFTSatTransverseImpactPointCharged(), fastsim::TrackerSimHitProducer::createHitOnDetector(), RPCSeedPattern::createSeed(), GlobalTrajectoryParameters::direction(), SignedImpactParameter3D::distanceWithJetAxis(), DTRecSegment4D::DTRecSegment4D(), DTDigitizer::dumpHit(), TrajectoryExtrapolatorToLine::extrapolate(), RPCSeedPattern::extropolateStep(), DTHitQualityUtils::findMuSimSegmentDirAndPos(), ConformalMappingFit::findRot(), DTSegmentUpdator::fit(), FTSFromVertexToPointFactory::get(), CTPPSPixelLocalTrack::getDirectionVector(), getDistInPlane(), getDistInPlaneSimple(), spr::getDistInPlaneTrackDir(), getDistInPlaneTrackDir(), TrackDetectorAssociator::getTAMuonChamberMatches(), BasicTrajectoryState::globalDirection(), PixelTemplateSmearerBase::hitsMerge(), SeedFromConsecutiveHitsTripletOnlyCreator::initialKinematic(), SeedForPhotonConversion1Leg::initialKinematic(), SeedFromConsecutiveHitsCreator::initialKinematic(), SeedForPhotonConversionFromQuadruplets::initialKinematic(), jacobianCartesianToCurvilinear(), PerigeeConversions::jacobianCurvilinear2Perigee(), jacobianCurvilinearToCartesian(), PerigeeConversions::jacobianPerigee2Curvilinear(), IPTools::linearizedSignedImpactParameter3D(), BasicTrajectoryState::localDirection(), FlatTrd::makeAxis(), TruncatedPyramid::makeAxis(), TrajectoryManager::makeSinglePSimHit(), TracksClusteringFromDisplacedSeed::nearTracks(), TransverseBoundPlaneFactory::operator()(), PerpendicularBoundPlaneBuilder::operator()(), PropagationDirectionChooser::operator()(), PathToPlane2Order::operator()(), TemplatedInclusiveVertexFinder< InputContainer, VTX >::produce(), MuonSimHitProducer::produce(), TemplatedSecondaryVertexProducer< IPTI, VTX >::produce(), CachedTrajectory::propagateForward(), AnalyticalPropagator::propagateParametersOnCylinder(), TrackKinematicStatePropagator::propagateToTheTransversePCA(), CosmicRegionalSeedGenerator::regions(), SeedFromNuclearInteraction::rotationMatrix(), SeedGeneratorForCRack::seeds(), RPCSeedPattern::SegmentAlgorithmSpecial(), PixelTemplateSmearerBase::smearMergeGroup(), CosmicMuonUtilities::stepPropagate(), ThirdHitPredictionFromInvLine::ThirdHitPredictionFromInvLine(), TkRotation< align::Scalar >::TkRotation(), ConversionSeedFinder::trackStateFromClusters(), Geant4ePropagator::transformToG4SurfaceTarget(), Vector3DBase< float, MeasurementTag >::unit(), and CSCCrossGap::unitVector().