ATLAS Offline Software
Trigger
TrigT1
L1Topo
L1TopoRDO
src
BlockTypes.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
L1TopoRDO/BlockTypes.h
"
6
7
namespace
L1Topo
{
8
9
L1Topo::BlockTypes
blockType
(
const
uint32_t
word,
uint32_t
offset
,
uint32_t
size
){
10
return
static_cast<
BlockTypes
>
(word>>
offset
&
size
);
11
}
12
13
14
std::string
blockTypeString
(
L1Topo::BlockTypes
type
) {
15
if
(
type
==
L1Topo::BlockTypes::HEADER
) {
return
"header"
;}
16
else
if
(
type
==
L1Topo::BlockTypes::FIBRE
) {
return
"fibre"
;}
17
else
if
(
type
==
L1Topo::BlockTypes::STATUS
) {
return
"status"
;}
18
else
if
(
type
==
L1Topo::BlockTypes::EM_TOB
) {
return
"EM TOB"
;}
19
else
if
(
type
==
L1Topo::BlockTypes::TAU_TOB
) {
return
"Tau TOB"
;}
20
else
if
(
type
==
L1Topo::BlockTypes::MUON_TOB
) {
return
"Muon TOB"
;}
21
else
if
(
type
==
L1Topo::BlockTypes::JET1_TOB
) {
return
"Jet1 TOB"
;}
22
else
if
(
type
==
L1Topo::BlockTypes::JET2_TOB
) {
return
"Jet2 TOB"
;}
23
else
if
(
type
==
L1Topo::BlockTypes::ENERGY_TOB
) {
return
"Energy TOB"
;}
24
else
if
(
type
==
L1Topo::BlockTypes::L1TOPO_TOB
) {
return
"L1Topo TOB"
;}
25
else
{
return
"unknown"
;}
26
}
27
28
}
// namespace L1Topo
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
BlockTypes.h
L1Topo::blockType
L1Topo::BlockTypes blockType(const uint32_t word, uint32_t offset=28, uint32_t size=0x0f)
Function to return the block type of a data word from L1Topo
Definition:
BlockTypes.cxx:9
L1Topo::BlockTypes::JET2_TOB
@ JET2_TOB
L1Topo::BlockTypes::JET1_TOB
@ JET1_TOB
L1Topo::BlockTypes::MUON_TOB
@ MUON_TOB
L1Topo::BlockTypes::FIBRE
@ FIBRE
L1Topo::BlockTypes::ENERGY_TOB
@ ENERGY_TOB
L1Topo::BlockTypes::STATUS
@ STATUS
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
L1Topo::BlockTypes::EM_TOB
@ EM_TOB
L1Topo::BlockTypes
BlockTypes
L1Topo data block types and their 4-bit codes.
Definition:
BlockTypes.h:14
L1Topo::BlockTypes::TAU_TOB
@ TAU_TOB
L1Topo::BlockTypes::L1TOPO_TOB
@ L1TOPO_TOB
L1Topo::blockTypeString
std::string blockTypeString(L1Topo::BlockTypes type)
Definition:
BlockTypes.cxx:14
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
L1Topo::BlockTypes::HEADER
@ HEADER
convertTimingResiduals.offset
offset
Definition:
convertTimingResiduals.py:71
L1Topo
Definition:
BlockTypes.h:11
Generated on Sun Jun 30 2024 21:11:14 for ATLAS Offline Software by
1.8.18