#include <GeoVector.h>
 
  
 | Public Member Functions | |
| Vector () | |
| Default ctor.  More... | |
| Vector (size_t n) | |
| Ctor to instantiate with invalid value.  More... | |
| Vector (const std::vector< double > &obj) | |
| Default ctor w/ a bare std::vector<double>  More... | |
| Vector (const double x, const double y) | |
| ctor w/ x & y  More... | |
| Vector (const double x, const double y, const double z) | |
| ctor w/ x, y & z  More... | |
| Vector (const TVector3 &pt) | |
| ctor w/ TVector3  More... | |
| Vector (const TLorentzVector &pt) | |
| ctor w/ TLorentzVector  More... | |
| void | Normalize () | 
| Normalize itself.  More... | |
| bool | IsValid () const | 
| Check if point is valid.  More... | |
| double | SqLength () const | 
| Compute the squared length of the vector.  More... | |
| double | Length () const | 
| Compute the length of the vector.  More... | |
| Vector | Dir () const | 
| Return a direction unit vector.  More... | |
| double | Phi () const | 
| Compute the angle Phi.  More... | |
| double | Theta () const | 
| Compute the angle theta.  More... | |
| double | SqDist (const Vector &obj) const | 
| Compute the squared distance to another vector.  More... | |
| double | Dist (const Vector &obj) const | 
| Compute the distance to another vector.  More... | |
| double | Dot (const Vector &obj) const | 
| Vector | Cross (const Vector &obj) const | 
| Compute a dot product of two vectors.  More... | |
| double | Angle (const Vector &obj) const | 
| Compute a cross product of two vectors.  More... | |
| TLorentzVector | ToTLorentzVector () const | 
| Compute an opening angle w.r.t. the given vector.  More... | |
| void | compat (const Vector &obj) const | 
| Dimensional check for a compatibility.  More... | |
| void | RotateX (const double &theta) | 
| rotation operations  More... | |
| void | RotateY (const double &theta) | 
| void | RotateZ (const double &theta) | 
| Vector & | operator+= (const Vector &rhs) | 
| Vector & | operator-= (const Vector &rhs) | 
| Vector & | operator*= (const double rhs) | 
| Vector & | operator/= (const double rhs) | 
| Vector & | operator= (const Vector &rhs) | 
| Vector | operator+ (const Vector &rhs) const | 
| Vector | operator- (const Vector &rhs) const | 
| double | operator* (const Vector &rhs) const | 
| Vector | operator* (const double &rhs) const | 
| Vector | operator/ (const double &rhs) const | 
| bool | operator< (const Vector &rhs) const | 
| bool | operator< (const double &rhs) const | 
| bool | operator== (const Vector &rhs) const | 
| bool | operator!= (const Vector &rhs) const | 
| Vector () | |
| Default ctor.  More... | |
| Vector (size_t n) | |
| Ctor to instantiate with invalid value.  More... | |
| Vector (const std::vector< double > &obj) | |
| Default ctor w/ a bare std::vector<double>  More... | |
| Vector (const double x, const double y) | |
| ctor w/ x & y  More... | |
| Vector (const double x, const double y, const double z) | |
| ctor w/ x, y & z  More... | |
| Vector (const TVector3 &pt) | |
| ctor w/ TVector3  More... | |
| Vector (const TLorentzVector &pt) | |
| ctor w/ TLorentzVector  More... | |
| virtual | ~Vector () | 
| Default dtor.  More... | |
| void | Normalize () | 
| Normalize itself.  More... | |
| bool | IsValid () const | 
| Check if point is valid.  More... | |
| double | SqLength () const | 
| Compute the squared length of the vector.  More... | |
| double | Length () const | 
| Compute the length of the vector.  More... | |
| Vector | Dir () const | 
| Return a direction unit vector.  More... | |
| double | Phi () const | 
| Compute the angle Phi.  More... | |
| double | Theta () const | 
| Compute the angle theta.  More... | |
| double | SqDist (const Vector &obj) const | 
| Compute the squared distance to another vector.  More... | |
| double | Dist (const Vector &obj) const | 
| Compute the distance to another vector.  More... | |
| double | Dot (const Vector &obj) const | 
| Vector | Cross (const Vector &obj) const | 
| Compute a dot product of two vectors.  More... | |
| double | Angle (const Vector &obj) const | 
| Compute a cross product of two vectors.  More... | |
| TLorentzVector | ToTLorentzVector () const | 
| Compute an opening angle w.r.t. the given vector.  More... | |
| void | compat (const Vector &obj) const | 
| Dimensional check for a compatibility.  More... | |
| void | RotateX (const double &theta) | 
| rotation operations  More... | |
| void | RotateY (const double &theta) | 
| void | RotateZ (const double &theta) | 
| std::string | dump () const | 
| Vector & | operator+= (const Vector &rhs) | 
| Vector & | operator-= (const Vector &rhs) | 
| Vector & | operator*= (const double rhs) | 
| Vector & | operator/= (const double rhs) | 
| Vector & | operator= (const Vector &rhs) | 
| Vector | operator+ (const Vector &rhs) const | 
| Vector | operator- (const Vector &rhs) const | 
| double | operator* (const Vector &rhs) const | 
| Vector | operator* (const double &rhs) const | 
| Vector | operator/ (const double &rhs) const | 
| bool | operator< (const Vector &rhs) const | 
| bool | operator< (const double &rhs) const | 
| bool | operator== (const Vector &rhs) const | 
| bool | operator!= (const Vector &rhs) const | 
| Protected Member Functions | |
| double | _SqDist_ (const Vector &obj) const | 
| Compute the squared-distance to another vector w/o dimension check.  More... | |
| double | _Dist_ (const Vector &obj) const | 
| Compute the distance to another vector w/o dimension check.  More... | |
| double | _Dot_ (const Vector &obj) const | 
| Compute a dot product w/o dimention check.  More... | |
| Vector | _Cross_ (const Vector &obj) const | 
| Compute a cross product w/o dimension check.  More... | |
| double | _Angle_ (const Vector &obj) const | 
| Compute the angle in degrees between 2 vectors w/o dimension check.  More... | |
| double | _SqDist_ (const Vector &obj) const | 
| Compute the squared-distance to another vector w/o dimension check.  More... | |
| double | _Dist_ (const Vector &obj) const | 
| Compute the distance to another vector w/o dimension check.  More... | |
| double | _Dot_ (const Vector &obj) const | 
| Compute a dot product w/o dimention check.  More... | |
| Vector | _Cross_ (const Vector &obj) const | 
| Compute a cross product w/o dimension check.  More... | |
| double | _Angle_ (const Vector &obj) const | 
| Compute the angle in degrees between 2 vectors w/o dimension check.  More... | |
| Friends | |
| class | Trajectory | 
| class | HalfLine | 
| class | LineSegment | 
| class | Sphere | 
| class | GeoAlgo | 
| std::ostream & | operator<< (std::ostream &o,::geoalgo::Vector const &a) | 
| Streamer.  More... | |
| std::ostream & | operator<< (std::ostream &o,::geoalgo::Vector const &a) | 
| Streamer.  More... | |
| Additional Inherited Members | |
|  Public Attributes inherited from std::vector< T > | |
| T | elements | 
| STL member.  More... | |
This class represents an n-dimensional vector
Definition at line 33 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Default ctor.
Definition at line 41 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Ctor to instantiate with invalid value.
Definition at line 45 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Default ctor w/ a bare std::vector<double>
Definition at line 49 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| geoalgo::Vector::Vector | ( | const double | x, | 
| const double | y | ||
| ) | 
ctor w/ x & y
Definition at line 10 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| geoalgo::Vector::Vector | ( | const double | x, | 
| const double | y, | ||
| const double | z | ||
| ) | 
ctor w/ x, y & z
Definition at line 13 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| geoalgo::Vector::Vector | ( | const TVector3 & | pt | ) | 
ctor w/ TVector3
Definition at line 16 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| geoalgo::Vector::Vector | ( | const TLorentzVector & | pt | ) | 
ctor w/ TLorentzVector
Definition at line 19 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| 
 | inline | 
Default ctor.
Definition at line 43 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Ctor to instantiate with invalid value.
Definition at line 47 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Default ctor w/ a bare std::vector<double>
Definition at line 51 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| geoalgo::Vector::Vector | ( | const double | x, | 
| const double | y | ||
| ) | 
ctor w/ x & y
| geoalgo::Vector::Vector | ( | const double | x, | 
| const double | y, | ||
| const double | z | ||
| ) | 
ctor w/ x, y & z
| geoalgo::Vector::Vector | ( | const TVector3 & | pt | ) | 
ctor w/ TVector3
| geoalgo::Vector::Vector | ( | const TLorentzVector & | pt | ) | 
ctor w/ TLorentzVector
| 
 | inlinevirtual | 
Default dtor.
Definition at line 60 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | protected | 
Compute the angle in degrees between 2 vectors w/o dimension check.
Definition at line 130 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| 
 | protected | 
Compute the angle in degrees between 2 vectors w/o dimension check.
Compute a cross product w/o dimension check.
Definition at line 121 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
Compute a cross product w/o dimension check.
| 
 | protected | 
Compute the distance to another vector w/o dimension check.
Definition at line 115 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| 
 | protected | 
Compute the distance to another vector w/o dimension check.
| 
 | protected | 
Compute a dot product w/o dimention check.
Definition at line 118 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| 
 | protected | 
Compute a dot product w/o dimention check.
| 
 | protected | 
Compute the squared-distance to another vector w/o dimension check.
Definition at line 108 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| 
 | protected | 
Compute the squared-distance to another vector w/o dimension check.
| double geoalgo::Vector::Angle | ( | const Vector & | obj | ) | const | 
Compute a cross product of two vectors.
Definition at line 76 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::Angle | ( | const Vector & | obj | ) | const | 
Compute a cross product of two vectors.
| void geoalgo::Vector::compat | ( | const Vector & | obj | ) | const | 
Dimensional check for a compatibility.
Definition at line 97 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| void geoalgo::Vector::compat | ( | const Vector & | obj | ) | const | 
Dimensional check for a compatibility.
Compute a dot product of two vectors.
Definition at line 56 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| Vector geoalgo::Vector::Dir | ( | ) | const | 
Return a direction unit vector.
Definition at line 91 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| Vector geoalgo::Vector::Dir | ( | ) | const | 
Return a direction unit vector.
| double geoalgo::Vector::Dist | ( | const Vector & | obj | ) | const | 
Compute the distance to another vector.
Definition at line 48 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::Dist | ( | const Vector & | obj | ) | const | 
Compute the distance to another vector.
| double geoalgo::Vector::Dot | ( | const Vector & | obj | ) | const | 
Definition at line 51 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::Dot | ( | const Vector & | obj | ) | const | 
| std::string geoalgo::Vector::dump | ( | ) | const | 
Definition at line 185 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.cxx.
| bool geoalgo::Vector::IsValid | ( | ) | const | 
Check if point is valid.
Definition at line 22 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| bool geoalgo::Vector::IsValid | ( | ) | const | 
Check if point is valid.
| double geoalgo::Vector::Length | ( | ) | const | 
Compute the length of the vector.
Definition at line 40 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::Length | ( | ) | const | 
Compute the length of the vector.
| void geoalgo::Vector::Normalize | ( | ) | 
Normalize itself.
Definition at line 89 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| void geoalgo::Vector::Normalize | ( | ) | 
Normalize itself.
| 
 | inline | 
Definition at line 180 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 185 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 140 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 145 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 147 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 152 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 110 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 115 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
Definition at line 126 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
Definition at line 131 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
Definition at line 100 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
Definition at line 105 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
Definition at line 133 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
Definition at line 138 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
Definition at line 105 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
Definition at line 110 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 154 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 159 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 115 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 120 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 161 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 166 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 169 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 174 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
Definition at line 120 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
Definition at line 125 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 172 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | inline | 
Definition at line 177 of file sbncode/sbncode/OpT0Finder/flashmatch/GeoAlgo/GeoVector.h.
| double geoalgo::Vector::Phi | ( | ) | const | 
Compute the angle Phi.
Definition at line 65 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::Phi | ( | ) | const | 
Compute the angle Phi.
| void geoalgo::Vector::RotateX | ( | const double & | theta | ) | 
rotation operations
Definition at line 134 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| void geoalgo::Vector::RotateX | ( | const double & | theta | ) | 
rotation operations
| void geoalgo::Vector::RotateY | ( | const double & | theta | ) | 
Definition at line 150 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| void geoalgo::Vector::RotateY | ( | const double & | theta | ) | 
| void geoalgo::Vector::RotateZ | ( | const double & | theta | ) | 
Definition at line 166 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| void geoalgo::Vector::RotateZ | ( | const double & | theta | ) | 
| double geoalgo::Vector::SqDist | ( | const Vector & | obj | ) | const | 
Compute the squared distance to another vector.
Definition at line 43 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::SqDist | ( | const Vector & | obj | ) | const | 
Compute the squared distance to another vector.
| double geoalgo::Vector::SqLength | ( | ) | const | 
Compute the squared length of the vector.
Definition at line 34 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::SqLength | ( | ) | const | 
Compute the squared length of the vector.
| double geoalgo::Vector::Theta | ( | ) | const | 
Compute the angle theta.
Definition at line 69 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| double geoalgo::Vector::Theta | ( | ) | const | 
Compute the angle theta.
| TLorentzVector geoalgo::Vector::ToTLorentzVector | ( | ) | const | 
Compute an opening angle w.r.t. the given vector.
Convert geovector to TLorentzVector (with 4th element set equal to 0)
Definition at line 83 of file larcorealg/larcorealg/GeoAlgo/GeoVector.cxx.
| TLorentzVector geoalgo::Vector::ToTLorentzVector | ( | ) | const | 
Compute an opening angle w.r.t. the given vector.
Convert geovector to TLorentzVector (with 4th element set equal to 0)
| 
 | friend | 
Definition at line 38 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | friend | 
Definition at line 35 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | friend | 
Definition at line 36 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | friend | 
| 
 | friend | 
| 
 | friend | 
Definition at line 37 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
| 
 | friend | 
Definition at line 34 of file larcorealg/larcorealg/GeoAlgo/GeoVector.h.
 1.8.5
 1.8.5