| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Attributes | Friends

# EvtDataSvc Class Reference

A EvtDataSvc is the base class for event services. More...

`#include <EvtDataSvc.h>`

Inheritance diagram for EvtDataSvc:
[legend]
Collaboration diagram for EvtDataSvc:
[legend]

List of all members.

## Public Member Functions
virtual StatusCode | initialize ()
| Service initialisation.
virtual StatusCode | reinitialize ()
| Service reinitialisation.
virtual StatusCode | finalize ()
| Service finalization.
| EvtDataSvc (const std::string &name, ISvcLocator *svc)
| Standard Constructor.
virtual | ~EvtDataSvc ()
| Standard Destructor.
## Private Attributes
SmartIF< IConversionSvc > | m_cnvSvc
## Friends
class | SvcFactory< EvtDataSvc >

## Detailed Description

A EvtDataSvc is the base class for event services.

Author:
  M.Frank

Definition at line 15 of file EvtDataSvc.h.

## Constructor & Destructor Documentation

EvtDataSvc::EvtDataSvc | ( | const std::string & | name,
|  | ISvcLocator * | svc
| ) |  |

Standard Constructor.

Definition at line 54 of file EvtDataSvc.cpp.

                                                                :
      DataSvc(name,svc) {
    }

EvtDataSvc::~EvtDataSvc | ( | ) | `[virtual]`

Standard Destructor.

Definition at line 59 of file EvtDataSvc.cpp.

                            {
    }

## Member Function Documentation

StatusCode EvtDataSvc::finalize | ( | void | ) | `[virtual]`

Service finalization.

Reimplemented from DataSvc.

Definition at line 47 of file EvtDataSvc.cpp.

                                       {
      m_cnvSvc = 0; // release
      DataSvc::finalize().ignore();
      return StatusCode::SUCCESS ;
    }

StatusCode EvtDataSvc::initialize | ( | void | ) | `[virtual]`

Service initialisation.

Reimplemented from DataSvc.

Definition at line 31 of file EvtDataSvc.cpp.

                                         {
      // Nothing to do: just call base class initialisation
      StatusCode      status  = DataSvc::initialize();
      ISvcLocator*    svc_loc = serviceLocator();

      // Attach data loader facility
      m_cnvSvc = svc_loc->service("EventPersistencySvc");
      status = setDataLoader( m_cnvSvc );
      return status;
    }

StatusCode EvtDataSvc::reinitialize | ( | ) | `[virtual]`

Service reinitialisation.

Reimplemented from DataSvc.

Definition at line 42 of file EvtDataSvc.cpp.

                                           {
      // Do nothing for this service
      return StatusCode::SUCCESS;
    }

## Friends And Related Function Documentation

friend class SvcFactory< EvtDataSvc >`[friend]`

Definition at line 16 of file EvtDataSvc.h.

## Member Data Documentation

SmartIF<IConversionSvc> EvtDataSvc::m_cnvSvc`[private]`

Definition at line 29 of file EvtDataSvc.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiSvc/src/DataSvc/EvtDataSvc.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiSvc/src/DataSvc/EvtDataSvc.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines