1. binet
  2. mana-core-gaudisequencer

Commits

dqua...@4525493e-7705-40b1-a816-d608a930855b  committed 86a6122

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

David Quarrie

  • Participants
  • Parent commits 796faea
  • Branches default

Comments (0)

Files changed (3)

File src/EventCounter.cxx

View file
 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;
 }

File src/Prescaler.cxx

View file
 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;

File src/Sequencer.cxx

View file
-//$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;