This class is the AddressProvider for conditions data.
More...
#include <CondProxyProvider.h>
This class is the AddressProvider for conditions data.
Definition at line 30 of file CondProxyProvider.h.
◆ CondProxyProvider()
CondProxyProvider::CondProxyProvider |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Standard Service Constructor.
Definition at line 31 of file CondProxyProvider.cxx.
32 base_class(
name, pSvcLocator),
34 m_poolCollectionConverter(0),
◆ ~CondProxyProvider()
CondProxyProvider::~CondProxyProvider |
( |
| ) |
|
|
virtual |
◆ finalize()
StatusCode CondProxyProvider::finalize |
( |
| ) |
|
|
overridevirtual |
Required of all Gaudi Services.
Definition at line 69 of file CondProxyProvider.cxx.
70 if (m_poolCollectionConverter != 0) {
71 m_poolCollectionConverter->disconnectDb().ignore();
72 delete m_poolCollectionConverter; m_poolCollectionConverter = 0;
78 return(StatusCode::SUCCESS);
◆ getCollectionCnv()
◆ initialize()
StatusCode CondProxyProvider::initialize |
( |
| ) |
|
|
overridevirtual |
Required of all Gaudi Services.
Definition at line 42 of file CondProxyProvider.cxx.
46 return(StatusCode::FAILURE);
63 if (m_poolCollectionConverter == 0) {
64 return(StatusCode::FAILURE);
66 return(StatusCode::SUCCESS);
◆ loadAddresses()
◆ preLoadAddresses()
Get all addresses from provider.
Called before begin event.
- Parameters
-
storeID | [IN] store ID, this function only preloads detector store addresses. |
tads | [OUT] list of the transient addresses which were preloaded. |
Definition at line 81 of file CondProxyProvider.cxx.
84 return(StatusCode::SUCCESS);
90 if (m_poolCollectionConverter ==
nullptr) {
91 return StatusCode::FAILURE;
96 for (
int verNumber = 0; verNumber < 100; verNumber++) {
97 if (!headerIterator->
next()) {
98 m_poolCollectionConverter->disconnectDb().ignore();
99 delete m_poolCollectionConverter; m_poolCollectionConverter = 0;
100 ++m_inputCollectionsIterator;
104 if (m_poolCollectionConverter == 0) {
105 return(StatusCode::FAILURE);
108 headerIterator = &m_poolCollectionConverter->executeQuery();
109 if (!headerIterator->
next()) {
110 return(StatusCode::FAILURE);
120 if (!detectorStoreSvc->recordAddress(tokenAddr).isSuccess()) {
122 return(StatusCode::FAILURE);
125 std::list<SG::ObjectWithVersion<DataHeader> > allVersions;
126 if (!detectorStoreSvc->retrieveAllVersions(allVersions,
name()).isSuccess()) {
127 ATH_MSG_DEBUG(
"Cannot retrieve DataHeader from DetectorStore.");
128 return(StatusCode::SUCCESS);
131 iter != allVersions.end(); ++iter) {
133 ATH_MSG_DEBUG(
"The current File contains: " << dataHeader->
size() <<
" objects");
134 for (
const auto& element : *dataHeader) {
137 delete tadd; tadd = 0;
139 ATH_MSG_DEBUG(
"preLoadAddresses: DataObject address, clid = " << tadd->
clID() <<
", name = " << tadd->
name());
140 tads.push_back(tadd);
146 return(StatusCode::SUCCESS);
◆ updateAddress()
Update a transient address.
- Parameters
-
storeID | [IN] store ID, this function only preloads detector store addresses. |
tad | [IN] transient address to be updated. |
Definition at line 154 of file CondProxyProvider.cxx.
157 return(StatusCode::FAILURE);
◆ ATLAS_THREAD_SAFE [1/2]
◆ ATLAS_THREAD_SAFE [2/2]
std::vector<std::string>::const_iterator m_inputCollectionsIterator CondProxyProvider::ATLAS_THREAD_SAFE |
|
mutableprivate |
◆ m_athenaPoolCnvSvc
◆ m_contextId
unsigned int CondProxyProvider::m_contextId |
|
private |
◆ m_inputCollectionsProp
StringArrayProperty CondProxyProvider::m_inputCollectionsProp { this, "InputCollections", {}, "Files to read", "OrderedSet<std::string>" } |
|
private |
InputCollections, vector with names of the input collections.
Definition at line 64 of file CondProxyProvider.h.
The documentation for this class was generated from the following files: