ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonValidation
MuonTesterTree
MuonTesterTree
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
7
#include "
MuonTesterTree/MuonTesterTree.h
"
8
#include "
MuonTesterTree/MuonTesterBranch.h
"
9
#include "GaudiKernel/EventIDBase.h"
10
11
namespace
MuonVal
{
21
class
EventIDBranch
:
public
MuonTesterBranch
{
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
:
38
ScalarBranch<unsigned>
&
m_lumiBlock
{
parent
().
newScalar
<
unsigned
>(
name
() +
"_LB"
)};
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
MuonTesterBranch.h
MuonTesterTree.h
MuonVal::EventIDBranch::fill
bool fill(const EventContext &) override final
Interface function from the IMuonTesterBranch.
Definition
EventIDBranch.cxx:20
MuonVal::EventIDBranch::m_timeStamp
ScalarBranch< unsigned > & m_timeStamp
Definition
EventIDBranch.h:41
MuonVal::EventIDBranch::init
bool init() override final
Interface function from the IMuonTesterBranch.
Definition
EventIDBranch.cxx:23
MuonVal::EventIDBranch::m_runNumber
ScalarBranch< unsigned > & m_runNumber
Definition
EventIDBranch.h:39
MuonVal::EventIDBranch::set
void set(const EventIDBase &eventID)
Definition
EventIDBranch.cxx:14
MuonVal::EventIDBranch::EventIDBranch
EventIDBranch(MuonTesterTree &parent, const std::string &objName)
Standard constructor.
Definition
EventIDBranch.cxx:7
MuonVal::EventIDBranch::m_lumiBlock
ScalarBranch< unsigned > & m_lumiBlock
Definition
EventIDBranch.h:38
MuonVal::EventIDBranch::operator=
void operator=(const EventIDBase &eventID)
Fill the eventID information.
Definition
EventIDBranch.cxx:11
MuonVal::EventIDBranch::m_eventNumber
ScalarBranch< Long64_t > & m_eventNumber
Definition
EventIDBranch.h:40
MuonVal::MuonTesterBranch::MuonTesterBranch
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
Definition
MuonTesterBranch.cxx:33
MuonVal::MuonTesterBranch::parent
MuonTesterTree & parent()
Returns the reference to the MuonTesterTree parent.
Definition
MuonTesterBranch.cxx:38
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition
MuonTesterBranch.cxx:51
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::MuonTesterTree::newScalar
ScalarBranch< T > & newScalar(const std::string &name)
MuonVal::ScalarBranch
Definition
ScalarBranch.h:12
MuonVal
Class to store array like branches into the n-tuples.
Definition
HitValAlg.cxx:19
Generated on
for ATLAS Offline Software by
1.17.0