Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
6 namespace 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 }
MuonVal::EventIDBranch::set
void set(const EventIDBase &eventID)
Definition: EventIDBranch.cxx:14
MuonVal::EventIDBranch::m_timeStamp
ScalarBranch< unsigned > & m_timeStamp
Definition: EventIDBranch.h:41
MuonVal::MuonTesterBranch
Definition: MuonTesterBranch.h:21
EventIDBranch.h
MuonVal::EventIDBranch::m_lumiBlock
ScalarBranch< unsigned > & m_lumiBlock
Definition: EventIDBranch.h:38
MuonVal::EventIDBranch::init
bool init() override final
Interface function from the IMuonTesterBranch
Definition: EventIDBranch.cxx:23
MuonVal::EventIDBranch::fill
bool fill(const EventContext &) override final
Interface function from the IMuonTesterBranch.
Definition: EventIDBranch.cxx:20
MuonVal::MuonTesterTree
Definition: MuonTesterTree.h:30
test_pyathena.parent
parent
Definition: test_pyathena.py:15
MuonVal
Class to store array like branches into the n-tuples.
Definition: HitValAlg.cxx:19
MuonVal::EventIDBranch::m_eventNumber
ScalarBranch< Long64_t > & m_eventNumber
Definition: EventIDBranch.h:40
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition: MuonTesterBranch.cxx:38
MuonVal::EventIDBranch::operator=
void operator=(const EventIDBase &eventID)
Fill the eventID information.
Definition: EventIDBranch.cxx:11
MuonVal::EventIDBranch::EventIDBranch
EventIDBranch(MuonTesterTree &parent, const std::string &objName)
Standard constructor.
Definition: EventIDBranch.cxx:7
MuonVal::EventIDBranch::m_runNumber
ScalarBranch< unsigned > & m_runNumber
Definition: EventIDBranch.h:39