ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace 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:
40 ScalarBranch<Long64_t>& m_eventNumber{parent().newScalar<Long64_t>(name()+"_eventNumber")};
42 };
43
44}
45#endif
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.
std::string name() const override final
Returns the name of the branch.
ScalarBranch< T > & newScalar(const std::string &name)
Class to store array like branches into the n-tuples.
Definition HitValAlg.cxx:19