Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012
Public Member Functions | Protected Member Functions | Protected Attributes

Gaudi::RootPerfMonSvc Class Reference

Description: More...

#include <src/RootPerfMonSvc.h>

Inheritance diagram for Gaudi::RootPerfMonSvc:
Inheritance graph
[legend]
Collaboration diagram for Gaudi::RootPerfMonSvc:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RootPerfMonSvc (const std::string &name, ISvcLocator *svc)
 Standard constructor.
virtual ~RootPerfMonSvc ()
 Standard destructor.
StatusCode error (const std::string &msg)
 Standard way to print errors.
virtual StatusCode initialize ()
 ConversionSvc overload: initialize Db service.
virtual StatusCode finalize ()
 ConversionSvc overload: Finalize Db service.

Protected Member Functions

MsgStreamlog () const
 Helper: Use message streamer.

Protected Attributes

IIncidentSvcm_incidentSvc
 Reference to incident service.
std::string m_ioPerfStats
 Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name.
MsgStreamm_log
 Message streamer.

Detailed Description

Description:

RootPerfMonSvc class implementation definition.

Author:
Markus Frank
Version:
1.0
Date:
20/12/2009

Definition at line 34 of file RootPerfMonSvc.h.


Constructor & Destructor Documentation

Gaudi::RootPerfMonSvc::RootPerfMonSvc ( const std::string name,
ISvcLocator svc 
)

Standard constructor.

RootPerfMonSvc::~RootPerfMonSvc (  ) [virtual]

Standard destructor.

Definition at line 36 of file RootPerfMonSvc.cpp.

                                {
}

Member Function Documentation

StatusCode Gaudi::RootPerfMonSvc::error ( const std::string msg )

Standard way to print errors.

after the printout an exception is thrown.

Parameters:
msg[IN] Message string to be printed.
Returns:
Status code returning failure.
StatusCode RootPerfMonSvc::finalize (  ) [virtual]

ConversionSvc overload: Finalize Db service.

Reimplemented from Service.

Definition at line 63 of file RootPerfMonSvc.cpp.

                                       {
  log() << MSG::INFO;
  deletePtr(m_log);
  releasePtr(m_incidentSvc);
  return Service::finalize();
}
StatusCode RootPerfMonSvc::initialize (  ) [virtual]

ConversionSvc overload: initialize Db service.

Reimplemented from Service.

Definition at line 51 of file RootPerfMonSvc.cpp.

                                       {
  string cname;
  StatusCode status = Service::initialize();
  if ( !status.isSuccess() )
    return error("Failed to initialize Service base class.");
  m_log = new MsgStream(msgSvc(),name());
  if( !(status=service("IncidentSvc", m_incidentSvc)).isSuccess() )
    return error("Unable to localize interface from service:IncidentSvc");
  return S_OK;
}
MsgStream& Gaudi::RootPerfMonSvc::log (  ) const [inline, protected]

Helper: Use message streamer.

Definition at line 45 of file RootPerfMonSvc.h.

{   return *m_log; }

Member Data Documentation

IIncidentSvc* Gaudi::RootPerfMonSvc::m_incidentSvc [protected]

Reference to incident service.

Definition at line 38 of file RootPerfMonSvc.h.

std::string Gaudi::RootPerfMonSvc::m_ioPerfStats [protected]

Property: Enable TTree IOperfStats if not empty; otherwise perf stat file name.

Definition at line 40 of file RootPerfMonSvc.h.

MsgStream* Gaudi::RootPerfMonSvc::m_log [protected]

Message streamer.

Definition at line 42 of file RootPerfMonSvc.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:49 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004