5#ifndef TRK_VECTORNTUPLEBRANCH_H
6#define TRK_VECTORNTUPLEBRANCH_H
12#include "CLHEP/Geometry/Vector3D.h"
13#include "CLHEP/Geometry/Point3D.h"
14#include "CLHEP/Matrix/Vector.h"
37 bool initForWrite(TTree&
tree,
const std::string& varname,
int nrow,
const std::string& prefix =
"" );
40 bool initForRead(TTree&
tree,
const std::string& varname,
int nrow,
const std::string& prefix =
"" );
46 bool fill(
const CLHEP::HepVector&
vec );
49 bool fill(
const CLHEP::Hep3Vector&
vec );
52 bool fill(
const HepGeom::Point3D<double>&
vec );
55 bool fill(
const HepGeom::Vector3D<double>&
vec );
std::vector< size_t > vec
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
This class provides a simple interface to write Vectors to a root tree The size of the vectors cannot...
static const int ROWMAX
maximum size of the vector
bool initForWrite(TTree &tree, const std::string &varname, int nrow, const std::string &prefix="")
initialize class for writing
bool fill(const Amg::VectorX &matrix)
fill a vector
bool initForRead(TTree &tree, const std::string &varname, int nrow, const std::string &prefix="")
initialize class for reading