49 MsgStream log(
msgSvc(), name());
50 log << MSG::INFO <<
"in execute()" << endreq;
54 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
55 int runNum=eventHeader->runNumber();
56 int eventNum=eventHeader->eventNumber();
58 if(runNum != prevRun) {
63 if((m_period != 0)&&(numEvents % m_period == 0)) {
65 std::cout <<
" RunEventNumberAlg: Run, event, time = "
66 << runNum <<
", " << eventNum <<
", " << asctime(localtime(&
rawtime));
69 return StatusCode::SUCCESS;