Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EventIDBranch.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONTESTERTREE_EVENTIDBRANCH_H
5 #define MUONTESTERTREE_EVENTIDBRANCH_H
6 
9 #include "GaudiKernel/EventIDBase.h"
10 
11 namespace MuonVal{
22  public:
26  EventIDBranch(MuonTesterTree& parent, const std::string& objName);
27 
29  void operator=(const EventIDBase& eventID);
30  void set(const EventIDBase& eventID);
31 
33  bool fill(const EventContext&) override final;
35  bool init() override final;
36 
37  private:
39  ScalarBranch<unsigned>& m_runNumber{parent().newScalar<unsigned>(name()+"_runNumber")};
40  ScalarBranch<Long64_t>& m_eventNumber{parent().newScalar<Long64_t>(name()+"_eventNumber")};
41  ScalarBranch<unsigned>& m_timeStamp{parent().newScalar<unsigned>(name()+"_timeStamp")};
42  };
43 
44 }
45 #endif
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
MuonTesterTree.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
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition: MuonTesterBranch.cxx:51
MuonVal
Class to store array like branches into the n-tuples.
Definition: HitValAlg.cxx:19
MuonVal::ScalarBranch< unsigned >
MuonVal::EventIDBranch::m_eventNumber
ScalarBranch< Long64_t > & m_eventNumber
Definition: EventIDBranch.h:40
MuonVal::EventIDBranch
Branch class to dump a EventIDBase object into a MuonTesterTree format.
Definition: EventIDBranch.h:21
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonTesterBranch.h
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