ATLAS Offline Software
Loading...
Searching...
No Matches
EventHashBranch.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONTESTERTREE_EVENTHASHBRANCH_H
5#define MUONTESTERTREE_EVENTHASHBRANCH_H
8
12namespace MuonVal {
14 public:
15 ~EventHashBranch() = default;
16 EventHashBranch(TTree* tree, const std::string& evtKey="EventInfo");
17
18 bool fill(const EventContext& ctx) override final;
19 bool init() override final;
20 std::string name() const override final;
21 std::vector<DataDependency> data_dependencies() override final;
22
23 TTree* tree() override final;
24 const TTree* tree() const override final;
25
27 bool is_dumped(const EventContext& ctx) const;
28
29 private:
30 ArrayBranch<ULong64_t> m_cache;
31 SG::ReadHandleKey<xAOD::EventInfo> m_evtKey{"EventInfo"};
32 const EventContext* m_last_dump{nullptr};
33};
34}
35#endif
ArrayBranch< ULong64_t > m_cache
TTree * tree() override final
Returns the pointer to the underlying TTree object.
std::string name() const override final
Returns the name of the branch.
bool fill(const EventContext &ctx) override final
The fill method checks if enough information is provided such that the branch is cleared from the inf...
EventHashBranch(TTree *tree, const std::string &evtKey="EventInfo")
bool is_dumped(const EventContext &ctx) const
Returns true whether the current event is dumped to the N-tuple or not.
const EventContext * m_last_dump
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
std::vector< DataDependency > data_dependencies() override final
Returns a vector of all Event data dependencies needed by the Branch to work.
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Most basic interface class used by the MuonTester tree.
SG::VarHandleKey * DataDependency
Class to store array like branches into the n-tuples.
Definition HitValAlg.cxx:19
Forward declaration.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private