This class is the EventSelector and AddressProvider for event data.
More...
#include <AthenaPoolAddressProviderSvc.h>
This class is the EventSelector and AddressProvider for event data.
Definition at line 27 of file AthenaPoolAddressProviderSvc.h.
◆ AthenaPoolAddressProviderSvc()
AthenaPoolAddressProviderSvc::AthenaPoolAddressProviderSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~AthenaPoolAddressProviderSvc()
AthenaPoolAddressProviderSvc::~AthenaPoolAddressProviderSvc |
( |
| ) |
|
|
virtual |
◆ eventStore()
StoreGateSvc * AthenaPoolAddressProviderSvc::eventStore |
( |
| ) |
const |
|
private |
◆ finalize()
StatusCode AthenaPoolAddressProviderSvc::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode AthenaPoolAddressProviderSvc::initialize |
( |
| ) |
|
|
overridevirtual |
◆ loadAddresses()
Get all addresses for this event from provider.
- Parameters
-
storeID | [IN] store ID, this function only preloads event store addresses. |
tads | [OUT] list of the transient addresses which were preloaded. |
Definition at line 93 of file AthenaPoolAddressProviderSvc.cxx.
96 return(StatusCode::SUCCESS);
101 if (dataHeader ==
nullptr) {
103 if (!eventDataHeader.isValid()) {
105 return(StatusCode::FAILURE);
107 dataHeader = eventDataHeader.cptr();
112 std::string tokenStr;
115 tokenStr = (*attrList)[
"eventRef_secondary"].data<std::string>();
116 ATH_MSG_DEBUG(
"found AthenaAttribute, name = eventRef_secondary = " << tokenStr);
119 return (StatusCode::FAILURE);
123 return (StatusCode::FAILURE);
126 if (!
eventStore()->recordAddress(iop).isSuccess()) {
127 ATH_MSG_ERROR(
"Cannot record address to StoreGate with token string: " << tokenStr);
128 return(StatusCode::FAILURE);
132 ATH_MSG_DEBUG(
"The current Event contains: " << dataHeader->
size() <<
" objects");
133 for (
const auto& element : *dataHeader) {
136 delete tadd; tadd =
nullptr;
138 ATH_MSG_DEBUG(
"loadAddresses: DataObject address, clid = " << tadd->
clID() <<
", name = " << tadd->
name());
140 tads.push_back(tadd);
145 return(StatusCode::SUCCESS);
◆ 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 65 of file AthenaPoolAddressProviderSvc.cxx.
68 return(StatusCode::SUCCESS);
74 if (!dataHeader.isValid()) {
75 ATH_MSG_DEBUG(
"Cannot retrieve DataHeader from DetectorStore.");
76 return(StatusCode::SUCCESS);
78 ATH_MSG_DEBUG(
"The current File contains: " << dataHeader->size() <<
" objects");
79 for (
const auto& element : *dataHeader) {
82 delete tadd; tadd =
nullptr;
84 ATH_MSG_DEBUG(
"preLoadAddresses: DataObject address, clid = " << tadd->
clID() <<
", name = " << tadd->
name());
90 return(StatusCode::SUCCESS);
◆ updateAddress()
Update a transient address.
- Parameters
-
storeID | [IN] store ID, this function only preloads event store addresses. |
tad | [IN] transient address to be updated. |
Definition at line 148 of file AthenaPoolAddressProviderSvc.cxx.
151 return(StatusCode::FAILURE);
◆ m_attrListKey
Gaudi::Property<std::string> AthenaPoolAddressProviderSvc::m_attrListKey |
|
private |
Initial value:{this, "AttributeListKey", {},
"Attribute list key of a secondary input file. If non-zero, creates a new IOpaqueAddress for that file and records it."}
Definition at line 64 of file AthenaPoolAddressProviderSvc.h.
◆ m_clidSvc
ServiceHandle<IClassIDSvc> AthenaPoolAddressProviderSvc::m_clidSvc |
|
private |
◆ m_dataHeaderKey
Gaudi::Property<std::string> AthenaPoolAddressProviderSvc::m_dataHeaderKey |
|
private |
◆ m_guid
Guid AthenaPoolAddressProviderSvc::m_guid |
|
private |
◆ m_metaDataStore
The documentation for this class was generated from the following files: