34 return StatusCode::SUCCESS ;
55 auto vectorOfCPMTs = std::make_unique<CPMTCollection>();
56 auto cpmtAuxVector = std::make_unique<CPMTAuxCollection>();
57 vectorOfCPMTs->setStore(cpmtAuxVector.get());
63 m_CPMTowerTool->makeCPMTowers(vectorOfTTs.get(), vectorOfCPMTs.get(),
true);
64 ATH_MSG_DEBUG( vectorOfCPMTs->size()<<
" CPMTowers have been generated") ;
67 ATH_MSG_DEBUG (
"Formed " << vectorOfCPMTs->size() <<
" CPM Towers " ) ;
70 for (itCPMT = vectorOfCPMTs->begin(); itCPMT != vectorOfCPMTs->end(); ++itCPMT)
71 ATH_MSG_DEBUG(
"CPMT has coords (" << (*itCPMT)->eta() <<
", "<< (*itCPMT)->phi() <<
") and energies : "
72 << (*itCPMT)->emEnergy() <<
", "<< (*itCPMT)->hadEnergy() <<
" (Em,Had)" );
74 ATH_CHECK(CPMTs.record(std::move(vectorOfCPMTs), std::move(cpmtAuxVector)));
76 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
bool msgLvl(const MSG::Level lvl) const
DataModel_detail::const_iterator< DataVector > const_iterator
SG::WriteHandleKey< CPMTCollection > m_cpmTowerKey
Run2CPMTowerMaker(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize()
the initialise() method is called at the start of processing, so we set up any histograms etc.
ToolHandle< LVL1::IL1CPMTowerTools > m_CPMTowerTool
SG::ReadHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerKey
locations within the TES to store collections of JEs
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())