9#include "Identifier/Identifier.h"
20 ISvcLocator* pSvcLocator) :
42 return StatusCode::SUCCESS;
46 return StatusCode::SUCCESS;
64 auto clusteredDigits = std::make_unique<std::bitset<200000> >();
72 for( ;cellIter!=cellIterEnd;cellIter++) {
78 size_t index = (size_t) (idHash);
79 clusteredDigits->set(
index);
85 for (
const LArDigit* dig : *inputContainer) {
88 size_t index = (size_t) (idHash);
89 if (clusteredDigits->test(
index)) outputContainer->push_back(dig);
92 ATH_MSG_DEBUG(
"Copied " << outputContainer->size() <<
" of " << inputContainer->size() <<
" digits.");
94 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector adapter that acts like it holds const pointers.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
An algorithm that can be simultaneously executed in multiple threads.
Data object for each calorimeter readout cell.
DataVector adapter that acts like it holds const pointers.
This is a "hash" representation of an Identifier.
~LArDigitThinnerFromEMClust()
SG::ReadHandleKey< LArDigitContainer > m_inputContainerKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_clusterContainerKey
LArDigitThinnerFromEMClust(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize() override
SG::WriteHandleKey< ConstDataVector< LArDigitContainer > > m_outputContainerKey
const LArOnlineID * m_onlineID
StatusCode finalize() override
StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< LArOnOffIdMapping > m_larCablingKey
Liquid Argon digit base class.
HWIdentifier createSignalChannelID(const Identifier &id) const
create a HWIdentifier from an Identifier (not inline)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
CaloClusterCellLink::const_iterator const_cell_iterator
Iterator of the underlying CaloClusterCellLink (explicitly const version)
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.