|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONTESTER_MUONFOURVECTORBRANCH_H
5 #define MUONTESTER_MUONFOURVECTORBRANCH_H
10 #include <TLorentzVector.h>
21 void set(
const TLorentzVector&
vec,
size_t pos);
25 void set(
const HepMC::FourVector&
vec,
size_t pos);
28 void push_back(
const float pt,
const float eta,
const float phi,
const float e);
29 void set(
const float pt,
const float eta,
const float phi,
const float e,
size_t pos);
33 bool fill(
const EventContext&)
override final;
34 bool init()
override final;
52 void set(
const TLorentzVector&
vec,
size_t pos);
56 void set(
const HepMC::FourVector&
vec,
size_t pos);
58 void push_back(
const float x,
const float y,
const float z,
const float t);
59 void set(
const float x,
const float y,
const float z,
const float t,
size_t pos);
63 bool fill(
const EventContext&)
override final;
64 bool init() override final;
VectorBranch< float > & m_eta
VectorBranch< float > & m_y
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
std::vector< size_t > vec
TTree * tree() override final
Returns the underlying TTree object.
VectorBranch< float > & m_pt
void set(const TLorentzVector &vec, size_t pos)
void push_back(const TLorentzVector &vec)
VectorBranch< float > & m_e
VectorBranch< float > & m_phi
CartesFourVecBranch(MuonTesterTree &tree, const std::string &vec_name, Type t)
PtEtaPhiEBranch(MuonTesterTree &tree, const std::string &vec_name)
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
bool fill(const EventContext &) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
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.
void set(const TLorentzVector &vec, size_t pos)
Class to store array like branches into the n-tuples.
void push_back(const TLorentzVector &vec)
void operator+=(const TLorentzVector &vec)
VectorBranch< float > & m_z
void operator+=(const TLorentzVector &vec)
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Helper class to store the four-momentum in a TTree using the Pt, Eta, Phi, E representation.
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
VectorBranch< float > & m_x
Helper class to store the four-momentum in a TTree using the X,Y,Z,T or Px,Py,Pz,E representation.
VectorBranch< float > & m_t