20#define GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_CPP
38 fatal() <<
"Unable to locate IDataManagerSvc interface" <<
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;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Description of the DataStoreItem class.
A small to stream Data I/O.
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
StatusCode execute() override
Working entry point.
StatusCode finalize() override
Terminate EvtCollectionStream.
StatusCode initialize() override
Initialize EvtCollectionStream.
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service)
void addItem(const std::string &descriptor)
Add item to output streamer list.
Gaudi::Property< std::vector< std::string > > m_itemNames
Gaudi::Property< std::string > m_storeName
void clearItems()
Clear item list.
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE