 |
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include "GaudiKernel/ClassID.h"
21 #include "GaudiKernel/StatusCode.h"
33 base_class(
name, pSvcLocator),
45 return(StatusCode::FAILURE);
60 return(StatusCode::SUCCESS);
68 return(StatusCode::SUCCESS);
74 return(StatusCode::SUCCESS);
81 std::unique_ptr<PoolCollectionConverter> poolCollectionConverter =
getCollectionCnv();
82 if (!poolCollectionConverter) {
83 return StatusCode::FAILURE;
88 for (
int verNumber = 0; verNumber < 100; verNumber++) {
89 if (!headerIterator->
next()) {
91 poolCollectionConverter.reset();
96 if (!poolCollectionConverter) {
97 return(StatusCode::FAILURE);
100 headerIterator = &poolCollectionConverter->
selectAll();
101 if (!headerIterator->
next()) {
102 return(StatusCode::FAILURE);
109 auto token = std::make_unique<Token>();
112 if (!detectorStoreSvc->recordAddress(tokenAddr).isSuccess()) {
115 return(StatusCode::FAILURE);
118 std::list<SG::ObjectWithVersion<DataHeader> > allVersions;
119 if (!detectorStoreSvc->retrieveAllVersions(allVersions,
name()).isSuccess()) {
120 ATH_MSG_DEBUG(
"Cannot retrieve DataHeader from DetectorStore.");
121 return(StatusCode::SUCCESS);
124 iter != allVersions.end(); ++
iter) {
126 ATH_MSG_DEBUG(
"The current File contains: " << dataHeader->
size() <<
" objects");
127 for (
const auto& element : *dataHeader) {
130 delete tadd; tadd = 0;
132 ATH_MSG_DEBUG(
"preLoadAddresses: DataObject address, clid = " << tadd->
clID() <<
", name = " << tadd->
name());
133 tads.push_back(tadd);
138 return(StatusCode::SUCCESS);
143 return(StatusCode::SUCCESS);
148 const EventContext& ) {
149 return(StatusCode::FAILURE);
158 if (!pCollCnv->initialize().isSuccess()) {
std::unique_ptr< PoolCollectionConverter > getCollectionCnv()
Return pointer to new PoolCollectionConverter.
JetConstituentVector::iterator iterator
virtual StatusCode preLoadAddresses(StoreID::type storeID, IAddressProvider::tadList &tads) override
Get all addresses from provider.
Helper functions for registering hash keys with the SG service.
This class provides the interface to the LCG POOL persistency software.
This file contains the class definition for the PoolCollectionConverter class.
pool::ICollectionCursor & selectAll()
virtual StatusCode updateAddress(StoreID::type storeID, SG::TransientAddress *tad, const EventContext &ctx) override
Update a transient address.
virtual bool next()=0
Advances the cursor to the next row of the query result set.
This file contains the class definition for the CondProxyProvider class.
This class provides a Generic Transient Address for POOL tokens.
const std::string & name() const
Get the primary (hashed) SG key.
void registerKeys(const DataHeaderElement &dhe, StoreGateSvc *store)
Register all hash keys for one DH Element.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode loadAddresses(StoreID::type storeID, IAddressProvider::tadList &tads) override
Implementation of the loadAddresses function without any functionality.
a StoreGateSvc key with a version number. Notice that StoreGate does not order multiple instances of ...
CLID clID() const
Retrieve string key:
Default, invalid implementation of ClassID_traits.
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
virtual StatusCode initialize() override
Required of all Gaudi Services.
static constexpr const char * DataHeader
virtual const std::string toString() const
Retrieve the string representation of the token.
This file contains the class definition for the IPoolSvc interface class.
This file contains the class definition for the TokenAddress class.
StatusCode disconnectDb()
Disconnect Database.
virtual StatusCode finalize() override
Required of all Gaudi Services.
#define ATH_MSG_WARNING(x)
virtual ~CondProxyProvider()
Destructor.
StringArrayProperty m_inputCollectionsProp
InputCollections, vector with names of the input collections.
std::list< SG::TransientAddress * > tadList
CondProxyProvider(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
virtual const Token & eventRef() const =0
Returns the event reference Token for the current row.
associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retriev...
std::vector< std::string >::const_iterator m_inputCollectionsIterator