20#include "GaudiKernel/IChronoStatSvc.h"
32#include "CLHEP/Units/SystemOfUnits.h"
34using CLHEP::microsecond;
59 return StatusCode::SUCCESS;
74 std::string chronoName = this->name() +
"_" + tool.name();
79 StatusCode
sc = tool->process(caloCellsOutput.
ptr(), ctx);
83 ATH_MSG_DEBUG(
"Chrono stop : delta " <<
m_chrono->chronoDelta(chronoName, IChronoStatSvc::USER) * (microsecond / second) <<
" second " );
91 return StatusCode::SUCCESS;
96 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Handle class for recording to StoreGate.
Gaudi::Property< bool > m_doChronoStat
SG::OwnershipPolicy m_ownPolicy
SG::WriteHandleKey< CaloCellContainer > m_caloCellsOutputKey
Output cell continer to be used.
virtual StatusCode initialize() override
ServiceHandle< IChronoStatSvc > m_chrono
ChronoStatSvc.
virtual StatusCode finalize() override
Gaudi::Property< bool > m_ownPolicyProp
ToolHandleArray< ICaloCellMakerTool > m_caloCellMakerTools
Array of CellMaker (and corrector) AlgTools.
virtual StatusCode execute(const EventContext &ctx) const override
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
@ OWN_ELEMENTS
this data object owns its elements
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts