ATLAS Offline Software
Loading...
Searching...
No Matches
MatrixNtupleBranch.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRK_MATRIXNTUPLEBRANCH_H
6#define TRK_MATRIXNTUPLEBRANCH_H
7
8#include <string>
9class TTree;
10
12#include "CLHEP/Geometry/Transform3D.h"
13
14namespace Trk {
15
32
34
36 bool initForWrite(TTree& tree, const std::string& varname, int ncol, int nrow, const std::string& prefix = "" );
37
39 bool initForRead(TTree& tree, const std::string& varname, int ncol, int nrow, const std::string& prefix = "" );
40
42 bool fill( const Amg::MatrixX& matrix );
43
45 bool fill( const HepGeom::Rotate3D& matrix );
46
48 static const int COLMAX = 10;
49 static const int ROWMAX = 10;
50 int m_nrows{-1};
51 int m_ncols{-1};
53 };
54
55}
56
57#endif
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
This class provides a simple interface to write Matricis to a root tree The size of the Matrix cannot...
bool fill(const Amg::MatrixX &matrix)
fill a vector
static const int COLMAX
data
float m_matrix[COLMAX][ROWMAX]
bool initForWrite(TTree &tree, const std::string &varname, int ncol, int nrow, const std::string &prefix="")
initialize class for writing
bool initForRead(TTree &tree, const std::string &varname, int ncol, int nrow, const std::string &prefix="")
initialize class for reading
TChain * tree