Go to the documentation of this file.
19 #include <fmt/format.h>
26 :
Producer(
name, pSvcLocator, KeyValue(
"InputFileLeavesLocation",
"/Event/InputFileLeaves" ) ) {}
34 return Producer::finalize();
42 "Name of the data service to use" };
53 return Producer::initialize().
andThen( [&]() {
83 if ( origin.empty() ) {
85 origin = reg->address()->par()[0];
90 DataObject* obj = reg->object();
93 ->retrieveObject( reg->identifier(), obj )
95 failure_msg = fmt::format(
"failed to retrieve {} from {}",
96 reg->identifier(), m_dataSvcName.value() );
99 throw GaudiException( failure_msg, name(), StatusCode::FAILURE );
112 .orThrow( failure_msg,
name() );
Gaudi::Property< std::string > m_dataSvcName
virtual const std::string * par() const =0
Retrieve String parameters.
StatusCode andThen(F &&f, ARGS &&... args) const
Chain code blocks making the execution conditional a success result.
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
FetchLeavesFromFile(const std::string &name, ISvcLocator *pSvcLocator)
IDataStoreLeaves::LeavesList i_collectLeaves() const
details::Producer< Signature, Traits_, details::isLegacy< Traits_ > > Producer
const ValueType & value() const
StatusCode finalize() override
Gaudi::Property< std::string > m_rootNode
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
IDataStoreLeaves::LeavesList operator()() const override
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
virtual const id_type & identifier() const =0
Full identifier (or key)
constexpr static const auto FAILURE
StatusCode initialize() override
virtual IDataProviderSvc * dataSvc() const =0
Retrieve pointer to Transient Store.
SmartIF< IDataManagerSvc > m_dataMgrSvc