11 #include "GaudiKernel/ListItem.h"
23 ISvcLocator* pSvcLocator)
25 , m_outputFrequency(1)
47 IToolSvc* toolSvcPtr = 0;
48 ATH_CHECK( service(
"ToolSvc",toolSvcPtr) );
63 ListItem writerAlgoTool(toolName);
66 StatusCode checkOut = toolSvcPtr->retrieveTool(writerAlgoTool.type(),
67 writerAlgoTool.name(),
71 if ( checkOut.isFailure() )
74 (
"failed to pick up tool of type \042"
75 << writerAlgoTool.type()
77 << writerAlgoTool.name()
80 return StatusCode::FAILURE;
97 return StatusCode::FAILURE;
108 return StatusCode::SUCCESS;
117 const EventContext& ctx = Gaudi::Hive::currentContext();
130 return StatusCode::SUCCESS;
145 std::ostringstream thisFileName;
147 << std::setw(6) << std::setfill(
'0')
148 << ctx.eventID().run_number() <<
"." << std::setfill(
'0')
150 << ctx.eventID().event_number() <<
".xml" << std::ends;
152 std::ofstream thisFileStream((thisFileName.str()).c_str());
162 if ( checkOut.isFailure() )
174 thisFileStream.close();
176 return StatusCode::SUCCESS;
182 return StatusCode::SUCCESS;