45 MsgStream log(
msgSvc(), name());
46 log << MSG::INFO <<
"in execute()" << endreq;
50 SmartDataPtr<Event::EventHeader> eventHeader(eventSvc(),
"/Event/EventHeader");
52 log << MSG::FATAL <<
"Could not find Event Header" << endreq;
53 return( StatusCode::FAILURE);
56 int eventId = eventHeader->eventNumber() ;
57 int runId = eventHeader->runNumber();
58 log << MSG::INFO <<
"DstHltMaker: retrieved event: " <<
" Event Number "<< eventId <<
" run: " <<runId << endreq;
60 StatusCode sc = StatusCode::SUCCESS ;
68 SmartDataPtr<HltInf> recHltInf(eventSvc(),
"/Event/Hlt/HltInf");
71 log << MSG::DEBUG <<
"Could not find HltInf" << endreq;
77 dstHltInf->
setVersion(recHltInf->getVersion());
79 dstHltInf->
setNumber(recHltInf->getNumber());
80 dstHltInf->
setNCON(recHltInf->getNCON());
83 DataObject *aDstHltInfEvent;
84 eventSvc()->findObject(
"/Event/Hlt/DstHltInf", aDstHltInfEvent);
85 if(aDstHltInfEvent!=
NULL) {
86 SmartDataPtr<DstHltInf> hltInf(eventSvc(),
"/Event/Hlt/DstHltInf");
87 log<<MSG::DEBUG<<
"old type="<<hltInf->getEventType()<<
", alg="<<hltInf->getAlgProcess()
88 <<
", criteria="<<hltInf->getCriteriaTable()<<
", version="<<hltInf->getVersion()
89 <<
", energy="<<hltInf->getTotalEnergy()<<endreq;
91 sc = eventSvc()->unregisterObject(
"/Event/Hlt/DstHltInf");
92 delete aDstHltInfEvent;
93 log << MSG::INFO <<
"Old DstHltInf has been unregistered" << endreq;
94 if(sc!=StatusCode::SUCCESS) {
95 log << MSG::FATAL <<
"Could not unregister DstHltInf" << endreq;
96 return( StatusCode::FAILURE);
101 log << MSG::DEBUG <<
"Event No."<<eventId<<
" = "