| The Gaudi Framework v28r2p1 (f1a77ff4)

- 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, "if to fire incidents for writing opening/closing etc" );
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:128
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
MsgStream.h
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:123
StatusCode::isSuccess
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:74
CommonMessagingBase::verbose
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
Definition: CommonMessaging.h:129
std
STL namespace.
RecordStream
Extension of OutputStream to write run records after last event.
Definition: RecordStream.h:13
MSG::VERBOSE
Definition: IMessageSvc.h:17
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:120
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
declareProperty
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, TYPE &value, const std::string &doc="none")
Declare a property (templated)
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:142
CommonMessagingBase::msgLevel
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
Definition: CommonMessaging.h:135
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? in the baseclass, always fire the incidents ...
Definition: OutputStream.h:69
DataObject.h
RecordStream.h