23 ISvcLocator* pSvcLocator)
38 return StatusCode::SUCCESS;
45 if (!tool_requested) {
47 return StatusCode::SUCCESS;
51 return StatusCode::FAILURE;
54 return StatusCode::SUCCESS;
73 const size_t nClusters = clusters->size();
74 egammaRecs->reserve(nClusters);
75 for (
size_t i = 0; i < nClusters; ++i) {
78 const std::vector<ElementLink<xAOD::CaloClusterContainer>>
79 clusterLinkVector{ clusterLink };
80 egammaRecs->push_back(std::make_unique<egammaRec>(clusterLinkVector));
90 for (
auto egRec : *egammaRecs) {
104 for (
const egammaRec* eg : *egammaRecs) {
105 if (eg->getNumberOfTrackParticles() > 0) {
106 viewCopy->push_back(eg);
113 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Helpers for checking error return status codes and reporting errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
ElementLink implementation for ROOT usage.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
SG::WriteHandleKey< EgammaRecContainer > m_egammaRecContainerKey
Key for egammaRec container.
Gaudi::Property< bool > m_doTrackMatching
private member flag to do the track matching
StatusCode RetrieveTool(ToolHandle< T > &tool, bool tool_requested)
Wrap tool retrieval, ensuring it was named and requested.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteHandleKey< ConstDataVector< EgammaRecContainer > > m_trackMatchedEgammaRecs
Gaudi::Property< bool > m_doTrackMatchedView
private member flag to produce of view of track matched egammaRecs
egammaRecBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_doConversions
private member flag to do the conversion matching
ToolHandle< IEMConversionBuilder > m_conversionBuilder
Tool to perfrom conversion vertex matching.
virtual StatusCode initialize() override final
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track matching.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterContainerKey
Key for the topo cluster input collection.
Represent an egamma object for internal egamma usage during reconstruction.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts