ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonTesterTree
MuonTesterTree
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
6
#include <
MuonTesterTree/ArrayBranch.h
>
7
#include <
xAODEventInfo/EventInfo.h
>
8
12
namespace
MuonVal
{
13
class
EventHashBranch
:
public
IMuonTesterBranch
{
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.h
MuonVal::ArrayBranch
Definition
ArrayBranch.h:14
MuonVal::EventHashBranch::m_cache
ArrayBranch< ULong64_t > m_cache
Definition
EventHashBranch.h:30
MuonVal::EventHashBranch::tree
TTree * tree() override final
Returns the pointer to the underlying TTree object.
Definition
EventHashBranch.cxx:17
MuonVal::EventHashBranch::name
std::string name() const override final
Returns the name of the branch.
Definition
EventHashBranch.cxx:13
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:19
MuonVal::EventHashBranch::EventHashBranch
EventHashBranch(TTree *tree, const std::string &evtKey="EventInfo")
Definition
EventHashBranch.cxx:9
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:35
MuonVal::EventHashBranch::m_last_dump
const EventContext * m_last_dump
Definition
EventHashBranch.h:32
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:12
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:14
MuonVal::EventHashBranch::~EventHashBranch
~EventHashBranch()=default
MuonVal::EventHashBranch::m_evtKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtKey
Definition
EventHashBranch.h:31
MuonVal::IMuonTesterBranch
Most basic interface class used by the MuonTester tree.
Definition
IMuonTesterBranch.h:20
MuonVal::IMuonTesterBranch::DataDependency
SG::VarHandleKey * DataDependency
Definition
IMuonTesterBranch.h:39
vector
Definition
MultiHisto.h:13
const
EventInfo
Definition
EventInfo.py:1
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
std
STL namespace.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
private
#define private
Definition
testRead.cxx:27
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0