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