#include <RawDataOutputSvc.h>
◆ RawDataOutputSvc() [1/2]
RawDataOutputSvc::RawDataOutputSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
Definition at line 18 of file RawDataOutputSvc.cxx.
20 m_fw(0)
21{
22 PropertyMgr m_propMgr;
23 m_propMgr.declareProperty("OutputFile", m_outputFile = "offline.raw");
24
25 IJobOptionsSvc* jobSvc;
26 Gaudi::svcLocator()->service("JobOptionsSvc", jobSvc);
27 jobSvc->setMyProperties(name, &m_propMgr);
28
29 m_buffer = new uint32_t[64*1024];
30}
The event conversion service needs an additional interface used by the converters to declare their ob...
◆ ~RawDataOutputSvc() [1/2]
RawDataOutputSvc::~RawDataOutputSvc |
( |
void |
| ) |
|
Definition at line 33 of file RawDataOutputSvc.cxx.
34{
35 MsgStream log(messageService(), name() );
36 log << MSG::DEBUG << "RawDataOutputSvc Destructor called " << endreq;
37
38 delete [] m_buffer;
39}
◆ RawDataOutputSvc() [2/2]
RawDataOutputSvc::RawDataOutputSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svcloc |
|
) |
| |
◆ ~RawDataOutputSvc() [2/2]
RawDataOutputSvc::~RawDataOutputSvc |
( |
void |
| ) |
|
◆ finalize() [1/2]
StatusCode RawDataOutputSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 42 of file RawDataOutputSvc.cxx.
43{
44
45 if ( m_fw ) {
46 delete m_fw;
47 m_fw = 0;
48 }
49
50 return StatusCode::SUCCESS;
51}
◆ finalize() [2/2]
virtual StatusCode RawDataOutputSvc::finalize |
( |
| ) |
|
|
virtual |
◆ initialize() [1/2]
StatusCode RawDataOutputSvc::initialize |
( |
| ) |
|
|
virtual |
Reimplemented from IRawDataOutputSvc.
Definition at line 54 of file RawDataOutputSvc.cxx.
55{
56 MsgStream log(messageService(), name() );
57
58
60
61 log << MSG::DEBUG << "Opened output File " << m_outputFile << endreq;
62
63 return StatusCode::SUCCESS;
64}
◆ initialize() [2/2]
virtual StatusCode RawDataOutputSvc::initialize |
( |
| ) |
|
|
virtual |
◆ putEvent() [1/2]
Implements IRawDataOutputSvc.
Definition at line 67 of file RawDataOutputSvc.cxx.
68{
69 MsgStream log(messageService(), name() );
70
71
72
75 log << MSG::ERROR << "failed to copy Event to the buffer !" << endreq;
76 return false;
77 }
78
79 try {
81 evt.check_tree();
82 }
83 catch (std::exception& ex) {
84 std::cerr << "Uncaught std exception: " << ex.what() << std::endl;
85 std::exit(1);
86 }
87 catch (...) {
88 std::cerr << std::endl << "Uncaught unknown exception" << std::endl;
89 std::exit(1);
90 }
91
93
94 return true;
95}
int writeEvent(const uint32_t *pevt)
◆ putEvent() [2/2]
The documentation for this class was generated from the following files: