|
ATLAS Offline Software
|
Go to the documentation of this file.
29 ISvcLocator *pSvcLocator) :
40 return StatusCode::SUCCESS;
55 <<
"' retrieved from StoreGate" );
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;
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;
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
void printCells(const CaloCellContainer *larCont) const
Print out cell info.
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
CaloCellContainer * createCaloCellContainer(const CaloCell_ID *calocellId, const CaloDetDescrManager *caloMgr, MsgStream &log) const
Create a CaloCellContainer with LAr cells.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute() override
Algorithm execute once per event.
virtual StatusCode finalize() override
Algorithm finalize at end of job.
Create a CaloCellContainer with LArCells for POOL I/O tests algs.
Test Algorithm for POOL I/O uses CaloCellContainer as test data.
Create a CaloCellContainer with LArCells for POOL I/O tests algs.
StatusCode initialize(bool used=true)
Container class for CaloCell.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Need DD mgr to create cells.
LArCellContFakeReader()
Avoid use of default constructor.
const CaloCell_ID * m_calocellId
Need id helper to create cells.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.