|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "GaudiKernel/ThreadLocalContext.h"
35 const EventContext& ctx = Gaudi::Hive::currentContext();
40 std::vector<bool> masks;
41 masks.assign( sourceCont->size(),
false);
43 for(
const auto*
part: *viewCont){
44 masks[
part->index() ] =
true;
47 sourceCont.
keep (masks);
48 return StatusCode::SUCCESS;
66 return StatusCode::SUCCESS;
71 return StatusCode::SUCCESS;
90 return StatusCode::SUCCESS;
SG::ThinningHandleKey< xAOD::TruthParticleContainer > m_truthParticleKey
HandleKey object for adding thinning to an object.
Handle for requesting thinning for a data object.
Property holding a SG store/key/clid from which a ReadHandle is made.
bool empty() const
Test if the key is blank.
Handle for requesting thinning for a data object.
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_trackParticleKey
void keep(size_t ndx)
Mark that index ndx in the container should be kept (not thinned away).
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleViewKey
::StatusCode StatusCode
StatusCode definition for legacy code.
StringProperty m_streamName
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_caloClusterKey
virtual StatusCode finalize() override
StatusCode doThinningT(const SG::ThinningHandleKey< T > &key, const SG::ReadHandleKey< T > &viewKey) const
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleViewKey
virtual StatusCode initialize() override
virtual StatusCode doThinning() const override
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloClusterViewKey
Handle class for reading from StoreGate.