|
ATLAS Offline Software
|
Go to the documentation of this file.
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;
81 std::vector<SG::sgkey_t> sgkeys;
84 sgkeys.push_back (
proxy->sgkey());
100 const std::string selVetoesKey =
"SelectionVetoes_" +
m_streamName;
102 if (evtStore()->contains<SG::SelectionVetoes> (selVetoesKey)) {
104 for (
const auto&
p : *vetoes) {
110 const std::string compInfoKey =
"CompressionInfo_" +
m_streamName;
112 if (evtStore()->contains<SG::CompressionInfo> (compInfoKey)) {
114 for (
const auto&
p : *compInfo) {
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 &&
177 return key.substr (0, spos);
def retrieve(aClass, aKey=None)
void setCompression(const std::string &key, const ThinningInfo::compression_map_t &compression)
Set lossy float compression information for the object.
std::unordered_map< std::string, SG::auxid_set_t > SelectionVetoes
Map of vetoed variables.
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
void setThinningCache(const SG::ThinningCache *cache)
Thread-local thinning cache.
void lockOwned()
Lock all the ThinningDecisionBase objects that we own.
const ITrigNavigationThinningSvc * trigNavigationThinningSvc() const
Return the TrigNavigation helper for this stream, or nullptr.
virtual sgkey_t stringToKey(const std::string &str, CLID clid) override
void addThinning(const std::string &key, const std::vector< sgkey_t > &sgkeys, const ThinningDecisionBase *thinning, bool unique=false)
Add thinning information for one object.
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
void clear()
Clear the cache.
Some weak symbol referencing magic...
::StatusCode StatusCode
StatusCode definition for legacy code.
Hold thinning decisions for one container.
Hold thinning decisions for one container.
uint32_t CLID
The Class ID type.
std::unordered_map< std::string, SG::ThinningInfo::compression_map_t > CompressionInfo
Map of compressed variables and their compression levels.
void setVetoed(const std::string &key, const CxxUtils::ConcurrentBitset &vetoed)
Set vetoed variable information one object.
void setTrigNavigationThinningSvc(const ITrigNavigationThinningSvc *thinning)
Set the TrigNavigation helper for this stream.
bool empty() const
Test to see if there's any thinning defined.