Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
MuonSpectrometer
MuonCnv
MuonNSWCommonDecode
src
MMTrigPacket.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include <vector>
5
#include <exception>
6
#include <sstream>
7
#include <string>
8
#include <algorithm>
9
#include <tuple>
10
11
#include "
MuonNSWCommonDecode/MMTrigPacket.h
"
12
#include "
MuonNSWCommonDecode/NSWMMTPDecodeBitmaps.h
"
13
14
Muon::nsw::MMTrigPacket::MMTrigPacket
(std::vector<uint32_t>&
payload
){
15
16
std::size_t readPointer{0};
17
std::span<const std::uint32_t>
data
{
payload
.data(), 3};
18
19
if
(
payload
.size()!=2) {
20
throw
std::runtime_error(
Muon::nsw::format
(
"MM Trigger packet size not as expected: expected exactly 2 uint32_t, got {}"
,
payload
.size() ));
21
}
22
23
m_trig_globalX
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_globalX
);
24
m_trig_globalU
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_globalU
);
25
m_trig_BCID
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_BCID
);
26
m_trig_reserved
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_reserved
);
27
m_trig_dTheta
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_dTheta
);
28
m_trig_phiBin
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_phiBin
);
29
m_trig_rBin
= Muon::nsw::decode_and_advance<uint64_t>(
data
, readPointer,
Muon::nsw::MMTRIG::size_trig_rBin
);
30
31
}
Muon::nsw::MMTRIG::size_trig_rBin
constexpr int size_trig_rBin
Definition:
NSWMMTPDecodeBitmaps.h:102
data
char data[hepevt_bytes_allocation_ATLAS]
Definition:
HepEvt.cxx:11
Muon::nsw::MMTrigPacket::m_trig_reserved
uint32_t m_trig_reserved
Definition:
MMTrigPacket.h:33
Muon::nsw::MMTRIG::size_trig_globalU
constexpr int size_trig_globalU
Definition:
NSWMMTPDecodeBitmaps.h:97
Muon::nsw::MMTrigPacket::m_trig_globalU
uint32_t m_trig_globalU
Definition:
MMTrigPacket.h:31
Muon::nsw::MMTrigPacket::MMTrigPacket
MMTrigPacket(std::vector< uint32_t > &payload)
Definition:
MMTrigPacket.cxx:14
Muon::nsw::MMTrigPacket::m_trig_rBin
uint32_t m_trig_rBin
Definition:
MMTrigPacket.h:36
Muon::nsw::MMTrigPacket::m_trig_phiBin
uint32_t m_trig_phiBin
Definition:
MMTrigPacket.h:35
Muon::nsw::MMTRIG::size_trig_BCID
constexpr int size_trig_BCID
Definition:
NSWMMTPDecodeBitmaps.h:98
Muon::nsw::MMTRIG::size_trig_phiBin
constexpr int size_trig_phiBin
Definition:
NSWMMTPDecodeBitmaps.h:101
Muon::nsw::MMTRIG::size_trig_reserved
constexpr int size_trig_reserved
Definition:
NSWMMTPDecodeBitmaps.h:99
Muon::nsw::MMTRIG::size_trig_globalX
constexpr int size_trig_globalX
Definition:
NSWMMTPDecodeBitmaps.h:96
Muon::nsw::MMTrigPacket::m_trig_BCID
uint32_t m_trig_BCID
Definition:
MMTrigPacket.h:32
Muon::nsw::format
std::string format(const std::string &str, const T &arg)
Definition:
NSWDecodeHelper.h:43
Muon::nsw::MMTrigPacket::m_trig_dTheta
uint32_t m_trig_dTheta
Definition:
MMTrigPacket.h:34
PixelModuleFeMask_create_db.payload
string payload
Definition:
PixelModuleFeMask_create_db.py:69
NSWMMTPDecodeBitmaps.h
Muon::nsw::MMTrigPacket::m_trig_globalX
uint32_t m_trig_globalX
Definition:
MMTrigPacket.h:27
Muon::nsw::MMTRIG::size_trig_dTheta
constexpr int size_trig_dTheta
Definition:
NSWMMTPDecodeBitmaps.h:100
MMTrigPacket.h
Generated on Mon Mar 31 2025 21:15:01 for ATLAS Offline Software by
1.8.18