13 #include "GaudiKernel/ServiceHandle.h"
14 #include "GaudiKernel/IEvtSelector.h"
15 #include "GaudiKernel/IIncidentSvc.h"
16 #include "GaudiKernel/ToolHandle.h"
56 IIncidentSvc* incsvc = 0;
59 if(
status.isFailure() || incsvc==0)
62 incsvc->addListener(
this,
"BeginEvent", 0);
66 ATH_MSG_ERROR(
"Could not locate the online event displays service");
67 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;
101 std::ostringstream ostri;
104 std::string inputFileName = ostri.str();
105 ATH_MSG_DEBUG(
"copying the input file: '"<< inputFileName <<
"'...");
119 catch(std::runtime_error&
err) {
121 ATH_MSG_WARNING(
"In finalize() -- Unable to produce new VP1 event file");
125 return StatusCode::SUCCESS;
148 unsigned int nLastFile =
m_nEvent - 1;
151 std::ostringstream ostri;
152 ostri <<
m_inputPoolFile <<
"._" << std::setw(4) << std::setfill(
'0') << nLastFile;
154 std::string inputFileName = ostri.str();
155 ATH_MSG_DEBUG(
"copying the input file: '"<< inputFileName <<
"'...");
170 catch(std::runtime_error&
err) {
172 ATH_MSG_WARNING(
"In handle() -- Unable to produce new VP1 event file");
190 const EventContext& context = getContext();
201 localtime_r(&t_timestamp, <m);
205 <<
" - " <<
"Month: "<< 1 + ltm.tm_mon<<
" - "
206 <<
"Day: "<< ltm.tm_mday
207 <<
" - " "Time: "<< ltm.tm_hour <<
":" << ltm.tm_min <<
":" << ltm.tm_sec <<
"CEST"
210 std::ostringstream ostri;
211 ostri << 1900 + ltm.tm_year
212 <<
"-" << 1 + ltm.tm_mon
213 <<
"-" << ltm.tm_mday
214 <<
"T" << ltm.tm_hour <<
"-" << ltm.tm_min <<
"-" << ltm.tm_sec <<
"CEST";