![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
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();
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) {
105 if (
eg->getNumberOfTrackParticles() > 0) {
106 viewCopy->push_back(
eg);
113 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
ToolHandle< IEMConversionBuilder > m_conversionBuilder
Tool to perfrom conversion vertex matching.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterContainerKey
Key for the topo cluster input collection.
Gaudi::Property< bool > m_doTrackMatchedView
private member flag to produce of view of track matched egammaRecs
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
virtual StatusCode initialize() override final
An algorithm that can be simultaneously executed in multiple threads.
egammaRecBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Handle class for recording to StoreGate.
Gaudi::Property< bool > m_doTrackMatching
private member flag to do the track matching
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
ElementLink implementation for ROOT usage.
Helpers for checking error return status codes and reporting errors.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode RetrieveTool(ToolHandle< T > &tool, bool tool_requested)
Wrap tool retrieval, ensuring it was named and requested.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::WriteHandleKey< EgammaRecContainer > m_egammaRecContainerKey
Key for egammaRec container.
Gaudi::Property< bool > m_doConversions
private member flag to do the conversion matching
Handle class for reading from StoreGate.
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track matching.
SG::WriteHandleKey< ConstDataVector< EgammaRecContainer > > m_trackMatchedEgammaRecs
virtual StatusCode execute(const EventContext &ctx) const override final