ATLAS Offline Software
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
}
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::DataArrayImpl< jTETOB >::const_iterator
data_t::const_iterator const_iterator
Definition:
DataArrayImpl.h:18
const
bool const RAWDATA *ch2 const
Definition:
LArRodBlockPhysicsV0.cxx:560
TCS::DataArrayImpl::end
iterator end()
Definition:
DataArrayImpl.h:43
TCS::jTETOBArray
Definition:
jTETOBArray.h:14
TCS::jTENoSort::sort
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output)
Definition:
jTENoSort.cxx:34
TCS::InputTOBArray
Definition:
InputTOBArray.h:15
TOBArray.h
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
TCS::TOBArray
Definition:
TOBArray.h:24
TCS::GenericTOB
Definition:
GenericTOB.h:35
REGISTER_ALG_TCS
#define REGISTER_ALG_TCS(CLASS)
Definition:
AlgFactory.h:62
jTENoSort.h
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::jTENoSort
Definition:
jTENoSort.h:18
TCS
Definition:
Global/GlobalSimulation/src/IO/Decision.h:18
TCS::jTENoSort::initialize
virtual StatusCode initialize()
Definition:
jTENoSort.cxx:29
jTETOBArray.h
Exception.h
TCS::jTENoSort::~jTENoSort
virtual ~jTENoSort()
Definition:
jTENoSort.cxx:26
TCS::StatusCode
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
Generated on Mon Sep 1 2025 21:13:07 for ATLAS Offline Software by
1.8.18