ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
IOVSvc
src
CondInputLoader.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// CondInputLoader.h
8
// Header file for class CondInputLoader
10
#ifndef IOVSVC_CONDINPUTLOADER_H
11
#define IOVSVC_CONDINPUTLOADER_H 1
12
13
#include "GaudiKernel/DataObjID.h"
14
#include "GaudiKernel/ICondSvc.h"
15
#include "GaudiKernel/ServiceHandle.h"
16
17
#include "
AthenaKernel/IIOVSvc.h
"
18
#include "
AthenaKernel/IIOVDbSvc.h
"
19
#include "
AthenaKernel/IDictLoaderSvc.h
"
20
#include "
AthenaKernel/ITPCnvSvc.h
"
21
#include "
StoreGate/StoreGateSvc.h
"
22
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
23
#include "
PersistentDataModel/AthenaAttributeList.h
"
24
25
#include <string>
26
#include <map>
27
28
29
class
CondInputLoader
30
:
public
::AthReentrantAlgorithm
31
{
32
33
public
:
34
36
CondInputLoader
(
const
std::string& name, ISvcLocator* pSvcLocator );
37
38
// Athena algorithm's Hooks
39
virtual
StatusCode
initialize
()
override
;
40
virtual
StatusCode
start
()
override
;
41
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
42
virtual
bool
isReEntrant
()
const
override final {
return
false
; }
43
virtual
StatusCode
finalize
()
override
;
44
45
46
private
:
47
48
// need to override the ExtraInputs/Outputs property handler
49
// from AthAlgorithm
50
void
extraDeps_update_handler
(Gaudi::Details::PropertyBase&);
51
52
RootType
loadDict
(
CLID
clid);
53
RootType
loadDict
(
const
std::string& name);
54
56
Gaudi::Property<DataObjIDColl>
m_load
{
this
,
"Load"
,{},
"List of objects to be loaded"
};
57
DataObjIDColl
m_handlesToCreate
;
58
std::vector< SG::VarHandleKey >
m_vhk
;
59
60
Gaudi::Property<bool>
m_dumpCondStore
{
this
,
"DumpCondStore"
,
false
,
61
"dump the ConditionStore at the end execute"
};
62
Gaudi::Property<bool>
m_dumpCondSvc
{
this
,
"DumpCondSvc"
,
false
,
63
"dump the CondSvc at the end execute"
};
64
Gaudi::Property<bool>
m_abort
{
this
,
"AbortIfInitFails"
,
true
,
65
"Abort execution if unable to create the CondCont<T> in first event"
};
66
67
68
ServiceHandle<StoreGateSvc>
m_condStore
;
69
ServiceHandle<ICondSvc>
m_condSvc
;
70
ServiceHandle<IIOVSvc>
m_IOVSvc
;
71
ServiceHandle<IIOVDbSvc>
m_IOVDbSvc
;
72
ServiceHandle<IClassIDSvc>
m_clidSvc
;
73
ServiceHandle<Athena::IRCUSvc>
m_rcuSvc
;
74
ServiceHandle<IDictLoaderSvc>
m_dictLoader
75
{
this
,
"DictLoaderSvc"
,
"AthDictLoaderSvc"
,
""
};
76
ServiceHandle<ITPCnvSvc>
m_tpCnvSvc
77
{
this
,
"TPCnvSvc"
,
"AthTPCnvSvc"
,
""
};
78
79
std::map<std::string,std::string>
m_keyFolderMap
;
80
};
81
82
83
#endif
84
AthReentrantAlgorithm.h
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
IDictLoaderSvc.h
IIOVDbSvc.h
Abstract interface to IOVDbSvc to access IOVRange and tag information.
IIOVSvc.h
ITPCnvSvc.h
AthenaAttributeList.h
An AttributeList represents a logical row of attributes in a metadata table.
RootType
TTypeAdapter RootType
Definition
RootType.h:211
StoreGateSvc.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
CondInputLoader::isReEntrant
virtual bool isReEntrant() const override final
Definition
CondInputLoader.h:42
CondInputLoader::initialize
virtual StatusCode initialize() override
Definition
CondInputLoader.cxx:85
CondInputLoader::m_vhk
std::vector< SG::VarHandleKey > m_vhk
Definition
CondInputLoader.h:58
CondInputLoader::CondInputLoader
CondInputLoader(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
CondInputLoader.cxx:58
CondInputLoader::m_IOVSvc
ServiceHandle< IIOVSvc > m_IOVSvc
Definition
CondInputLoader.h:70
CondInputLoader::m_dictLoader
ServiceHandle< IDictLoaderSvc > m_dictLoader
Definition
CondInputLoader.h:75
CondInputLoader::m_abort
Gaudi::Property< bool > m_abort
Definition
CondInputLoader.h:64
CondInputLoader::m_keyFolderMap
std::map< std::string, std::string > m_keyFolderMap
Definition
CondInputLoader.h:79
CondInputLoader::start
virtual StatusCode start() override
Definition
CondInputLoader.cxx:237
CondInputLoader::m_clidSvc
ServiceHandle< IClassIDSvc > m_clidSvc
Definition
CondInputLoader.h:72
CondInputLoader::m_IOVDbSvc
ServiceHandle< IIOVDbSvc > m_IOVDbSvc
Definition
CondInputLoader.h:71
CondInputLoader::m_condSvc
ServiceHandle< ICondSvc > m_condSvc
Definition
CondInputLoader.h:69
CondInputLoader::finalize
virtual StatusCode finalize() override
Definition
CondInputLoader.cxx:227
CondInputLoader::m_handlesToCreate
DataObjIDColl m_handlesToCreate
Definition
CondInputLoader.h:57
CondInputLoader::m_rcuSvc
ServiceHandle< Athena::IRCUSvc > m_rcuSvc
Definition
CondInputLoader.h:73
CondInputLoader::extraDeps_update_handler
void extraDeps_update_handler(Gaudi::Details::PropertyBase &)
Definition
CondInputLoader.cxx:391
CondInputLoader::m_dumpCondSvc
Gaudi::Property< bool > m_dumpCondSvc
Definition
CondInputLoader.h:62
CondInputLoader::m_load
Gaudi::Property< DataObjIDColl > m_load
Containers.
Definition
CondInputLoader.h:56
CondInputLoader::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
CondInputLoader.cxx:308
CondInputLoader::m_dumpCondStore
Gaudi::Property< bool > m_dumpCondStore
Definition
CondInputLoader.h:60
CondInputLoader::m_tpCnvSvc
ServiceHandle< ITPCnvSvc > m_tpCnvSvc
Definition
CondInputLoader.h:77
CondInputLoader::loadDict
RootType loadDict(CLID clid)
Definition
CondInputLoader.cxx:414
CondInputLoader::m_condStore
ServiceHandle< StoreGateSvc > m_condStore
Definition
CondInputLoader.h:68
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Generated on
for ATLAS Offline Software by
1.17.0