ATLAS Offline Software
Loading...
Searching...
No Matches
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
11#include <algorithm>
12
13REGISTER_ALG_TCS(jTENoSort)
14
15
16// constructor
18
19 defineParameter( "InputWidth", 1 ); // for FW
20 defineParameter( "OutputWidth", 1 ); // for FW
21 defineParameter( "NumRegisters", 1); // for FW
22
23}
24
25// destructor
27
32
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
47
48}
#define REGISTER_ALG_TCS(CLASS)
Definition AlgFactory.h:62
const std::string & name() const
void defineParameter(const std::string &name, TCS::parType_t value)
data_t::const_iterator const_iterator
SortingAlg(const std::string &name)
Definition SortingAlg.h:21
virtual ~jTENoSort()
Definition jTENoSort.cxx:26
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output)
Definition jTENoSort.cxx:34
virtual StatusCode initialize()
Definition jTENoSort.cxx:29
jTENoSort(const std::string &name)
Definition jTENoSort.cxx:17
STL namespace.