Specializations of geo_vectors_utils.h
for ROOT old vector types.
More...
#include "larcorealg/Geometry/geo_vectors_utils.h"
#include "TVector2.h"
#include "TVector3.h"
#include "TLorentzVector.h"
#include <ostream>
Go to the source code of this file.
Namespaces | |
geo::vect | |
Utilities to manipulate geometry vectors.The utilities include generic vector interface facilities allowing to use different vector types via templates. | |
geo::vect::dump | |
Utilities to print vector types. | |
Functions | |
template<> | |
auto | geo::vect::mag2< TVector2 > (TVector2 const &v) |
TVector3 conversions | |
template<typename Vector > | |
TVector3 | geo::vect::toTVector3 (Vector const &v) |
Converts a vector into a TVector3 . More... | |
Output of old-style ROOT vectors (TVector3 etc.) | |
template<typename Stream > | |
void | geo::vect::dump::Vector2 (Stream &&out, TVector2 const &v) |
Print a TVector2 to an output stream. More... | |
template<typename Stream > | |
void | geo::vect::dump::Vector3 (Stream &&out, TVector3 const &v) |
Print a TVector3 to an output stream. More... | |
template<typename Stream > | |
void | geo::vect::dump::LorentzVector (Stream &&out, TLorentzVector const &v) |
Print a TLorentzVector to an output stream. More... | |
std::ostream & | geo::vect::dump::operator<< (std::ostream &out, TVector2 const &v) |
Print a TVector2 to an output stream. More... | |
std::ostream & | geo::vect::dump::operator<< (std::ostream &out, TVector3 const &v) |
Print a TVector3 to an output stream. More... | |
std::ostream & | geo::vect::dump::operator<< (std::ostream &out, TLorentzVector const &v) |
Print a TLorentzVector to an output stream. More... | |
Overloads of STL C++ functions for ROOT vectors | |
decltype(auto) | begin (TVector2 const &v) |
decltype(auto) | cbegin (TVector2 const &v) |
decltype(auto) | end (TVector2 const &v) |
decltype(auto) | cend (TVector2 const &v) |
decltype(auto) | begin (TVector3 const &v) |
decltype(auto) | cbegin (TVector3 const &v) |
decltype(auto) | end (TVector3 const &v) |
decltype(auto) | cend (TVector3 const &v) |
decltype(auto) | begin (TLorentzVector const &v) |
decltype(auto) | cbegin (TLorentzVector const &v) |
decltype(auto) | end (TLorentzVector const &v) |
decltype(auto) | cend (TLorentzVector const &v) |
Specializations of geo_vectors_utils.h
for ROOT old vector types.
larcorealg/Geometry/geo_vectors_utils.h
This library provides facilities that can be used for both LArSoft geometry vectors (geo_vectors.h
) and ROOT TVector3
and related, with the same interface.
This library depends on ROOT GenVector. In the CET link list in CMakeLists.txt
, link to ${ROOT_GENVECTOR}
.
Definition in file geo_vectors_utils_TVector.h.
decltype(auto) begin | ( | TVector2 const & | v | ) |
Definition at line 130 of file geo_vectors_utils_TVector.h.
decltype(auto) begin | ( | TVector3 const & | v | ) |
Definition at line 141 of file geo_vectors_utils_TVector.h.
decltype(auto) begin | ( | TLorentzVector const & | v | ) |
Definition at line 153 of file geo_vectors_utils_TVector.h.
decltype(auto) cbegin | ( | TVector2 const & | v | ) |
Definition at line 132 of file geo_vectors_utils_TVector.h.
decltype(auto) cbegin | ( | TVector3 const & | v | ) |
Definition at line 143 of file geo_vectors_utils_TVector.h.
decltype(auto) cbegin | ( | TLorentzVector const & | v | ) |
Definition at line 156 of file geo_vectors_utils_TVector.h.
decltype(auto) cend | ( | TVector2 const & | v | ) |
Definition at line 136 of file geo_vectors_utils_TVector.h.
decltype(auto) cend | ( | TVector3 const & | v | ) |
Definition at line 147 of file geo_vectors_utils_TVector.h.
decltype(auto) cend | ( | TLorentzVector const & | v | ) |
Definition at line 162 of file geo_vectors_utils_TVector.h.
decltype(auto) end | ( | TVector2 const & | v | ) |
Definition at line 134 of file geo_vectors_utils_TVector.h.
decltype(auto) end | ( | TVector3 const & | v | ) |
Definition at line 145 of file geo_vectors_utils_TVector.h.
decltype(auto) end | ( | TLorentzVector const & | v | ) |
Definition at line 159 of file geo_vectors_utils_TVector.h.