5#include "GaudiKernel/StatusCode.h"
18 ISvcLocator* pSvcLocator)
31 return StatusCode::SUCCESS;
40 return StatusCode::SUCCESS;
45 if (bcm_compact_DO.
record(std::make_unique<BCM_RDO_Container>()).isFailure()) {
47 return StatusCode::FAILURE;
54 std::unique_ptr<BCM_RDO_Collection> my_collection(std::make_unique<BCM_RDO_Collection>() );
58 int bcm_pulse1width = RDO_element->getPulse1Width();
59 int bcm_pulse2width = RDO_element->getPulse2Width();
60 if ((bcm_pulse1width != 0) || (bcm_pulse2width !=0)) {
61 my_collection->push_back((
new BCM_RawData(*RDO_element)));
66 if (!my_collection->empty()) {
68 bcm_compact_DO->push_back(my_collection.release());
73 return StatusCode::SUCCESS;
77 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
An algorithm that can be simultaneously executed in multiple threads.
StatusCode finalize() override
StatusCode execute(const EventContext &ctx) const override
SG::WriteHandleKey< BCM_RDO_Container > m_bcmOutputName
BCM_ZeroSuppression(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< BCM_RDO_Container > m_bcmContainerName
A data member to contain the name of the BCM RDO that contains the input BCM information.
StatusCode initialize() override
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.