 |
ATLAS Offline Software
|
Go to the documentation of this file.
20 : base_class(
name ) { }
24 #ifndef XAOD_STANDALONE
26 #endif // XAOD_STANDALONE
29 return StatusCode::SUCCESS;
46 [
this](std::string&
key) {
47 return !inputMetaStore()->contains<xAOD::FileMetaData>(key);
54 if (
keys.empty())
return StatusCode::SUCCESS;
57 for(
const std::string&
key :
keys) {
58 #ifdef XAOD_STANDALONE
61 for(
const std::string& stream_key :
m_metaDataSvc->getPerStreamKeysFor(
key) ) {
64 #endif // XAOD_STANDALONE
66 return StatusCode::SUCCESS;
73 if (!inputMetaStore()->contains< xAOD::FileMetaData >(
key)) {
75 return StatusCode::SUCCESS;
84 #ifdef XAOD_STANDALONE
85 if (outputMetaStore()->contains< xAOD::FileMetaData >(
key)) {
91 if (!output)
return StatusCode::FAILURE;
92 #endif // XAOD_STANDALONE
97 const std::set<std::string>
ignore {
"runNumbers",
"lumiBlocks" };
98 if( !input->compareWith(*output,
ignore) )
101 return StatusCode::SUCCESS;
105 auto output = std::make_unique< xAOD::FileMetaData >();
106 auto outputAux = std::make_unique< xAOD::FileMetaDataAuxInfo >();
107 output->setStore(outputAux.get());
113 #ifdef XAOD_STANDALONE
115 outputMetaStore()->record< xAOD::FileMetaData >(
116 std::move(output),
key));
119 outputMetaStore()->record< xAOD::FileMetaDataAuxInfo >(
120 std::move(outputAux),
key +
"Aux."));
124 std::move(output),
key));
128 std::move(outputAux),
key +
"Aux."));
129 #endif // XAOD_STANDALONE
134 return StatusCode::SUCCESS;
139 const std::string&
var)
141 std::vector<uint32_t> src_vec,
dst_vec;
144 bool updated =
false;
146 for(
auto val : src_vec ) {
def retrieve(aClass, aKey=None)
#define ASG_CHECK(...)
Helper macro for checking the status code returned by a function call.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define ATH_MSG_WARNING(x)