17#include "GaudiKernel/ThreadLocalContext.h"
32 return StatusCode::SUCCESS;
41 return StatusCode::SUCCESS;
50 return StatusCode::SUCCESS;
64 EventContext ctx = Gaudi::Hive::currentContext();
66 return StatusCode::SUCCESS;
74 for (; beg != end; ++beg)
81 std::vector<SG::sgkey_t> sgkeys;
84 sgkeys.push_back (proxy->sgkey());
85 CLID pCLID = proxy->clID();
87 for (
CLID clid : proxy->transientID()) {
95 m_cache.addThinning (key, sgkeys, &*beg);
100 const std::string selVetoesKey =
"SelectionVetoes_" +
m_streamName;
103 ATH_CHECK( evtStore()->retrieve (vetoes, selVetoesKey) );
104 for (
const auto& p : *vetoes) {
105 m_cache.setVetoed (p.first, p.second);
110 const std::string compInfoKey =
"CompressionInfo_" +
m_streamName;
113 ATH_CHECK( evtStore()->retrieve (compInfo, compInfoKey) );
114 for (
const auto& p : *compInfo) {
115 m_cache.setCompression (p.first, p.second);
129 Gaudi::Hive::setCurrentContext (ctx);
132 return StatusCode::SUCCESS;
143 EventContext ctx = Gaudi::Hive::currentContext();
145 Gaudi::Hive::setCurrentContext (ctx);
149 return StatusCode::SUCCESS;
158 return StatusCode::SUCCESS;
172 std::string::size_type spos = key.find (suffix);
173 if (spos != std::string::npos &&
174 (spos + suffix.size() == key.size() ||
175 key[spos + suffix.size()] ==
'.'))
177 return key.substr (0, spos);
#define ATH_CHECK
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Hold thinning decisions for one container.
void setThinningCache(const SG::ThinningCache *cache)
Thread-local thinning cache.
virtual sgkey_t stringToKey(const std::string &str, CLID clid) override
a const_iterator facade to DataHandle.
Hold thinning decisions for one container.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
std::unordered_map< std::string, SG::auxid_set_t > SelectionVetoes
Map of vetoed variables.
std::unordered_map< std::string, SG::ThinningInfo::compression_map_t > CompressionInfo
Map of compressed variables and their compression levels.