|
ATLAS Offline Software
|
Go to the documentation of this file.
22 "(optional) List of keys to copy. Copy all keys if empty "
24 #ifndef XAOD_STANDALONE
25 declareInterface< ::IMetaDataTool >(
this);
26 #endif // XAOD_STANDALONE
31 #ifndef XAOD_STANDALONE
33 #endif // XAOD_STANDALONE
36 return StatusCode::SUCCESS;
53 [
this](std::string&
key) {
54 return !inputMetaStore()->contains<xAOD::FileMetaData>(key);
61 if (
keys.empty())
return StatusCode::SUCCESS;
64 for(
const std::string&
key :
keys) {
65 #ifdef XAOD_STANDALONE
68 for(
const std::string& stream_key :
m_metaDataSvc->getPerStreamKeysFor(
key) ) {
71 #endif // XAOD_STANDALONE
73 return StatusCode::SUCCESS;
82 return StatusCode::SUCCESS;
91 #ifdef XAOD_STANDALONE
98 if (!
output)
return StatusCode::FAILURE;
99 #endif // XAOD_STANDALONE
104 const std::set<std::string>
ignore {
"runNumbers",
"lumiBlocks" };
108 return StatusCode::SUCCESS;
112 auto output = std::make_unique< xAOD::FileMetaData >();
113 auto outputAux = std::make_unique< xAOD::FileMetaDataAuxInfo >();
114 output->setStore(outputAux.get());
120 #ifdef XAOD_STANDALONE
127 std::move(outputAux),
key +
"Aux."));
135 std::move(outputAux),
key +
"Aux."));
136 #endif // XAOD_STANDALONE
141 return StatusCode::SUCCESS;
146 const std::string&
var)
148 std::vector<uint32_t> src_vec, dst_vec;
151 bool updated =
false;
153 for(
auto val : src_vec ) {
155 auto it = std::lower_bound( dst_vec.begin(), dst_vec.end(),
val );
156 if(
it == dst_vec.end() || (*
it) !=
val ) {
157 dst_vec.insert(
it,
val);
def retrieve(aClass, aKey=None)
#define ASG_CHECK(...)
Helper macro for checking the status code returned by a function call.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
::StatusCode StatusCode
StatusCode definition for legacy code.
#define ATH_MSG_WARNING(x)