Commits

Anonymous committed 86a6122

EventCounter.cxx Prescaler.cxx Sequencer.cxx
Update to use preferred Gaudi 4 service names.

David Quarrie

Comments (0)

Files changed (3)

src/EventCounter.cxx

 StatusCode
 EventCounter::initialize()
 {
-    MsgStream log(messageService(), name());
+    MsgStream log(msgSvc(), name());
     log << MSG::INFO << name( ) << ":EventCounter::initialize - Frequency: " << m_frequency << endreq;
     return StatusCode::SUCCESS;
 }
 StatusCode
 EventCounter::execute()
 {
-     MsgStream log(messageService(), name());
+     MsgStream log(msgSvc(), name());
      m_total++;
      int freq = m_frequency;
      if ( freq > 0 ) {
 StatusCode
 EventCounter::finalize()
 {
-    MsgStream log(messageService(), name());
+    MsgStream log(msgSvc(), name());
     log << MSG::INFO << name( ) << ":EventCounter::finalize - total events: " << m_total << endreq;
     return StatusCode::SUCCESS;
 }

src/Prescaler.cxx

 StatusCode
 Prescaler::initialize()
 {
-    MsgStream log(messageService(), name());
+    MsgStream log(msgSvc(), name());
     log << MSG::INFO << name( ) << ":Prescaler::Initialize - pass: " << m_percentPass << endreq;
     return StatusCode::SUCCESS;
 }
 StatusCode
 Prescaler::execute()
 {
-     MsgStream log(messageService(), name());
+     MsgStream log(msgSvc(), name());
      m_seen++;
      float fraction = (100.0 * (float)(m_pass+1)) / (float)m_seen;
      if ( fraction > m_percentPass ) {
 StatusCode
 Prescaler::finalize()
 {
-    MsgStream log(messageService(), name());
+    MsgStream log(msgSvc(), name());
     log << MSG::INFO << name( ) << ":Prescaler::finalize - total events: "
         << m_seen << ", passed events: " << m_pass << endreq;
     return StatusCode::SUCCESS;

src/Sequencer.cxx

-//$Header: /build/atlas/cvs/atlas/offline/Control/GaudiSequencer/src/Sequencer.cxx,v 1.3 2000-06-07 22:16:24 dquarrie Exp $
+//$Header: /build/atlas/cvs/atlas/offline/Control/GaudiSequencer/src/Sequencer.cxx,v 1.4 2000-07-05 10:16:48 dquarrie Exp $
 
 // Sequencer class
 // Implements:
 Sequencer::initialize()
 {
     StatusCode result = StatusCode::SUCCESS;
-    MsgStream log( messageService( ), name( ) );
+    MsgStream log( msgSvc( ), name( ) );
     IAlgManager* theAlgMgr;
     result = serviceLocator( )->getService( "ApplicationMgr",
                                             IID_IAlgManager,
 Sequencer::execute()
 {
     StatusCode result = StatusCode::SUCCESS;
-    MsgStream log( messageService( ), name( ) );
+    MsgStream log( msgSvc( ), name( ) );
 
     log << MSG::DEBUG << name( ) << " Sequencer::execute( )" << endreq;