| The Gaudi Framework v29r0 (ff2e7097)

- 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 "RunRecordStream.h"
3 #include "GaudiKernel/DataObject.h"
4 #include "GaudiKernel/DataStoreItem.h"
5 #include "GaudiKernel/IDataManagerSvc.h"
6 #include "GaudiKernel/IDataProviderSvc.h"
7 #include "GaudiKernel/IOpaqueAddress.h"
8 #include "GaudiKernel/IRegistry.h"
9 #include "GaudiKernel/MsgStream.h"
10
11 // Define the algorithm factory for the standard output data writer
12 DECLARE_COMPONENT( RunRecordStream )
13
14 StatusCode RunRecordStream::finalize()
15 {
16 info() << "Set up File Summary Record" << endmsg;
17 StatusCode sc = OutputStream::execute();
18 if ( !sc.isSuccess() ) {
19 warning() << "Error writing run summary record....." << endmsg;
20 }
21 return OutputStream::finalize();
22 }
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:75
RunRecordStream.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:33
DataStoreItem.h
IDataManagerSvc.h
IDataProviderSvc.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
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:209
DataObject.h