10#include "GaudiKernel/MsgStream.h"
11#include "GaudiKernel/Bootstrap.h"
12#include "GaudiKernel/PropertyMgr.h"
13#include "GaudiKernel/ISvcLocator.h"
14#include "GaudiKernel/IJobOptionsSvc.h"
23 PropertyMgr m_propMgr;
24 m_propMgr.declareProperty(
"OutputFile",
m_outputFile =
"offline.raw");
26 IJobOptionsSvc* jobSvc;
27 Gaudi::svcLocator()->service(
"JobOptionsSvc", jobSvc);
28 jobSvc->setMyProperties(name, &m_propMgr);
30 m_buffer =
new uint32_t[64*1024];
36 MsgStream log(messageService(), name() );
37 log << MSG::DEBUG <<
"RawDataOutputSvc Destructor called " << endreq;
51 return StatusCode::SUCCESS;
57 MsgStream log(messageService(), name() );
62 log << MSG::DEBUG <<
"Opened output File " << m_outputFile << endreq;
64 return StatusCode::SUCCESS;
70 MsgStream log(messageService(), name() );
76 log << MSG::ERROR <<
"failed to copy Event to the buffer !" << endreq;
84 catch (std::exception& ex) {
85 std::cerr <<
"Uncaught std exception: " << ex.what() << std::endl;
89 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;
std::ofstream m_outputFile
The event conversion service needs an additional interface used by the converters to declare their ob...
virtual StatusCode initialize()
virtual StatusCode finalize()
virtual bool putEvent(WriteRawEvent *re)
int writeEvent(const uint32_t *pevt)