| The Gaudi Framework v27r1

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

- File List
- File Members

RecordStream.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 "RecordStream.h"
10
11 // Define the algorithm factory for the standard output data writer
12 DECLARE_COMPONENT(RecordStream)
13
14 // Standard Constructor
15 RecordStream::RecordStream(const std::string& name, ISvcLocator* pSvcLocator)
16 : OutputStream(name, pSvcLocator)
17 {
20 declareProperty("FireIncidents", m_fireIncidents=false);
21 }
22
23 StatusCode RecordStream::finalize() {
24 info() << "Set up File Summary Record" << endmsg;
25 if( !m_fireIncidents && msgLevel(MSG::VERBOSE) )
26 verbose() << "will not fire incidents" << endmsg;
27 StatusCode sc = OutputStream::execute();
28 if( !sc.isSuccess() ) {
29 warning() << "Error writing run summary record....." << endmsg;
30 }
31 return OutputStream::finalize();
32 }
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
OutputStream::finalize
StatusCode finalize() override
Terminate OutputStream.
Definition: OutputStream.cpp:159
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
MsgStream.h
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:124
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:76
CommonMessagingBase::verbose
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
Definition: CommonMessaging.h:130
std
STL namespace.
RecordStream
Extension of OutputStream to write run records after last event.
Definition: RecordStream.h:13
MSG::VERBOSE
Definition: IMessageSvc.h:17
merge_files.sc
int sc
Definition: merge_files.py:167
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:36
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:29
DataStoreItem.h
IDataManagerSvc.h
IDataProviderSvc.h
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition: CommonMessaging.h:121
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IRegistry.h
RecordStream::finalize
StatusCode finalize() override
Algorithm overload: finalization.
Definition: RecordStream.cpp:23
IOpaqueAddress.h
OutputStream::execute
StatusCode execute() override
Working entry point.
Definition: OutputStream.cpp:173
CommonMessagingBase::msgLevel
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
Definition: CommonMessaging.h:136
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
OutputStream::m_fireIncidents
bool m_fireIncidents
should I fire incidents for writing opening/closing etc?
Definition: OutputStream.h:125
DataObject.h
RecordStream.h