Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
20 #define GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_CPP
36 m_pTupleSvc = serviceLocator()->
service( m_storeName );
38 fatal() <<
"Unable to locate IDataManagerSvc interface" <<
endmsg;
44 for (
const auto& i : m_itemNames ) addItem( i );
45 info() <<
"Data source: " << m_storeName.value() <<
endmsg;
73 auto sep = descriptor.rfind(
"#" );
75 std::string obj_path = descriptor.substr( 0, sep );
76 if ( sep != std::string::npos ) {
77 std::string slevel = descriptor.substr( sep + 1 );
78 if ( slevel ==
"*" ) {
81 level = std::stoi( slevel );
86 info() <<
"Adding OutputStream item " << item->path() <<
" with " << item->depth() <<
" level(s)." <<
endmsg;
SmartIF< IService > service(std::string_view name, const bool createIf=true, const bool quiet=false) const
Return a pointer to the service identified by name (or "type/name")
StatusCode execute() override
Working entry point.
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
void clearItems()
Clear item list.
A small to stream Data I/O.
StatusCode finalize() override
Terminate EvtCollectionStream.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service)
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
constexpr static const auto FAILURE
void addItem(const std::string &descriptor)
Add item to output streamer list.