// $Id: RecordStream.cpp,v 1.1 2008/12/10 18:37:36 marcocle Exp $ #define GAUDISVC_PERSISTENCYSVC_OUTPUTFSRSTREAM_CPP // Framework include files #include "GaudiKernel/AlgFactory.h" #include "GaudiKernel/IRegistry.h" #include "GaudiKernel/IDataManagerSvc.h" #include "GaudiKernel/IDataProviderSvc.h" #include "GaudiKernel/IOpaqueAddress.h" #include "GaudiKernel/DataStoreItem.h" #include "GaudiKernel/DataObject.h" #include "GaudiKernel/MsgStream.h" #include "RecordStream.h" // Define the algorithm factory for the standard output data writer DECLARE_ALGORITHM_FACTORY(RecordStream) // Standard Constructor RecordStream::RecordStream(const std::string& name, ISvcLocator* pSvcLocator) : OutputStream(name, pSvcLocator) { ///in the baseclass, always fire the incidents by default ///in RecordStream this will be set to false, and configurable m_fireIncidents = false; declareProperty("FireIncidents", m_fireIncidents=false); } StatusCode RecordStream::finalize() { 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(); }