The Gaudi Framework  master (37c0b60a)
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 
32 
33 #include "EvtDataSvc.h"
34 
35 // Instantiation of a static factory class used by clients to create
36 // instances of this service
38 
41  // Nothing to do: just call base class initialisation
43 
44  // Attach data loader facility
45  m_cnvSvc = serviceLocator()->service( "EventPersistencySvc" );
46  status = setDataLoader( m_cnvSvc );
47  return status;
48 }
51  // Do nothing for this service
52  return StatusCode::SUCCESS;
53 }
56  m_cnvSvc = nullptr; // release
58  return StatusCode::SUCCESS;
59 }
EvtDataSvc::initialize
StatusCode initialize() override
Service initialisation.
Definition: EvtDataSvc.cpp:40
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:186
EvtDataSvc::reinitialize
StatusCode reinitialize() override
Service reinitialisation.
Definition: EvtDataSvc.cpp:50
EvtDataSvc.h
EvtDataSvc::finalize
StatusCode finalize() override
Service finalization.
Definition: EvtDataSvc.cpp:55
StatusCode
Definition: StatusCode.h:65
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
EvtDataSvc
Definition: EvtDataSvc.h:23
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
DataSvc::initialize
StatusCode initialize() override
Service initialization.
Definition: DataSvc.cpp:821
IConversionSvc.h
ISvcLocator.h
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:335
DataSvc::finalize
StatusCode finalize() override
Service initialization.
Definition: DataSvc.cpp:854
EvtDataSvc::m_cnvSvc
SmartIF< IConversionSvc > m_cnvSvc
Definition: EvtDataSvc.h:31