28#include "GaudiKernel/MsgStream.h"
29#include "GaudiKernel/SmartDataPtr.h"
37 ISvcLocator *pSvcLocator) :
48 return StatusCode::SUCCESS;
62 MsgStream log(msgSvc(), name());
69 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
90 for(; first != last; ++first) {
94 <<
" energy " << (*first)->energy()
95 <<
" time " << (*first)->time()
96 <<
" quality " << (*first)->quality()
97 <<
" provenance " << (*first)->provenance()
98 << std::setprecision(5)
99 <<
" eta " << (*first)->eta()
100 <<
" phi " << (*first)->phi()
113 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Create a CaloCellContainer with LArCells for POOL I/O tests algs.
Test Algorithm for POOL I/O uses CaloCellContainer for LAr as test data.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Container class for CaloCell.
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
Create a CaloCellContainer with LArCells for POOL I/O tests algs.
CaloCellContainer * createCaloCellContainer(const CaloCell_ID *calocellId, const CaloDetDescrManager *caloMgr, MsgStream &log) const
Create a CaloCellContainer with LAr cells.
LArCellContFakeWriter()
Avoid use of default constructor.
virtual StatusCode execute() override
Algorithm execute once per event.
const CaloCell_ID * m_calocellId
Need id helper to create cells.
virtual StatusCode finalize() override
Algorithm finalize at end of job.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Need DD mgr to create cells.
void printCells(const CaloCellContainer *larCont) const
Print out cell info.
virtual StatusCode initialize() override
Algorithm initialize at begin of job.