RunRecordStream.cpp
Go to the documentation of this file.
1 // Framework include files
2 #include "GaudiKernel/IRegistry.h"
3 #include "GaudiKernel/IDataManagerSvc.h"
4 #include "GaudiKernel/IDataProviderSvc.h"
5 #include "GaudiKernel/IOpaqueAddress.h"
6 #include "GaudiKernel/DataStoreItem.h"
7 #include "GaudiKernel/DataObject.h"
8 #include "GaudiKernel/MsgStream.h"
9 #include "RunRecordStream.h"
10 
11 // Define the algorithm factory for the standard output data writer
13 
15  MsgStream log(msgSvc(), name());
16  log << MSG::INFO << "Set up File Summary Record" << endmsg;
18  if( !sc.isSuccess() ) {
19  log << MSG::WARNING << "Error writing run summary record....." << endmsg;
20  }
21  return OutputStream::finalize();
22 }
Definition of the MsgStream class used to transmit messages.
Definition: MsgStream.h:24
StatusCode finalize() override
Terminate OutputStream.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
Extension of OutputStream to write run records after last event.
StatusCode execute() override
Working entry point.