ROOT
6.06/09
Reference Guide
|
Minimal, templated three-vector.
No TObject inheritance and virtual functions. Also used in VSD.
Definition at line 25 of file TEveVector.h.
Public Member Functions | |
TEveVectorT () | |
template<typename OO > | |
TEveVectorT (const TEveVectorT< OO > &v) | |
TEveVectorT (const Float_t *v) | |
TEveVectorT (const Double_t *v) | |
TEveVectorT (TT x, TT y, TT z) | |
void | Dump () const |
Dump to stdout as "(x, y, z)\n". More... | |
operator const TT * () const | |
operator TT * () | |
TT | operator[] (Int_t idx) const |
TT & | operator[] (Int_t idx) |
const TT * | Arr () const |
TT * | Arr () |
TEveVectorT & | operator*= (TT s) |
TEveVectorT & | operator+= (const TEveVectorT &v) |
TEveVectorT & | operator-= (const TEveVectorT &v) |
void | Set (const Float_t *v) |
void | Set (const Double_t *v) |
void | Set (TT x, TT y, TT z) |
void | Set (const TVector3 &v) |
Set from TVector3. More... | |
template<typename OO > | |
void | Set (const TEveVectorT< OO > &v) |
void | NegateXYZ () |
TT | Normalize (TT length=1) |
Normalize the vector to length if current length is non-zero. More... | |
TT | Phi () const |
TT | Theta () const |
TT | CosTheta () const |
TT | Eta () const |
Calculate eta of the point, pretending it's a momentum vector. More... | |
TT | Mag2 () const |
TT | Mag () const |
TT | Perp2 () const |
TT | Perp () const |
TT | R () const |
TT | Distance (const TEveVectorT &v) const |
TT | SquareDistance (const TEveVectorT &v) const |
TT | Dot (const TEveVectorT &a) const |
TEveVectorT | Cross (const TEveVectorT &a) const |
TEveVectorT & | Sub (const TEveVectorT &a, const TEveVectorT &b) |
TEveVectorT & | Mult (const TEveVectorT &a, TT af) |
TEveVectorT | Orthogonal () const |
Returns an orthogonal vector (not normalized). More... | |
void | OrthoNormBase (TEveVectorT &a, TEveVectorT &b) const |
Set vectors a and b to be normal to this and among themselves, both of length 1. More... | |
Bool_t | IsZero () const |
ClassDefNV (TEveVectorT, 2) | |
Public Attributes | |
TT | fX |
TT | fY |
TT | fZ |
#include <TEveVector.h>
|
inline |
Definition at line 30 of file TEveVector.h.
|
inline |
Definition at line 32 of file TEveVector.h.
|
inline |
Definition at line 33 of file TEveVector.h.
|
inline |
Definition at line 34 of file TEveVector.h.
|
inline |
Definition at line 35 of file TEveVector.h.
|
inline |
Definition at line 45 of file TEveVector.h.
Referenced by TEveJetConeGL::DirectDraw(), TEvePolygonSetProjectedGL::DrawOutline(), TEveProjection::GetProjectedCenter(), TEveRhoZProjection::GetProjectedCenter(), and TEveVectorT< TT >::OrthoNormBase().
|
inline |
Definition at line 46 of file TEveVector.h.
TEveVectorT< TT >::ClassDefNV | ( | TEveVectorT< TT > | , |
2 | |||
) |
|
inline |
Definition at line 113 of file TEveVector.h.
|
inline |
Definition at line 145 of file TEveVector.h.
Referenced by TEveShape::IsBoxOrientationConsistentEv(), TEveShape::IsBoxOrientationConsistentFv(), and TEveTrans::SetupFromToVec().
|
inline |
Definition at line 120 of file TEveVector.h.
|
inline |
Definition at line 138 of file TEveVector.h.
Referenced by TEveTrackPropagator::ClosestPointBetweenLines(), TEveTrackPropagator::ClosestPointFromVertexToLineSegment(), TEveProjection::GetOrthogonalCenter(), TEveTrackPropagator::HelixIntersectPlane(), TEveShape::IsBoxOrientationConsistentEv(), TEveShape::IsBoxOrientationConsistentFv(), TEveTrackPropagator::LineIntersectPlane(), TEveTrackPropagator::LoopToLineSegment(), TEveTrackPropagator::PointOverVertex(), TEveTrans::SetupFromToVec(), TEveTrackPropagator::Helix_t::UpdateCommon(), and TEveTrackPropagator::Helix_t::UpdateRK().
void TEveVectorT< TT >::Dump | ( | ) | const |
Dump to stdout as "(x, y, z)\n".
Definition at line 28 of file TEveVector.cxx.
TT TEveVectorT< TT >::Eta | ( | ) | const |
Calculate eta of the point, pretending it's a momentum vector.
Definition at line 44 of file TEveVector.cxx.
Referenced by TEveJetConeProjectedGL::CalculatePoints().
|
inline |
Definition at line 88 of file TEveVector.h.
Referenced by TEveJetCone::AddEllipticCone().
|
inline |
Definition at line 69 of file TEveVector.h.
Referenced by TEveArrowGL::DirectDraw(), TEveTrackList::FindMomentumLimits(), TEveMagFieldConst::GetMaxFieldMagD(), TEveMagFieldDuo::GetMaxFieldMagD(), TEveTrackPropagator::LoopToLineSegment(), TEveTrack::MakeTrack(), TEveTrackList::MakeTracks(), TEveBoxSetGL::RenderBoxes(), TEveTrackPropagator::Helix_t::Step(), TEveTrackPropagator::Step(), TEveTrackPropagator::Update(), TEveTrackPropagator::Helix_t::UpdateCommon(), and TEveTrackPropagator::Helix_t::UpdateHelix().
|
inline |
Definition at line 68 of file TEveVector.h.
Referenced by TEveTrackPropagator::ClosestPointBetweenLines(), TEveBoxSet::ComputeBBox(), TEveTrackPropagator::LoopToLineSegment(), TEveVectorT< Float_t >::Mag(), TEveLine::ReduceSegmentLengths(), and TEveTrans::SetupFromToVec().
|
inline |
Definition at line 166 of file TEveVector.h.
Referenced by TEveProjection::BisectBreakPoint(), TEveProjection::GetOrthogonalCenter(), and TEveProjection::GetValForScreenPos().
|
inline |
Definition at line 60 of file TEveVector.h.
Referenced by TEveTrackPropagator::HelixIntersectPlane().
TT TEveVectorT< TT >::Normalize | ( | TT | length = 1 | ) |
Normalize the vector to length if current length is non-zero.
Returns the old magnitude.
Definition at line 56 of file TEveVector.cxx.
Referenced by TEveTrackPropagator::DistributeOffset(), TEveTrackPropagator::LoopToLineSegment(), TEveVectorT< TT >::OrthoNormBase(), and TEveTrackPropagator::Helix_t::UpdateCommon().
|
inline |
Definition at line 39 of file TEveVector.h.
|
inline |
Definition at line 40 of file TEveVector.h.
|
inline |
Definition at line 48 of file TEveVector.h.
Referenced by TEveVector4T< TT >::operator*=().
|
inline |
Definition at line 49 of file TEveVector.h.
Referenced by TEveVector4T< TT >::operator+=().
|
inline |
Definition at line 50 of file TEveVector.h.
Referenced by TEveVector4T< TT >::operator-=().
|
inline |
Definition at line 42 of file TEveVector.h.
|
inline |
Definition at line 43 of file TEveVector.h.
TEveVectorT< TT > TEveVectorT< TT >::Orthogonal | ( | ) | const |
Returns an orthogonal vector (not normalized).
Definition at line 70 of file TEveVector.cxx.
void TEveVectorT< TT >::OrthoNormBase | ( | TEveVectorT< TT > & | a, |
TEveVectorT< TT > & | b | ||
) | const |
Set vectors a and b to be normal to this and among themselves, both of length 1.
Definition at line 86 of file TEveVector.cxx.
Referenced by TEveArrow::ComputeBBox().
|
inline |
Definition at line 72 of file TEveVector.h.
Referenced by TEveTrackList::FindMomentumLimits(), TEveTrackList::MakeTracks(), TEveRecTrackT< Float_t >::Pt(), TEveVectorT< Float_t >::R(), and TEveTrack::SetStdTitle().
|
inline |
Definition at line 71 of file TEveVector.h.
Referenced by TEveTrackPropagator::IntersectPlane(), TEveTrackPropagator::LoopToBounds(), TEveVectorT< Float_t >::Perp(), and TEveTrackList::SelectByPt().
|
inline |
Definition at line 99 of file TEveVector.h.
|
inline |
Definition at line 73 of file TEveVector.h.
Referenced by TEveTrackPropagator::LoopToBounds().
|
inline |
Definition at line 52 of file TEveVector.h.
Referenced by TEveProjection::BisectBreakPoint(), TEveArrowEditor::DoVertex(), TEveTrackProjected::MakeTrack(), TEvePolygonSetProjected::ProjectAndReducePoints(), TEveLine::ReduceSegmentLengths(), TEveCaloLegoGL::SetAxis3DTitlePos(), TEveProjectionManager::SetCenter(), TEveRhoZProjection::SetCenter(), TEveJetCone::SetCylinder(), TEveRhoZProjection::SetDirectionalVector(), and TEveJetCone::SetRadius().
|
inline |
Definition at line 53 of file TEveVector.h.
|
inline |
Definition at line 54 of file TEveVector.h.
void TEveVectorT< TT >::Set | ( | const TVector3 & | v | ) |
Set from TVector3.
Definition at line 36 of file TEveVector.cxx.
|
inline |
Definition at line 58 of file TEveVector.h.
|
inline |
Definition at line 129 of file TEveVector.h.
|
inline |
Definition at line 156 of file TEveVector.h.
Referenced by TEveTrackPropagator::PointOverVertex(), and TEveTrans::SetupFromToVec().
|
inline |
Definition at line 106 of file TEveVector.h.
Referenced by TEveJetCone::CalcBaseVec(), TEveJetCone::IsInTransitionRegion(), and TEveJetCone::SetCylinder().
TT TEveVectorT< TT >::fX |
Definition at line 28 of file TEveVector.h.
Referenced by TEveJetCone::AddEllipticCone(), TEveStraightLineSet::AddLine(), TEveStraightLineSet::AddMarker(), TEvePolygonSetProjected::AddPolygon(), TEveVectorT< Float_t >::Arr(), TEveProjection::BisectBreakPoint(), TEveJetCone::CalcBaseVec(), TEveBoxSet::ComputeBBox(), TEveVectorT< TT >::Cross(), TEveArrowGL::DirectDraw(), TEvePolygonSetProjectedGL::DirectDraw(), TEveVectorT< TT >::Distance(), TEveVectorT< TT >::Dot(), TEveCaloLegoGL::DrawAxis3D(), TEveTrackPropagator::FillPointSet(), TEveTrackProjected::GetBreakPointIdx(), TEveMagField::GetFieldD(), TEveLine::GetLineEnd(), TEveLine::GetLineStart(), TEveTrackPropagator::IsOutsideBounds(), TEveTrackPropagator::LineIntersectPlane(), TEveTrackPropagator::LineToBounds(), TEveTrackPropagator::LineToVertex(), TEveTrack::MakeTrack(), TEveVectorT< TT >::Mult(), TEveVectorT< Float_t >::NegateXYZ(), TEveVectorT< TT >::operator const TT *(), TEveVectorT< TT >::operator TT *(), operator*(), operator+(), TEveVectorT< Float_t >::operator+=(), operator-(), TEveVectorT< Float_t >::operator-=(), TEvePolygonSetProjected::PolygonSurfaceXY(), TEveMagField::PrintField(), TEveTrackProjected::PrintLineSegments(), TEveRhoZProjection::ProjectPoint(), TEveRPhiProjection::ProjectPoint(), TEve3DProjection::ProjectPoint(), TEveProjection::ProjectVector(), TEveBoxSetGL::RenderBoxes(), TEveVectorT< Float_t >::Set(), TEveCaloLegoGL::SetAxis3DTitlePos(), TEveRhoZProjection::SetCenter(), TEveStraightLineSet::SetLine(), TEveProjectionManagerEditor::SetModel(), TEveTrack::SetStdTitle(), TEveTrans::SetupFromToVec(), TEveVectorT< TT >::SquareDistance(), TEveTrackPropagator::Step(), TEveTrackPropagator::StepRungeKutta(), and TEveVectorT< TT >::Sub().
TT TEveVectorT< TT >::fY |
Definition at line 28 of file TEveVector.h.
Referenced by TEveRhoZProjection::AcceptSegment(), TEveStraightLineSet::AddLine(), TEveStraightLineSet::AddMarker(), TEvePolygonSetProjected::AddPolygon(), TEveProjection::BisectBreakPoint(), TEveJetCone::CalcBaseVec(), TEveJetConeProjectedGL::CalculatePoints(), TEveBoxSet::ComputeBBox(), TEveVectorT< TT >::Cross(), TEveArrowGL::DirectDraw(), TEvePolygonSetProjectedGL::DirectDraw(), TEveVectorT< TT >::Distance(), TEveVectorT< TT >::Dot(), TEveCaloLegoGL::DrawAxis3D(), TEveTrackPropagator::FillPointSet(), TEveTrackProjected::GetBreakPointIdx(), TEveMagField::GetFieldD(), TEveLine::GetLineEnd(), TEveLine::GetLineStart(), TEveRhoZProjection::IsOnSubSpaceBoundrary(), TEveTrackPropagator::IsOutsideBounds(), TEveTrackPropagator::LineIntersectPlane(), TEveTrackPropagator::LineToBounds(), TEveTrackPropagator::LineToVertex(), TEveTrack::MakeTrack(), TEveVectorT< TT >::Mult(), TEveVectorT< Float_t >::NegateXYZ(), operator*(), operator+(), TEveVectorT< Float_t >::operator+=(), operator-(), TEveVectorT< Float_t >::operator-=(), TEveVectorT< Float_t >::Perp2(), TEvePolygonSetProjected::PolygonSurfaceXY(), TEveMagField::PrintField(), TEveTrackProjected::PrintLineSegments(), TEveRhoZProjection::ProjectPoint(), TEveRPhiProjection::ProjectPoint(), TEve3DProjection::ProjectPoint(), TEveProjection::ProjectVector(), TEveBoxSetGL::RenderBoxes(), TEveVectorT< Float_t >::Set(), TEveCaloLegoGL::SetAxis3DTitlePos(), TEveRhoZProjection::SetCenter(), TEveStraightLineSet::SetLine(), TEveProjectionManagerEditor::SetModel(), TEveTrack::SetStdTitle(), TEveTrans::SetupFromToVec(), TEveVectorT< TT >::SquareDistance(), TEveTrackPropagator::Step(), TEveTrackPropagator::StepRungeKutta(), TEveVectorT< TT >::Sub(), and TEveRhoZProjection::SubSpaceId().
TT TEveVectorT< TT >::fZ |
Definition at line 28 of file TEveVector.h.
Referenced by TEveStraightLineSet::AddLine(), TEveStraightLineSet::AddMarker(), TEveProjection::BisectBreakPoint(), TEveJetCone::CalcBaseVec(), TEveJetConeProjectedGL::CalculatePoints(), TEveBoxSet::ComputeBBox(), TEveVectorT< TT >::Cross(), TEveArrowGL::DirectDraw(), TEveVectorT< TT >::Distance(), TEveVectorT< TT >::Dot(), TEveCaloLegoGL::DrawAxis3D(), TEveTrackPropagator::FillPointSet(), TEveTrackProjected::GetBreakPointIdx(), TEveMagField::GetFieldD(), TEveLine::GetLineEnd(), TEveLine::GetLineStart(), TEveTrackPropagator::IsOutsideBounds(), TEveTrackPropagator::LineIntersectPlane(), TEveTrackPropagator::LineToBounds(), TEveTrackPropagator::LineToVertex(), TEveTrackPropagator::LoopToBounds(), TEveVectorT< Float_t >::Mag2(), TEveTrack::MakeTrack(), TEveVectorT< TT >::Mult(), TEveVectorT< Float_t >::NegateXYZ(), operator*(), operator+(), TEveVectorT< Float_t >::operator+=(), operator-(), TEveVectorT< Float_t >::operator-=(), TEveMagField::PrintField(), TEveTrackProjected::PrintLineSegments(), TEveRhoZProjection::ProjectPoint(), TEveRPhiProjection::ProjectPoint(), TEve3DProjection::ProjectPoint(), TEveProjection::ProjectVector(), TEveBoxSetGL::RenderBoxes(), TEveVectorT< Float_t >::Set(), TEveRhoZProjection::SetCenter(), TEveStraightLineSet::SetLine(), TEveProjectionManagerEditor::SetModel(), TEveTrack::SetStdTitle(), TEveTrans::SetupFromToVec(), TEveVectorT< TT >::SquareDistance(), TEveTrackPropagator::Step(), TEveTrackPropagator::StepRungeKutta(), and TEveVectorT< TT >::Sub().