|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTER_MUONTHREEVECTORBRANCH_H
5 #define MUONTESTER_MUONTHREEVECTORBRANCH_H
30 void set(
const TVector3&
vec,
size_t pos);
35 void set(
const HepMC::ThreeVector&
vec,
size_t pos);
38 void push_back(
const float x,
const float y,
const float z);
39 void set(
const float x,
const float y,
const float z,
size_t pos);
43 bool fill(
const EventContext&)
override final;
44 bool init()
override final;
VectorBranch< float > & m_z
ThreeVectorBranch(MuonTesterTree &tree, const std::string &vec_name)
std::vector< size_t > vec
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
TTree * tree() override final
Returns the underlying TTree object.
void push_back(const Amg::Vector3D &vec)
interface using the Amg::Vector3D
VectorBranch< float > & m_y
void operator+=(const Amg::Vector3D &vec)
VectorBranch< T > & newVector(const std::string &name)
Creates new branches and returns their reference.
std::string name() const override final
Returns the name of the branch.
VectorBranch< float > & m_x
Class to store array like branches into the n-tuples.
Eigen::Matrix< double, 3, 1 > Vector3D
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
void set(const Amg::Vector3D &vec, size_t pos)
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...