40{
41 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{
m_caloMgrKey,ctx};
43 const CaloDetDescrManager* caloMgr = *caloMgrHandle;
44
46
47 unsigned int index = 0;
49 if (msgLvl(MSG::VERBOSE)) {
50 for (itrCell=theCont->begin();itrCell!=theCont->end();++itrCell){
51 const CaloDetDescrElement * theDDE=(*itrCell)->caloDDE();
54 <<
" eta " << theDDE->
eta()
55 <<
" phi " << theDDE->
phi()
56 << "e " << (*itrCell)->e() );
58 }
59 }
60
61
62
63
64 ATH_MSG_DEBUG (
" Now check all cells give meaningfull answer " );
65 ATH_MSG_DEBUG (
" Size of original container: "<<theCont->size() );
66 for (
unsigned int theHash=0;theHash<
m_hashMax;++theHash){
67 const CaloCell * theCell = theCont->findCell(IdentifierHash(theHash)) ;
68 CaloCell *nCell;
69 if(!theCell) {
73 const CaloDetDescrElement* cDDE = caloMgr->
get_element(cellid);
74 if(!cDDE) continue;
77 }
78 else {
80 }
82 theCont->push_back(nCell);
83 }
84 }
85
86 theCont->order();
87
88 return returnSc ;
89}
#define ATH_MSG_VERBOSE(x)
IdentifierHash calo_hash() const
cell calo hash
float eta() const
cell eta
float phi() const
cell phi
bool is_lar_hec() const
cell belongs to HEC
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
DataModel_detail::const_iterator< DataVector > const_iterator
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
::StatusCode StatusCode
StatusCode definition for legacy code.