Namespaces | Functions
geo_vectors_utils_TVector.h File Reference

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)
 

Detailed Description

Specializations of geo_vectors_utils.h for ROOT old vector types.

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
Date
December 2, 2017
See also
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.

Function Documentation

decltype(auto) begin ( TVector2 const &  v)

Definition at line 130 of file geo_vectors_utils_TVector.h.

130 { return geo::vect::vector_cbegin(v); }
auto vector_cbegin(Vector const &v)
Returns a const-iterator pointing to the first coordinate of v.
decltype(auto) begin ( TVector3 const &  v)

Definition at line 141 of file geo_vectors_utils_TVector.h.

141 { return geo::vect::vector_cbegin(v); }
auto vector_cbegin(Vector const &v)
Returns a const-iterator pointing to the first coordinate of v.
decltype(auto) begin ( TLorentzVector const &  v)

Definition at line 153 of file geo_vectors_utils_TVector.h.

154  { return geo::vect::vector_cbegin(v); }
auto vector_cbegin(Vector const &v)
Returns a const-iterator pointing to the first coordinate of v.
decltype(auto) cbegin ( TVector2 const &  v)

Definition at line 132 of file geo_vectors_utils_TVector.h.

132 { return geo::vect::vector_cbegin(v); }
auto vector_cbegin(Vector const &v)
Returns a const-iterator pointing to the first coordinate of v.
decltype(auto) cbegin ( TVector3 const &  v)

Definition at line 143 of file geo_vectors_utils_TVector.h.

143 { return geo::vect::vector_cbegin(v); }
auto vector_cbegin(Vector const &v)
Returns a const-iterator pointing to the first coordinate of v.
decltype(auto) cbegin ( TLorentzVector const &  v)

Definition at line 156 of file geo_vectors_utils_TVector.h.

157  { return geo::vect::vector_cbegin(v); }
auto vector_cbegin(Vector const &v)
Returns a const-iterator pointing to the first coordinate of v.
decltype(auto) cend ( TVector2 const &  v)

Definition at line 136 of file geo_vectors_utils_TVector.h.

136 { return geo::vect::vector_cend(v); }
auto vector_cend(Vector const &v)
Returns a const-iterator pointing after the last coordinate of v.
decltype(auto) cend ( TVector3 const &  v)

Definition at line 147 of file geo_vectors_utils_TVector.h.

147 { return geo::vect::vector_cend(v); }
auto vector_cend(Vector const &v)
Returns a const-iterator pointing after the last coordinate of v.
decltype(auto) cend ( TLorentzVector const &  v)

Definition at line 162 of file geo_vectors_utils_TVector.h.

163  { return geo::vect::vector_cend(v); }
auto vector_cend(Vector const &v)
Returns a const-iterator pointing after the last coordinate of v.
decltype(auto) end ( TVector2 const &  v)

Definition at line 134 of file geo_vectors_utils_TVector.h.

134 { return geo::vect::vector_cend(v); }
auto vector_cend(Vector const &v)
Returns a const-iterator pointing after the last coordinate of v.
decltype(auto) end ( TVector3 const &  v)

Definition at line 145 of file geo_vectors_utils_TVector.h.

145 { return geo::vect::vector_cend(v); }
auto vector_cend(Vector const &v)
Returns a const-iterator pointing after the last coordinate of v.
decltype(auto) end ( TLorentzVector const &  v)

Definition at line 159 of file geo_vectors_utils_TVector.h.

160  { return geo::vect::vector_cend(v); }
auto vector_cend(Vector const &v)
Returns a const-iterator pointing after the last coordinate of v.