ATLAS Offline Software
|
#include <EventHashBranch.h>
Public Types | |
using | DataDependency = SG::VarHandleKey * |
Public Member Functions | |
~EventHashBranch ()=default | |
EventHashBranch (TTree *tree, const std::string &evtKey="EventInfo") | |
bool | fill (const EventContext &ctx) override final |
The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided. More... | |
bool | init () override final |
The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty. More... | |
std::string | name () const override final |
Returns the name of the branch. More... | |
std::vector< DataDependency > | data_dependencies () override final |
Returns a vector of all Event data dependencies needed by the Branch to work. More... | |
TTree * | tree () override final |
Returns the pointer to the underlying TTree object. More... | |
const TTree * | tree () const override final |
bool | is_dumped (const EventContext &ctx) const |
Returns true whether the current event is dumped to the N-tuple or not. More... | |
Private Attributes | |
ArrayBranch< ULong64_t > | m_cache |
SG::ReadHandleKey< xAOD::EventInfo > | m_evtKey {"EventInfo"} |
const EventContext * | m_last_dump {nullptr} |
Definition at line 13 of file EventHashBranch.h.
|
inherited |
Definition at line 39 of file IMuonTesterBranch.h.
|
default |
MuonVal::EventHashBranch::EventHashBranch | ( | TTree * | tree, |
const std::string & | evtKey = "EventInfo" |
||
) |
Definition at line 9 of file EventHashBranch.cxx.
|
finaloverridevirtual |
Returns a vector of all Event data dependencies needed by the Branch to work.
Implements MuonVal::IMuonTesterBranch.
Definition at line 14 of file EventHashBranch.cxx.
|
finaloverridevirtual |
The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided.
--> returns false if no update is called or the dummy value has not been defined
Implements MuonVal::IMuonTesterBranch.
Definition at line 19 of file EventHashBranch.cxx.
|
finaloverridevirtual |
The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty.
Implements MuonVal::IMuonTesterBranch.
Definition at line 12 of file EventHashBranch.cxx.
bool MuonVal::EventHashBranch::is_dumped | ( | const EventContext & | ctx | ) | const |
Returns true whether the current event is dumped to the N-tuple or not.
Definition at line 35 of file EventHashBranch.cxx.
|
finaloverridevirtual |
Returns the name of the branch.
Implements MuonVal::IMuonTesterBranch.
Definition at line 13 of file EventHashBranch.cxx.
|
finaloverridevirtual |
Implements MuonVal::IMuonTesterBranch.
Definition at line 18 of file EventHashBranch.cxx.
|
finaloverridevirtual |
Returns the pointer to the underlying TTree object.
Implements MuonVal::IMuonTesterBranch.
Definition at line 17 of file EventHashBranch.cxx.
|
private |
Definition at line 30 of file EventHashBranch.h.
|
private |
Definition at line 31 of file EventHashBranch.h.
|
private |
Definition at line 32 of file EventHashBranch.h.