ATLAS Offline Software
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 
8 #include "L1TopoEvent/TOBArray.h"
10 #include "L1TopoEvent/GenericTOB.h"
11 #include <algorithm>
12 
13 REGISTER_ALG_TCS(jXENoSort)
14 
15 
16 // constructor
18 
19  defineParameter( "InputWidth", 2 ); // for FW
20  defineParameter( "OutputWidth", 2 ); // for FW
21  defineParameter( "NumRegisters", 2); // for FW
22 
23 }
24 
25 // destructor
27 
31 }
32 
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 
47 
48 }
jXENoSort.h
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::jXENoSort::initialize
virtual StatusCode initialize()
Definition: jXENoSort.cxx:29
jXETOBArray.h
TCS::DataArrayImpl< jXETOB >::const_iterator
data_t::const_iterator const_iterator
Definition: DataArrayImpl.h:18
TCS::jXENoSort::sort
virtual TCS::StatusCode sort(const InputTOBArray &input, TOBArray &output)
Definition: jXENoSort.cxx:34
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
TCS::DataArrayImpl::end
iterator end()
Definition: DataArrayImpl.h:43
TCS::jXENoSort::~jXENoSort
virtual ~jXENoSort()
Definition: jXENoSort.cxx:26
TCS::InputTOBArray
Definition: InputTOBArray.h:15
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
TCS::jXETOBArray
Definition: L1Topo/L1TopoEvent/L1TopoEvent/jXETOBArray.h:14
TOBArray.h
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
TCS::TOBArray
Definition: TOBArray.h:24
merge.output
output
Definition: merge.py:17
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:228
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
Exception.h
TCS::StatusCode
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
TCS::jXENoSort
Definition: jXENoSort.h:18