ATLAS Offline Software
Loading...
Searching...
No Matches
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
24
25#include <string>
26#include <map>
27
28
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
75 { this, "DictLoaderSvc", "AthDictLoaderSvc", "" };
77 { this, "TPCnvSvc", "AthTPCnvSvc", "" };
78
79 std::map<std::string,std::string> m_keyFolderMap;
80};
81
82
83#endif
84
uint32_t CLID
The Class ID type.
Abstract interface to IOVDbSvc to access IOVRange and tag information.
An AttributeList represents a logical row of attributes in a metadata table.
TTypeAdapter RootType
Definition RootType.h:211
An algorithm that can be simultaneously executed in multiple threads.
virtual bool isReEntrant() const override final
virtual StatusCode initialize() override
std::vector< SG::VarHandleKey > m_vhk
CondInputLoader(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< IIOVSvc > m_IOVSvc
ServiceHandle< IDictLoaderSvc > m_dictLoader
Gaudi::Property< bool > m_abort
std::map< std::string, std::string > m_keyFolderMap
virtual StatusCode start() override
ServiceHandle< IClassIDSvc > m_clidSvc
ServiceHandle< IIOVDbSvc > m_IOVDbSvc
ServiceHandle< ICondSvc > m_condSvc
virtual StatusCode finalize() override
DataObjIDColl m_handlesToCreate
ServiceHandle< Athena::IRCUSvc > m_rcuSvc
void extraDeps_update_handler(Gaudi::Details::PropertyBase &)
Gaudi::Property< bool > m_dumpCondSvc
Gaudi::Property< DataObjIDColl > m_load
Containers.
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< bool > m_dumpCondStore
ServiceHandle< ITPCnvSvc > m_tpCnvSvc
RootType loadDict(CLID clid)
ServiceHandle< StoreGateSvc > m_condStore