|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTER_MATRIXBRANCH_H
5 #define MUONTESTER_MATRIXBRANCH_H
32 inline T&
get(
size_t i,
size_t j);
virtual TTree * tree()=0
Returns the pointer to the underlying TTree object.
MatrixBranch(MuonTesterTree &tree, const std::string &name)
const T & getDefault() const
Get the default value to fill the empty fields in the vector.
MatrixBranch(TTree *tree, const std::string &name)
Standard constructor.
size_t ncols(size_t row) const
Size of the i-th inner vector.
void push_back(size_t i, const T &value)
size_t nrows() const
Size of the outer vector.
MatrixBranch(TTree *tree, const std::string &b_name, const T &def)
Constructor with default value extending the array.
Class to store array like branches into the n-tuples.
MatrixBranch(MuonTesterTree &tree, const std::string &b_name, const T &def)
virtual std::string name() const =0
Returns the name of the branch.
virtual ~MatrixBranch()=default
void setDefault(const T &def)
T & get(size_t i, size_t j)
Returns the j-th element of the i-th inner vector.