The Gaudi Framework  v29r0 (ff2e7097)
RecordStream.cpp
Go to the documentation of this file.
1 // Framework include files
2 #include "RecordStream.h"
10 
11 // Define the algorithm factory for the standard output data writer
13 
14 // Standard Constructor
15 RecordStream::RecordStream( const std::string& name, ISvcLocator* pSvcLocator ) : OutputStream( name, pSvcLocator )
16 {
19  declareProperty( "FireIncidents", m_fireIncidents = false, "if to fire incidents for writing opening/closing etc" );
20 }
21 
23 {
24  info() << "Set up File Summary Record" << endmsg;
25  if ( !m_fireIncidents && msgLevel( MSG::VERBOSE ) ) verbose() << "will not fire incidents" << endmsg;
27  if ( !sc.isSuccess() ) {
28  warning() << "Error writing run summary record....." << endmsg;
29  }
30  return OutputStream::finalize();
31 }
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
StatusCode finalize() override
Terminate OutputStream.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
bool isSuccess() const
Test for a status code of SUCCESS.
Definition: StatusCode.h:75
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
STL namespace.
Extension of OutputStream to write run records after last event.
Definition: RecordStream.h:13
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:33
A small to stream Data I/O.
Definition: OutputStream.h:29
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, TYPE &value, const std::string &doc="none")
Declare a property (templated)
StatusCode finalize() override
Algorithm overload: finalization.
StatusCode execute() override
Working entry point.
MSG::Level msgLevel() const
get the output level from the embedded MsgStream
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209
bool m_fireIncidents
should I fire incidents for writing opening/closing etc? in the baseclass, always fire the incidents ...
Definition: OutputStream.h:69