Gaudi Framework, version v23r6
Home
Generated: Wed Jan 30 2013
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiCommonSvc
src
DataSvc
EvtDataSvc.cpp
Go to the documentation of this file.
1
//====================================================================
2
// EvtDataSvc.cpp
3
//--------------------------------------------------------------------
4
//
5
// Package : System ( The LHCb Offline System)
6
//
7
// Description: implementation of the Transient event data service.
8
//
9
// Author : M.Frank
10
// History :
11
// +---------+----------------------------------------------+---------
12
// | Date | Comment | Who
13
// +---------+----------------------------------------------+---------
14
// | 29/10/98| Initial version | MF
15
// +---------+----------------------------------------------+---------
16
//
17
//====================================================================
18
#define DATASVC_EVTDATASVC_CPP
19
20
#include "
GaudiKernel/SvcFactory.h
"
21
#include "
GaudiKernel/ISvcLocator.h
"
22
#include "
GaudiKernel/IConversionSvc.h
"
23
24
#include "
EvtDataSvc.h
"
25
26
// Instantiation of a static factory class used by clients to create
27
// instances of this service
28
DECLARE_SERVICE_FACTORY
(
EvtDataSvc
)
29
30
31
StatusCode
EvtDataSvc
::
initialize
() {
32
// Nothing to do: just call base class initialisation
33
StatusCode
status =
DataSvc::initialize
();
34
ISvcLocator
* svc_loc = serviceLocator();
35
36
// Attach data loader facility
37
m_cnvSvc = svc_loc->
service
(
"EventPersistencySvc"
);
38
status = setDataLoader( m_cnvSvc );
39
return
status;
40
}
42
StatusCode
EvtDataSvc::reinitialize
() {
43
// Do nothing for this service
44
return
StatusCode::SUCCESS
;
45
}
47
StatusCode
EvtDataSvc::finalize
() {
48
m_cnvSvc
= 0;
// release
49
DataSvc::finalize
().
ignore
();
50
return
StatusCode::SUCCESS
;
51
}
52
54
EvtDataSvc::EvtDataSvc
(
const
std::string
& name,
ISvcLocator
* svc):
55
DataSvc
(name,svc) {
56
}
57
59
EvtDataSvc::~EvtDataSvc
() {
60
}
Generated at Wed Jan 30 2013 17:13:38 for Gaudi Framework, version v23r6 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004