35 return StatusCode::SUCCESS;
46 ATH_CHECK( tccContainer.
record (std::make_unique<xAOD::FlowElementContainer>(),
47 std::make_unique<xAOD::FlowElementAuxContainer>()) );
56 tccContainer->push_back(tcc);
63 for(
const ToolHandle<ITrackCaloClusterTool> & tool :
m_tccTools){
66 StatusCode
sc=tool->fillTCC(tccContainer.
ptr(), *tccInfo);
70 ATH_MSG_DEBUG(
"executed "<<tool.name() <<
" num object= "<< tccContainer->size() );
73 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Handle class for reading a decoration on an object.
Handle class for adding a decoration to an object.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
SG::WriteHandleKey< xAOD::FlowElementContainer > m_outputTCCHandle
Cluster Collection container.
ToolHandleArray< ITrackCaloClusterTool > m_tccTools
The tools implementting the creation of TCC.
virtual StatusCode initialize() override
SG::ReadHandleKey< TrackCaloClusterInfo > m_tccInfoHandle
TrackCaloClusterInfo used by this alg.
TrackCaloClusterAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute() override
SG::ReadHandleKey< xAOD::FlowElementContainer > m_copiedTCCHandle
FlowElement_v1 FlowElement
Definition of the current "pfo version".