ATLAS Offline Software
Loading...
Searching...
No Matches
EventIDBranch.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
5
6namespace MuonVal{
7 EventIDBranch::EventIDBranch(MuonTesterTree& parent, const std::string& objName):
8 MuonTesterBranch{parent, objName} {}
9
10
11 void EventIDBranch::operator=(const EventIDBase& eventID){
12 set(eventID);
13 }
14 void EventIDBranch::set(const EventIDBase& eventID){
15 m_lumiBlock = eventID.lumi_block();
16 m_runNumber = eventID.run_number();
17 m_eventNumber = eventID.event_number();
18 m_timeStamp = eventID.time_stamp();
19 }
20 bool EventIDBranch::fill(const EventContext&) {
21 return true;
22 }
24 return true;
25 }
26}
bool fill(const EventContext &) override final
Interface function from the IMuonTesterBranch.
ScalarBranch< unsigned > & m_timeStamp
bool init() override final
Interface function from the IMuonTesterBranch.
ScalarBranch< unsigned > & m_runNumber
void set(const EventIDBase &eventID)
EventIDBranch(MuonTesterTree &parent, const std::string &objName)
Standard constructor.
ScalarBranch< unsigned > & m_lumiBlock
void operator=(const EventIDBase &eventID)
Fill the eventID information.
ScalarBranch< Long64_t > & m_eventNumber
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Class to store array like branches into the n-tuples.
Definition HitValAlg.cxx:19