18 const std::string&
type,
19 const std::string& name,
20 const IInterface* parent)
21 : base_class(
type, name, parent)
42 return StatusCode::SUCCESS;
52 std::vector<std::unique_ptr<ByteStreamMetadata> > copy;
53 std::set<std::string> transGuids;
56 for(
const auto& key : keys) {
57 ATH_MSG_DEBUG(
"Processing Input ByteStreamMetadata, key = " << key);
62 std::list<SG::ObjectWithVersion<ByteStreamMetadata> > allVersions;
66 copy.push_back(std::make_unique<ByteStreamMetadata>(*obj.dataObject));
73 std::list<SG::ObjectWithVersion<ByteStreamMetadataContainer> > allVersions;
78 copy.push_back(std::make_unique<ByteStreamMetadata>(*md));
90 ATH_MSG_DEBUG(
"Pre-existing ByteStreamMetadataContainer found");
93 for (
const auto bsmd : *bsmdc)
94 transGuids.insert(bsmd->getGuid());
103 for(
auto& pBSMD : copy) {
105 if(transGuids.insert(pBSMD->getGuid()).second)
111 return StatusCode::SUCCESS;
121 std::vector<std::string> vKeys;
122 std::set<std::string> keys;
125 keys.insert(vKeys.begin(), vKeys.end());
128 keys.insert(vKeys.begin(), vKeys.end());
138 return StatusCode::SUCCESS;
145 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retriev...