| The Gaudi Framework v32r1 (f65d50dc)

RecordStream.cpp
Go to the documentation of this file.
1 // Framework include files
2 #include "RecordStream.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( RecordStream )
13
14 // Standard Constructor
15 RecordStream::RecordStream( const std::string& name, ISvcLocator* pSvcLocator ) : OutputStream( name, pSvcLocator ) {
18 declareProperty( "FireIncidents", m_fireIncidents = false, "if to fire incidents for writing opening/closing etc" );
19 }
20
21 StatusCode RecordStream::finalize() {
22 info() << "Set up File Summary Record" << endmsg;
23 if ( !m_fireIncidents && msgLevel( MSG::VERBOSE ) ) verbose() << "will not fire incidents" << endmsg;
24 StatusCode sc = OutputStream::execute();
25 if ( !sc.isSuccess() ) { warning() << "Error writing run summary record....." << endmsg; }
26 return OutputStream::finalize();
27 }
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:123
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
MsgStream.h
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition: CommonMessaging.h:101
std
STL namespace.
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:104
RecordStream
Extension of OutputStream to write run records after last event.
Definition: RecordStream.h:13
MSG::VERBOSE
Definition: IMessageSvc.h:15
CommonMessaging< implements< IAlgorithm, IDataHandleHolder, IProperty, IStateful > >::msgLevel
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
Definition: CommonMessaging.h:138
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:28
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
DataStoreItem.h
IDataManagerSvc.h
IDataProviderSvc.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
CommonMessagingBase::verbose
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
Definition: CommonMessaging.h:110
IRegistry.h
RecordStream::finalize
StatusCode finalize() override
Algorithm overload: finalization.
Definition: RecordStream.cpp:21
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:267
IOpaqueAddress.h
OutputStream::execute
StatusCode execute() override
Working entry point.
Definition: OutputStream.cpp:136
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192
OutputStream::m_fireIncidents
bool m_fireIncidents
should I fire incidents for writing opening/closing etc? in the baseclass, always fire the incidents ...
Definition: OutputStream.h:83
DataObject.h
RecordStream.h