ATLAS Offline Software
Trigger
TrigT1
L1Topo
L1TopoRDO
L1TopoRDO
ModuleID.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef L1TOPORDO_MODULEID_H
6
#define L1TOPORDO_MODULEID_H
7
8
#include <cstdint>
9
#include <iostream>
10
11
namespace
L1Topo
{
28
class
ModuleID
{
29
public
:
31
ModuleID
(
unsigned
int
link
,
unsigned
int
module
,
unsigned
int
roiDaq
);
33
ModuleID
(
const
uint16_t
);
35
uint16_t
link
()
const
;
37
uint16_t
module
()
const
;
39
uint16_t
roiDaq
()
const
;
41
uint16_t
id
()
const
;
43
bool
isDAQ
()
const
;
45
bool
isROI
()
const
;
46
protected
:
48
void
decode
();
50
void
encode
();
51
private
:
52
uint16_t
m_link
;
53
uint16_t
m_module
;
54
uint16_t
m_roiDaq
;
55
uint16_t
m_id
;
56
};
57
59
std::ostream&
operator<<
(std::ostream&
os
,
const
ModuleID
& );
60
61
}
// namespace L1Topo
62
63
#endif // L1TOPORDO_MODULEID_H
L1Topo::ModuleID::module
uint16_t module() const
access method
Definition:
ModuleID.cxx:33
L1Topo::ModuleID::isDAQ
bool isDAQ() const
True if this is a DAQ module.
Definition:
ModuleID.cxx:25
L1Topo::operator<<
std::ostream & operator<<(std::ostream &, const Error)
Helper to print errors as text rather than numbers.
Definition:
Error.cxx:8
L1Topo::ModuleID::decode
void decode()
method used by constructor to decode word
Definition:
ModuleID.cxx:51
L1Topo::ModuleID::isROI
bool isROI() const
True if this is a ROI module.
Definition:
ModuleID.cxx:29
L1Topo::ModuleID::m_roiDaq
uint16_t m_roiDaq
Definition:
ModuleID.h:54
xAOD::uint16_t
setWord1 uint16_t
Definition:
eFexEMRoI_v1.cxx:88
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
L1Topo::ModuleID::link
uint16_t link() const
access method
Definition:
ModuleID.cxx:37
L1Topo::ModuleID::ModuleID
ModuleID(unsigned int link, unsigned int module, unsigned int roiDaq)
Construct from constituent parts and encode word.
Definition:
ModuleID.cxx:11
L1Topo::ModuleID::m_link
uint16_t m_link
Definition:
ModuleID.h:52
L1Topo::ModuleID
Represents the L1Topo module ID, with decoder and encoder.
Definition:
ModuleID.h:28
L1Topo::ModuleID::roiDaq
uint16_t roiDaq() const
access method
Definition:
ModuleID.cxx:21
L1Topo::ModuleID::m_module
uint16_t m_module
Definition:
ModuleID.h:53
L1Topo::ModuleID::m_id
uint16_t m_id
Definition:
ModuleID.h:55
L1Topo
Definition:
BlockTypes.h:11
L1Topo::ModuleID::id
uint16_t id() const
access method
Definition:
ModuleID.cxx:41
L1Topo::ModuleID::encode
void encode()
method used by constructor to encode word
Definition:
ModuleID.cxx:45
Generated on Thu Nov 7 2024 21:21:20 for ATLAS Offline Software by
1.8.18