29 ISvcLocator *pSvcLocator) :
40 return StatusCode::SUCCESS;
55 <<
"' retrieved from StoreGate" );
60 MsgStream log(msgSvc(), name());
74 for(; first != last && first1 != last1; ++first, ++first1) {
75 if (((*first)->ID() != (*first1)->ID()) ||
76 (fabs((*first)->energy() - (*first1)->energy() ) > 0.01*fabs((*first)->energy())) ||
77 (fabs((*first)->time() - (*first1)->time() ) > 0.0002*fabs((*first)->time())) ||
78 (std::abs((*first)->quality() - (*first1)->quality() ) > 0) ||
79 (std::abs((*first)->provenance() - (*first1)->provenance() ) > 0) ||
80 (fabs((*first)->eta() - (*first1)->eta() ) > 0.0000001) ||
81 (fabs((*first)->phi() - (*first1)->phi() ) > 0.0000001)) {
85 <<
" energy " << (*first)->energy() <<
" "
86 << (*first1)->energy()
87 <<
" time " << (*first)->time() <<
" "
89 <<
" quality " << (*first)->quality() <<
" "
90 << (*first1)->quality()
91 <<
" provenance " << (*first)->provenance() <<
" "
92 << (*first1)->provenance()
93 <<
" eta " << (*first)->eta() <<
" "
95 <<
" phi " << (*first)->phi() <<
" "
107 return StatusCode::FAILURE;
110 ATH_MSG_INFO(
"Successful check of CaloCellContainer I/O. Cells read: " << ncells );
113 return StatusCode::SUCCESS;
127 for(; first != last; ++first) {
131 << std::setprecision(5)
132 <<
" energy " << (*first)->energy()
133 <<
" time " << (*first)->time()
134 <<
" quality " << (*first)->quality()
135 <<
" provenance " << (*first)->provenance()
136 <<
" eta " << (*first)->eta()
137 <<
" phi " << (*first)->phi()
151 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 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.
virtual StatusCode finalize() override
Algorithm finalize at end of job.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Need DD mgr to create cells.
virtual StatusCode execute() override
Algorithm execute once per event.
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
const CaloCell_ID * m_calocellId
Need id helper to create cells.
LArCellContFakeReader()
Avoid use of default constructor.
void printCells(const CaloCellContainer *larCont) const
Print out cell info.