10 #define GAUDISVC_PERSISTENCYSVC_EVTCOLLECTIONSTREAM_CPP
27 m_storeName =
"TagCollectionSvc";
28 declareProperty(
"ItemList", m_itemNames);
29 declareProperty(
"EvtDataSvc", m_storeName);
39 fatal() <<
"Unable to locate IDataManagerSvc interface" <<
endmsg;
76 auto sep = descriptor.
rfind(
"#");
79 if ( sep != std::string::npos ) {
81 if ( slevel ==
"*" ) {
90 info() <<
"Adding OutputStream item " <<
item->path()
91 <<
" with " <<
item->depth()
StatusCode initialize() override
Initialize EvtCollectionStream.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
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) ...
StatusCode setProperties()
Set the algorithm's properties.
bool isSuccess() const
Test for a status code of SUCCESS.
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
Description of the DataStoreItem class.
#define DECLARE_COMPONENT(type)
std::vector< std::string > m_itemNames
Vector of item names.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
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.
Base class from which all concrete algorithm classes should be derived.
std::string m_storeName
Name of the service managing the data store.
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 & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.