|
ATLAS Offline Software
|
Go to the documentation of this file.
10 m_cache{
tree,
"CommonEventHash", 2},
21 if (!evtInfo.isValid()){
23 log << MSG::ERROR <<
"Could not retrieve the EventInfo " <<
m_evtKey.fullKey() <<
endmsg;
26 m_cache[0] = evtInfo->eventNumber();
28 ULong64_t
dsid = evtInfo->mcChannelNumber();
29 dsid = ( (
dsid<<32) | evtInfo->runNumber());
31 }
else m_cache[1] = evtInfo->runNumber();
bool fill(const EventContext &) override final
Returns false if one of the array values is not updated.
bool init() override final
Connects the branch with the tree.
EventHashBranch(TTree *tree, const std::string &evtKey="EventInfo")
ArrayBranch< ULong64_t > m_cache
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
@ IS_SIMULATION
true: simulation, false: data
IMessageSvc * getMessageSvc(bool quiet=false)
TTree * tree() override final
Returns the underlying TTree object.
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...
bool init() override final
The init method checks whether the branch name has already registered to the MuonTree and tries then ...
std::string name() const override final
Returns the name of the branch.
TTree * tree() override final
Returns the pointer to the underlying TTree object.
std::string name() const override final
Returns the name of the branch.
Class to store array like branches into the n-tuples.
const EventContext * m_last_dump
bool is_dumped(const EventContext &ctx) const
Returns true whether the current event is dumped to the N-tuple or not.
Handle class for reading from StoreGate.