| # Gaudi Framework, version v23r0 |

Home |  | Generated: Mon Jan 30 2012

Public Member Functions

# RecordStream Class Reference

Extension of OutputStream to write run records after last event. More...

`#include <RecordStream.h>`

Inheritance diagram for RecordStream:
[legend]
Collaboration diagram for RecordStream:
[legend]

List of all members.

## Public Member Functions
| RecordStream (const std::string &, ISvcLocator *)
| Standard algorithm Constructor.
virtual | ~RecordStream ()
| Standard Destructor.
virtual StatusCode | finalize ()
| Algorithm overload: finalization.
virtual StatusCode | execute ()
| Runrecords do not get written for each event: Event processing hence dummy....

## Detailed Description

Extension of OutputStream to write run records after last event.

Author:
  M.Frank

Version:
  1.0

Definition at line 14 of file RecordStream.h.

## Constructor & Destructor Documentation

RecordStream::RecordStream | ( | const std::string & | name,
|  | ISvcLocator * | pSvcLocator
| ) |  |

Standard algorithm Constructor.

in the baseclass, always fire the incidents by default in RecordStream this will be set to false, and configurable

Definition at line 19 of file RecordStream.cpp.

     : OutputStream(name, pSvcLocator)
    {
      m_fireIncidents  = false;
      declareProperty("FireIncidents",      m_fireIncidents=false);
    }

virtual RecordStream::~RecordStream | ( | ) | `[inline, virtual]`

Standard Destructor.

Definition at line 19 of file RecordStream.h.

    {}

## Member Function Documentation

virtual StatusCode RecordStream::execute | ( | ) | `[inline, virtual]`

Runrecords do not get written for each event: Event processing hence dummy....

Reimplemented from OutputStream.

Definition at line 23 of file RecordStream.h.

    {  return StatusCode::SUCCESS; }

StatusCode RecordStream::finalize | ( | ) | `[virtual]`

Algorithm overload: finalization.

Reimplemented from OutputStream.

Definition at line 28 of file RecordStream.cpp.

                                      {
      MsgStream log(msgSvc(), name());
      log << MSG::INFO << "Set up File Summary Record" << endmsg;
      if(!m_fireIncidents) log << MSG::VERBOSE << "will not fire incidents" << endmsg;
      StatusCode sc = OutputStream::execute();
      if( !sc.isSuccess() )  {
        log << MSG::WARNING << "Error writing run summary record....." << endmsg;
      }
      return OutputStream::finalize();
    }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiCommonSvc/src/PersistencySvc/RecordStream.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r0/GaudiCommonSvc/src/PersistencySvc/RecordStream.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines