39 (
const std::string&
name, ISvcLocator* pSvcLocator )
41 m_EtTool(
"LVL1::L1EtTools/L1EtTools"),
57 return StatusCode::SUCCESS ;
79 if (jetelements->
size() == 0)
96 return StatusCode::SUCCESS ;
117 std::vector<unsigned int> eX;
118 eX.push_back((*it)->ex());
119 std::vector<unsigned int> eY;
120 eY.push_back((*it)->ey());
121 std::vector<unsigned int> eT;
122 eT.push_back((*it)->et());
130 if (
sc != StatusCode::SUCCESS) {
131 ATH_MSG_ERROR (
"Error registering JEMEtSums collection in TDS " );
146 (*it)->ex(),(*it)->ey(),(*it)->et());
153 if (
sc != StatusCode::SUCCESS) {
154 ATH_MSG_ERROR (
"Error registering EnergyCMXData collection in TDS " );
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
DataModel_detail::iterator< DataVector > iterator
Standard iterator.
size_type size() const noexcept
Returns the number of elements in the collection.
The EnergyCMXData object contains the data transferred from the JEM to the EnergySum CMX in the crate...
SG::WriteHandleKey< DataVector< EnergyCMXData > > m_energyCMXDataOutputKey
void storeJEMEtSums(const EventContext &ctx)
put results into SG
void storeBackplaneData(const EventContext &ctx)
Form EnergyCMXData and put into SG.
SG::WriteHandleKey< DataVector< JEMEtSums > > m_jemEtSumsOutputKey
SG::ReadHandleKey< xAOD::JetElementContainer > m_JetElementInputKey
JEMEnergySim(const std::string &name, ISvcLocator *pSvcLocator)
void cleanup()
delete pointers etc.
DataVector< EnergyCMXData > EnergyCMXDataCollection
ToolHandle< LVL1::IL1EtTools > m_EtTool
StatusCode execute(const EventContext &ctx)
Execute method.
DataVector< JEMEtSums > JEMEtSumsCollection
DataVector< ModuleEnergy > * m_jemContainer
vector of ModuleEnergy objects
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())