14#include "GaudiKernel/ThreadLocalContext.h"
36 return StatusCode::SUCCESS;
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) {
69 mask[track->index()] =
true;
73 ctx, *ptrTracks, mask, *lastCache));
75 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrkPartContainerKey
input Track collection and vertex
virtual StatusCode initialize() override final
virtual StatusCode execute(const EventContext &ctx) const override final
ToolHandle< Trk::IParticleCaloExtensionTool > m_particleCaloExtensionTool
the Calo Extension tool
SG::WriteHandleKey< CaloExtensionCollection > m_ParticleCacheKey
output particle calo extension collection
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
@ TRTStandalone
TRT Standalone.