Skip to content
Snippets Groups Projects
Commit 2dec8c10 authored by Walter Lampl's avatar Walter Lampl
Browse files

remove explicilty locking of CellContainer (done by WriteHandle anyway)....

remove explicilty locking of CellContainer (done by WriteHandle anyway). Retrieve CaloCell_ID helper in initialize instead of event loop
parent 54084920
No related merge requests found
......@@ -59,6 +59,8 @@ CaloCellContainerFinalizerTool::CaloCellContainerFinalizerTool(
StatusCode CaloCellContainerFinalizerTool::initialize()
{
ATH_CHECK(detStore()->retrieve(m_theCaloCCIDM,"CaloCell_ID"));
return StatusCode::SUCCESS;
}
......@@ -66,10 +68,7 @@ template <class CONTAINER>
StatusCode CaloCellContainerFinalizerTool::doProcess(CONTAINER* theCont )
{
// check whether has max hash id size
const CaloDetDescrManager * theCaloDDM = CaloDetDescrManager::instance() ;
const CaloCell_ID * theCaloCCIDM = theCaloDDM->getCaloCell_ID() ;
unsigned int hashMax=theCaloCCIDM->calo_cell_hash_max();
const unsigned int hashMax=m_theCaloCCIDM->calo_cell_hash_max();
if (theCont->size()<hashMax) {
ATH_MSG_DEBUG("CaloCellContainer size " << theCont->size() << " smaller than hashMax: " << hashMax);
}
......@@ -150,9 +149,7 @@ StatusCode
CaloCellContainerFinalizerTool::process(CaloCellContainer * theCont )
{
CHECK( doProcess (theCont) );
ATH_MSG_DEBUG("Now lock the container");
return evtStore()->setConst (theCont);
return StatusCode::SUCCESS;
}
......
......@@ -13,6 +13,8 @@
#include "CaloInterface/ICaloCellMakerTool.h"
#include "CaloInterface/ICaloConstCellMakerTool.h"
class CaloCell_ID;
class CaloCellContainerFinalizerTool
: public AthAlgTool,
virtual public ICaloCellMakerTool,
......@@ -33,6 +35,8 @@ public:
private:
template <class CONTAINER>
StatusCode doProcess (CONTAINER* theCellContainer);
const CaloCell_ID* m_theCaloCCIDM;
};
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment