ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoAlgorithms
Root
jTENoSort.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
// jTENoSort.cxx
5
6
#include "
L1TopoAlgorithms/jTENoSort.h
"
7
#include "
L1TopoCommon/Exception.h
"
8
#include "
L1TopoEvent/TOBArray.h
"
9
#include "
L1TopoEvent/jTETOBArray.h
"
10
#include "
L1TopoEvent/GenericTOB.h
"
11
#include <algorithm>
12
13
REGISTER_ALG_TCS
(jTENoSort)
14
15
16
// constructor
17
TCS
::
jTENoSort
::
jTENoSort
(
const
std
::
string
&
name
) :
SortingAlg
(
name
) {
18
19
defineParameter
(
"InputWidth"
, 1 );
// for FW
20
defineParameter
(
"OutputWidth"
, 1 );
// for FW
21
defineParameter
(
"NumRegisters"
, 1);
// for FW
22
23
}
24
25
// destructor
26
TCS::jTENoSort::~jTENoSort
() {}
27
28
TCS::StatusCode
29
TCS::jTENoSort::initialize
() {
30
return
TCS::StatusCode::SUCCESS
;
31
}
32
33
TCS::StatusCode
34
TCS::jTENoSort::sort
(
const
InputTOBArray
& input,
TOBArray
& output) {
35
36
if
(input.size()!=1) {
37
TCS_EXCEPTION
(
"jTE sort alg expects exactly single jTE TOB, got "
<< input.size());
38
}
39
40
const
jTETOBArray
& jtes =
dynamic_cast<
const
jTETOBArray
&
>
(input);
41
42
for
(
jTETOBArray::const_iterator
jte = jtes.
begin
(); jte!= jtes.
end
(); ++jte ) {
43
output.push_back(
GenericTOB
(**jte) );
44
}
45
46
return
TCS::StatusCode::SUCCESS
;
47
48
}
REGISTER_ALG_TCS
#define REGISTER_ALG_TCS(CLASS)
Definition
AlgFactory.h:62
GenericTOB.h
TOBArray.h
Exception.h
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:15
TCS::ConfigurableAlg::name
const std::string & name() const
Definition
ConfigurableAlg.h:49
TCS::ConfigurableAlg::defineParameter
void defineParameter(std::string_view name, TCS::parType_t value)
Definition
ConfigurableAlg.cxx:203
TCS::DataArrayImpl::begin
iterator begin()
Definition
DataArrayImpl.h:40
TCS::DataArrayImpl< jTETOB >::const_iterator
data_t::const_iterator const_iterator
Definition
DataArrayImpl.h:18
TCS::DataArrayImpl::end
iterator end()
Definition
DataArrayImpl.h:43
TCS::GenericTOB
Definition
GenericTOB.h:35
TCS::InputTOBArray
Definition
InputTOBArray.h:15
TCS::SortingAlg::SortingAlg
SortingAlg(const std::string &name)
Definition
SortingAlg.h:21
TCS::StatusCode
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::TOBArray
Definition
TOBArray.h:24
TCS::jTENoSort::~jTENoSort
virtual ~jTENoSort()
Definition
jTENoSort.cxx:26
TCS::jTENoSort::sort
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output)
Definition
jTENoSort.cxx:34
TCS::jTENoSort::initialize
virtual StatusCode initialize()
Definition
jTENoSort.cxx:29
TCS::jTENoSort::jTENoSort
jTENoSort(const std::string &name)
Definition
jTENoSort.cxx:17
TCS::jTETOBArray
Definition
jTETOBArray.h:14
jTENoSort.h
jTETOBArray.h
const
TCS
Definition
AnomalyDetectionBDT.h:18
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0