ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoAlgorithms
Root
jXENoSort.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
// jXENoSort.cxx
5
6
#include "
L1TopoAlgorithms/jXENoSort.h
"
7
#include "
L1TopoCommon/Exception.h
"
8
#include "
L1TopoEvent/TOBArray.h
"
9
#include "
L1TopoEvent/jXETOBArray.h
"
10
#include "
L1TopoEvent/GenericTOB.h
"
11
#include <algorithm>
12
13
REGISTER_ALG_TCS
(jXENoSort)
14
15
16
// constructor
17
TCS
::
jXENoSort
::
jXENoSort
(
const
std
::
string
&
name
) :
SortingAlg
(
name
) {
18
19
defineParameter
(
"InputWidth"
, 2 );
// for FW
20
defineParameter
(
"OutputWidth"
, 2 );
// for FW
21
defineParameter
(
"NumRegisters"
, 2);
// for FW
22
23
}
24
25
// destructor
26
TCS::jXENoSort::~jXENoSort
() {}
27
28
TCS::StatusCode
29
TCS::jXENoSort::initialize
() {
30
return
TCS::StatusCode::SUCCESS
;
31
}
32
33
TCS::StatusCode
34
TCS::jXENoSort::sort
(
const
InputTOBArray
& input,
TOBArray
& output) {
35
36
if
(input.size()!=1) {
37
TCS_EXCEPTION
(
"jXE sort alg expects exactly single jXE TOB, got "
<< input.size());
38
}
39
40
const
jXETOBArray
& jxes =
dynamic_cast<
const
jXETOBArray
&
>
(input);
41
42
for
(
jXETOBArray::const_iterator
jxe = jxes.
begin
(); jxe!= jxes.
end
(); ++jxe ) {
43
output.push_back(
GenericTOB
(**jxe) );
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< jXETOB >::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::jXENoSort::initialize
virtual StatusCode initialize()
Definition
jXENoSort.cxx:29
TCS::jXENoSort::~jXENoSort
virtual ~jXENoSort()
Definition
jXENoSort.cxx:26
TCS::jXENoSort::sort
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output)
Definition
jXENoSort.cxx:34
TCS::jXENoSort::jXENoSort
jXENoSort(const std::string &name)
Definition
jXENoSort.cxx:17
TCS::jXETOBArray
Definition
jXETOBArray.h:14
jXENoSort.h
jXETOBArray.h
const
TCS
Definition
AnomalyDetectionBDT.h:18
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0