| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- 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
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/ISvcLocator.h"
21 #include "GaudiKernel/IConversionSvc.h"
22
23 #include "EvtDataSvc.h"
24
25 // Instantiation of a static factory class used by clients to create
26 // instances of this service
27 DECLARE_COMPONENT(EvtDataSvc)
28
29
30 StatusCode EvtDataSvc::initialize() {
31 // Nothing to do: just call base class initialisation
32 StatusCode status = DataSvc::initialize();
33 ISvcLocator* svc_loc = serviceLocator();
34
35 // Attach data loader facility
36 m_cnvSvc = svc_loc->service("EventPersistencySvc");
37 status = setDataLoader( m_cnvSvc );
38 return status;
39 }
41 StatusCode EvtDataSvc::reinitialize() {
42 // Do nothing for this service
43 return StatusCode::SUCCESS;
44 }
46 StatusCode EvtDataSvc::finalize() {
47 m_cnvSvc = 0; // release
48 DataSvc::finalize().ignore();
49 return StatusCode::SUCCESS ;
50 }
51
53 EvtDataSvc::EvtDataSvc(const std::string& name,ISvcLocator* svc):
54 DataSvc(name,svc) {
55 }
56
58 EvtDataSvc::~EvtDataSvc() {
59 }