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"
15#include "RawDataCnv/RawDataOutputSvc.h"
22 PropertyMgr m_propMgr;
23 m_propMgr.declareProperty(
"OutputFile", m_outputFile =
"offline.raw");
25 IJobOptionsSvc* jobSvc;
26 Gaudi::svcLocator()->service(
"JobOptionsSvc", jobSvc);
27 jobSvc->setMyProperties(name, &m_propMgr);
29 m_buffer =
new uint32_t[64*1024];
35 MsgStream log(messageService(), name() );
36 log << MSG::DEBUG <<
"RawDataOutputSvc Destructor called " << endreq;
50 return StatusCode::SUCCESS;
56 MsgStream log(messageService(), name() );
61 log << MSG::DEBUG <<
"Opened output File " << m_outputFile << endreq;
63 return StatusCode::SUCCESS;
69 MsgStream log(messageService(), name() );
75 log << MSG::ERROR <<
"failed to copy Event to the buffer !" << endreq;
83 catch (std::exception& ex) {
84 std::cerr <<
"Uncaught std exception: " << ex.what() << std::endl;
88 std::cerr << std::endl <<
"Uncaught unknown exception" << std::endl;
The event conversion service needs an additional interface used by the converters to declare their ob...
RawDataOutputSvc(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode initialize()
virtual StatusCode finalize()
virtual bool putEvent(WriteRawEvent *re)
int writeEvent(const uint32_t *pevt)