| # Gaudi Framework, version v21r11 |

Home |  | Generated: 30 Sep 2010

# 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.

    00054                                                             :
    00055   DataSvc(name,svc) {
    00056 }

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

Standard Destructor.

Definition at line 59 of file EvtDataSvc.cpp.

    00059                         {
    00060 }

## Member Function Documentation

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

Service initialisation.

Reimplemented from DataSvc.

Definition at line 31 of file EvtDataSvc.cpp.

    00031                                      {
    00032   // Nothing to do: just call base class initialisation
    00033   StatusCode      status  = DataSvc::initialize();
    00034   ISvcLocator*    svc_loc = serviceLocator();
    00035
    00036   // Attach data loader facility
    00037   m_cnvSvc = svc_loc->service("EventPersistencySvc");
    00038   status = setDataLoader( m_cnvSvc );
    00039   return status;
    00040 }

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

Service reinitialisation.

Reimplemented from DataSvc.

Definition at line 42 of file EvtDataSvc.cpp.

    00042                                        {
    00043   // Do nothing for this service
    00044   return StatusCode::SUCCESS;
    00045 }

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

Service finalization.

Reimplemented from DataSvc.

Definition at line 47 of file EvtDataSvc.cpp.

    00047                                    {
    00048   m_cnvSvc = 0; // release
    00049   DataSvc::finalize().ignore();
    00050   return StatusCode::SUCCESS ;
    00051 }

## 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_v21r11/GaudiSvc/src/DataSvc/EvtDataSvc.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r11/GaudiSvc/src/DataSvc/EvtDataSvc.cpp