10 #define GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_CPP 29 m_pTupleSvc = serviceLocator()->service( m_storeName );
31 fatal() <<
"Unable to locate IDataManagerSvc interface" <<
endmsg;
37 for (
const auto& i : m_itemNames ) addItem( i );
38 info() <<
"Data source: " << m_storeName.value() <<
endmsg;
69 auto sep = descriptor.
rfind(
"#" );
72 if ( sep != std::string::npos ) {
74 if ( slevel ==
"*" ) {
82 info() <<
"Adding OutputStream item " << item->path() <<
" with " << item->depth() <<
" level(s)." <<
endmsg;
constexpr static const auto FAILURE
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service) ...
Description of the DataStoreItem class.
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
virtual StatusCode writeRecord(NTuple::Tuple *tuple)=0
Write single record to N tuple.
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
constexpr static const auto SUCCESS
void clearItems()
Clear item list.
void addItem(const std::string &descriptor)
Add item to output streamer list.
StatusCode finalize() override
Terminate EvtCollectionStream.
StatusCode execute() override
Working entry point.
A small to stream Data I/O.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.