13 ISvcLocator* pSvcLocator)
26 return StatusCode::SUCCESS;
32 std::array<std::string, kNStat>{
37 return StatusCode::SUCCESS;
50 return StatusCode::FAILURE;
54 ATH_CHECK(clusterContainer.
record(std::make_unique<xAOD::HGTDClusterContainer>(),
55 std::make_unique<xAOD::HGTDClusterAuxContainer>()));
57 for (
const auto rdoCollection : *rdoContainer) {
58 if (rdoCollection->empty()) {
61 m_stat[
kNRdo] += rdoCollection->size();
65 m_stat[
kNClusters] += clusterContainer->size();
66 ATH_MSG_DEBUG(
"Clusters produced size: "<<clusterContainer->size());
67 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Header file to be included by clients of the Monitored infrastructure.
TableUtils::StatTable< T > makeTable(const std::array< T, N > &counter, const std::array< std::string, N > &label)
SG::WriteHandleKey< xAOD::HGTDClusterContainer > m_clusterContainerKey
SG::ReadHandleKey< HGTD_RDO_Container > m_rdoContainerKey
virtual StatusCode execute(const EventContext &ctx) const override
HgtdClusterizationAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override
ToolHandle< IHGTDClusteringTool > m_clusteringTool
virtual StatusCode initialize() override
ToolHandle< GenericMonitoringTool > m_monTool
An algorithm that can be simultaneously executed in multiple threads.
Group of local monitoring quantities and retain correlation when filling histograms
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())