diff --git a/Trigger/TrigT1/TrigT1CTP/src/CTPSimulation.cxx b/Trigger/TrigT1/TrigT1CTP/src/CTPSimulation.cxx index bb46ed6e6f6cc94bdc201f4cf23e421f140d0e5e..af8946e185ad32fa8aba566077b9049581726776 100755 --- a/Trigger/TrigT1/TrigT1CTP/src/CTPSimulation.cxx +++ b/Trigger/TrigT1/TrigT1CTP/src/CTPSimulation.cxx @@ -383,14 +383,7 @@ LVL1CTP::CTPSimulation::bookHists() { size_t runNrPos = histstream.find("RUNNR"); if( runNrPos != string::npos ) { - string runnr = "0"; - - const DataHandle< ::EventInfo> evt; - const DataHandle< ::EventInfo> evtEnd; - StatusCode sc = evtStore()->retrieve( evt, evtEnd ); - if( sc.isSuccess() ) { - runnr = boost::lexical_cast<string, unsigned int>(evt->event_ID()->run_number()); - } + string runnr = boost::lexical_cast<string, unsigned int>(Gaudi::Hive::currentContext().eventID().run_number()); histstream.replace(runNrPos, 5, runnr); }