LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
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 | |
Namespace collecting geometry-related classes utilities. | |
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... | |
Specializations of geo_vectors_utils.h
for ROOT old vector types.
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.