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
w
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
Trigger
TrigT1
L1Topo
L1TopoAlgorithms
Root
MuonNoSort.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
// MuonNoSort.cxx
5
// TopoCore
6
// Created by Joerg Stelzer, V Sorin 2014.
7
// algorithm to make sorted muon lists
8
//
9
#include "
L1TopoAlgorithms/MuonNoSort.h
"
10
#include "
L1TopoEvent/TOBArray.h
"
11
#include "
L1TopoEvent/MuonTOBArray.h
"
12
#include "
L1TopoEvent/GenericTOB.h
"
13
#include <algorithm>
14
15
REGISTER_ALG_TCS
(MuonNoSort)
16
17
// constructor
18
TCS
::
MuonNoSort
::
MuonNoSort
(
const
std::
string
&
name
) :
SortingAlg
(
name
) {
19
defineParameter(
"InputWidth"
, 32 );
// for FW
20
defineParameter(
"OutputWidth"
, 6 );
21
}
22
23
24
// destructor
25
TCS::MuonNoSort::~MuonNoSort
() {}
26
27
TCS::StatusCode
28
TCS::MuonNoSort::initialize
() {
29
m_numberOfMuons = parameter(
"InputWidth"
).value();
30
31
return
TCS::StatusCode::SUCCESS
;
32
}
33
34
35
TCS::StatusCode
36
TCS::MuonNoSort::sort
(
const
InputTOBArray
& input,
TOBArray
& output) {
37
38
const
MuonTOBArray
& muons =
dynamic_cast<
const
MuonTOBArray
&
>
(input);
39
40
// fill output array with GenericTOB built from clusters
41
for
(
MuonTOBArray::const_iterator
muon = muons.
begin
(); muon!= muons.
end
(); ++muon ) {
42
43
const
GenericTOB
gtob(**muon);
44
output.push_back( gtob );
45
}
46
47
// keep only max number of clusters
48
if
( m_numberOfMuons > 0) {
49
while
( output.size()> m_numberOfMuons ) {
50
output.pop_back();
51
}
52
}
53
return
TCS::StatusCode::SUCCESS
;
54
}
55
MuonNoSort.h
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::DataArrayImpl< MuonTOB >::const_iterator
data_t::const_iterator const_iterator
Definition:
DataArrayImpl.h:18
TCS::MuonNoSort::sort
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output) override final
Definition:
MuonNoSort.cxx:36
const
bool const RAWDATA *ch2 const
Definition:
LArRodBlockPhysicsV0.cxx:560
TCS::DataArrayImpl::end
iterator end()
Definition:
DataArrayImpl.h:43
TCS::InputTOBArray
Definition:
InputTOBArray.h:15
TCS::MuonTOBArray
Definition:
MuonTOBArray.h:19
TCS::MuonNoSort::initialize
virtual TCS::StatusCode initialize() override
Definition:
MuonNoSort.cxx:28
TOBArray.h
TCS::MuonNoSort::~MuonNoSort
virtual ~MuonNoSort()
Definition:
MuonNoSort.cxx:25
TCS::TOBArray
Definition:
TOBArray.h:24
TCS::GenericTOB
Definition:
GenericTOB.h:35
REGISTER_ALG_TCS
#define REGISTER_ALG_TCS(CLASS)
Definition:
AlgFactory.h:62
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
TCS::SortingAlg
Definition:
SortingAlg.h:18
GenericTOB.h
TCS::DataArrayImpl::begin
iterator begin()
Definition:
DataArrayImpl.h:40
TCS
Definition:
Global/GlobalSimulation/src/IO/Decision.h:18
TCS::MuonNoSort
Definition:
MuonNoSort.h:19
TCS::StatusCode
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
MuonTOBArray.h
Generated on Wed May 7 2025 21:14:44 for ATLAS Offline Software by
1.8.18