The Gaudi Framework
master (a36dfcab)
Toggle main menu visibility
Loading...
Searching...
No Matches
EvtDataSvc.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
//====================================================================
12
// EvtDataSvc.cpp
13
//--------------------------------------------------------------------
14
//
15
// Package : System ( The LHCb Offline System)
16
//
17
// Description: implementation of the Transient event data service.
18
//
19
// Author : M.Frank
20
// History :
21
// +---------+----------------------------------------------+---------
22
// | Date | Comment | Who
23
// +---------+----------------------------------------------+---------
24
// | 29/10/98| Initial version | MF
25
// +---------+----------------------------------------------+---------
26
//
27
//====================================================================
28
#define DATASVC_EVTDATASVC_CPP
29
30
#include <
GaudiKernel/IConversionSvc.h
>
31
#include <
GaudiKernel/ISvcLocator.h
>
32
33
#include "
EvtDataSvc.h
"
34
35
// Instantiation of a static factory class used by clients to create
36
// instances of this service
37
DECLARE_COMPONENT
(
EvtDataSvc
)
38
39
40
StatusCode
EvtDataSvc
::
initialize
() {
41
// Nothing to do: just call base class initialisation
42
StatusCode
status =
DataSvc::initialize
();
43
44
// Attach data loader facility
45
m_cnvSvc
=
serviceLocator
()->service(
"EventPersistencySvc"
);
46
status =
setDataLoader
(
m_cnvSvc
);
47
return
status;
48
}
49
50
StatusCode
EvtDataSvc::reinitialize
() {
51
// Do nothing for this service
52
return
StatusCode::SUCCESS
;
53
}
54
55
StatusCode
EvtDataSvc::finalize
() {
56
m_cnvSvc
=
nullptr
;
// release
57
DataSvc::finalize
().
ignore
();
58
return
StatusCode::SUCCESS
;
59
}
EvtDataSvc.h
IConversionSvc.h
ISvcLocator.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition
PluginServiceV1.h:45
DataSvc::finalize
StatusCode finalize() override
Service initialization.
Definition
DataSvc.cpp:828
DataSvc::setDataLoader
StatusCode setDataLoader(IConversionSvc *svc, IDataProviderSvc *dpsvc=nullptr) override
IDataManagerSvc: IDataManagerSvc: Pass a default data loader to the service and optionally a data pro...
Definition
DataSvc.cpp:160
DataSvc::initialize
StatusCode initialize() override
Service initialization.
Definition
DataSvc.cpp:795
EvtDataSvc
A EvtDataSvc is the base class for event services.
Definition
EvtDataSvc.h:22
EvtDataSvc::m_cnvSvc
SmartIF< IConversionSvc > m_cnvSvc
Definition
EvtDataSvc.h:30
EvtDataSvc::reinitialize
StatusCode reinitialize() override
Service reinitialisation.
Definition
EvtDataSvc.cpp:50
EvtDataSvc::finalize
StatusCode finalize() override
Service finalization.
Definition
EvtDataSvc.cpp:55
EvtDataSvc::initialize
StatusCode initialize() override
Service initialisation.
Definition
EvtDataSvc.cpp:40
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition
Service.cpp:336
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::ignore
void ignore() const
Allow discarding a StatusCode without warning.
Definition
StatusCode.h:128
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition
StatusCode.h:99
GaudiCommonSvc
src
DataSvc
EvtDataSvc.cpp
Generated on
for The Gaudi Framework by
1.17.0