|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/ThreadLocalContext.h"
36 return StatusCode::SUCCESS;
49 << m_TrkPartContainerKey.key());
50 return StatusCode::FAILURE;
54 ATH_CHECK(lastCache.
record(std::make_unique<CaloExtensionCollection>()));
58 std::vector<bool>
mask(ptrTracks->
size(),
false);
61 for (
const auto*
track : *tracks) {
62 if (
track->pt() < 500) {
72 ATH_CHECK(m_particleCaloExtensionTool->caloExtensionCollection(
73 ctx, *ptrTracks,
mask, *lastCache));
75 return StatusCode::SUCCESS;
ToolHandle< Trk::IParticleCaloExtensionTool > m_particleCaloExtensionTool
the Calo Extension tool
const_pointer_type cptr()
Dereference the pointer.
virtual StatusCode initialize() override final
virtual StatusCode execute(const EventContext &ctx) const override final
Handle class for recording to StoreGate.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrkPartContainerKey
input Track collection and vertex
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::WriteHandleKey< CaloExtensionCollection > m_ParticleCacheKey
output particle calo extension collection
@ TRTStandalone
TRT Standalone.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Handle class for reading from StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.