ATLAS Offline Software
EventHashBranch.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONTESTERTREE_EVENTHASHBRANCH_H
5 #define MUONTESTERTREE_EVENTHASHBRANCH_H
8 
12 namespace MuonVal {
14  public:
15  ~EventHashBranch() = default;
16  EventHashBranch(TTree* tree);
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  SG::ReadHandleKey<xAOD::EventInfo> m_evtKey{"EventInfo"};
32  const EventContext* m_last_dump{nullptr};
33 };
34 }
35 #endif
MuonVal::EventHashBranch
Definition: EventHashBranch.h:13
ArrayBranch.h
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
MuonVal::EventHashBranch::m_cache
ArrayBranch< ULong64_t > m_cache
Definition: EventHashBranch.h:31
MuonVal::EventHashBranch::data_dependencies
std::vector< DataDependency > data_dependencies() override final
Returns a vector of all Event data dependencies needed by the Branch to work.
Definition: EventHashBranch.cxx:13
MuonVal::EventHashBranch::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition: EventHashBranch.h:30
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
MuonVal::EventHashBranch::~EventHashBranch
~EventHashBranch()=default
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
MuonVal::EventHashBranch::fill
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...
Definition: EventHashBranch.cxx:18
MuonVal::EventHashBranch::init
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
Definition: EventHashBranch.cxx:11
MuonVal::EventHashBranch::name
std::string name() const override final
Returns the name of the branch.
Definition: EventHashBranch.cxx:12
vector
Definition: MultiHisto.h:13
MuonVal::EventHashBranch::tree
TTree * tree() override final
Returns the pointer to the underlying TTree object.
Definition: EventHashBranch.cxx:16
MuonVal::ArrayBranch< ULong64_t >
MuonVal
Class to store array like branches into the n-tuples.
Definition: MuonTPMetaDataAlg.cxx:25
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
MuonVal::EventHashBranch::EventHashBranch
EventHashBranch(TTree *tree)
Definition: EventHashBranch.cxx:9
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:42
SG::VarHandleKey
A property holding a SG store/key/clid from which a VarHandle is made.
Definition: StoreGate/StoreGate/VarHandleKey.h:62
EventInfo.h
MuonVal::EventHashBranch::m_last_dump
const EventContext * m_last_dump
Definition: EventHashBranch.h:32
MuonVal::EventHashBranch::is_dumped
bool is_dumped(const EventContext &ctx) const
Returns true whether the current event is dumped to the N-tuple or not.
Definition: EventHashBranch.cxx:34
MuonVal::IMuonTesterBranch
Most basic interface class used by the MuonTester tree.
Definition: IMuonTesterBranch.h:20