31 return StatusCode::SUCCESS;
37 const EventContext& ctx = Gaudi::Hive::currentContext();
43 ATH_MSG_ERROR(
"SetupEvent: Failed to create CaloCellContainerBuilder.");
44 return StatusCode::FAILURE;
49 ATH_MSG_ERROR(
"SetupEvent: Failed to process calo cell container with the empty cell builder tool.");
50 return StatusCode::FAILURE;
53 return StatusCode::SUCCESS;
59 const EventContext& ctx = Gaudi::Hive::currentContext();
62 std::unique_ptr<CaloCellContainerBuilder> builder =
64 if (!builder || !builder->container) {
65 ATH_MSG_ERROR(
"Gather: Failed to retrieve CaloCellContainerBuilder.");
66 return StatusCode::FAILURE;
70 builder->container->updateCaloIterators();
74 ATH_MSG_ERROR(
"Gather: Failed to process calo cell container with the fast hit convert tool.");
75 return StatusCode::FAILURE;
79 ATH_CHECK(handle.record(std::move(builder->container)));
80 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for recording to StoreGate.
Event-owned holder for the FastCaloSim CaloCellContainer.
Small wrapper around hit collection map to facilitate accessing the hit collection.
T * Find(std::string const &hitCollectionName)
Get the hit collection for a given SDs.
std::unique_ptr< T > Extract(std::string const &hitCollectionName)
Extract the hit collection for a given SDs downcasted to the template parameter.
std::pair< StorageIterator, bool > Emplace(std::string const &hitCollectionName, CollectionArgs &&... args)
Insert a container in the map with in-place construction.
virtual StatusCode Gather() override
End of an athena event.
virtual StatusCode SetupEvent() override
Beginning of an athena event.
Gaudi::Property< std::vector< std::string > > m_outputCollectionNames
Names of all output collections written out by this SD.
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.