| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
12 DECLARE_COMPONENT(RunRecordStream)
13
14 StatusCode RunRecordStream::finalize() {
15 info() << "Set up File Summary Record" << endmsg;
16 StatusCode sc = OutputStream::execute();
17 if( !sc.isSuccess() ) {
18 warning() << "Error writing run summary record....." << endmsg;
19 }
20 return OutputStream::finalize();
21 }
OutputStream::finalize
StatusCode finalize() override
Terminate OutputStream.
Definition: OutputStream.cpp:128
MsgStream.h
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:74
RunRecordStream.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
DataStoreItem.h
IDataManagerSvc.h
IDataProviderSvc.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
RunRecordStream
Extension of OutputStream to write run records after last event.
Definition: RunRecordStream.h:13
IRegistry.h
IOpaqueAddress.h
OutputStream::execute
StatusCode execute() override
Working entry point.
Definition: OutputStream.cpp:142
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
DataObject.h