Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
50 std::map< unsigned int, SG::auxid_set_t >
54 std::map< unsigned int, SG::auxid_set_t >
result;
60 const unsigned int nmantissa =
val.first;
61 const std::set< std::string > &names =
val.second;
67 if( names.empty() || ( names.find(
"-") != names.end() ) ) {
73 bool sub =
false,
add =
false;
74 std::set< std::string >::const_iterator name_itr = names.begin();
75 std::set< std::string >::const_iterator name_end = names.end();
76 for( ; name_itr != name_end; ++name_itr ) {
77 if( ( *name_itr )[ 0 ] ==
'-' ) {
86 std::cerr <<
"xAOD::AuxCompression ERROR Mixing + and - options for "
87 <<
"compression attributes" << std::endl;
99 if( cType ==
"float" || cType ==
"std::vector<float>" ) {
105 if( names.find(
"*") != names.end() ) {
106 auxids = std::move(fauxids);
111 name_itr = names.begin();
112 name_end = names.end();
113 for( ; name_itr != name_end; ++name_itr ) {
116 if( auxid != SG::null_auxid ) {
118 if( fauxids.
test( auxid ) ) {
131 if( names.find( attrname ) != names.end() ) {
132 auxids.
erase( auxid );
138 result[ nmantissa ] = std::move(auxids);
static AuxTypeRegistry & instance()
Return the singleton registry instance.
SG::auxid_t findAuxID(const std::string &name, const std::string &clsname="") const
Look up a name -> auxid_t mapping.
virtual void setCompressedAuxIDs(const std::map< unsigned int, std::set< std::string > > &attributes)
Set which variables should be compressed per compression setting.
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
size_t auxid_t
Identifier for a particular aux data item.
virtual std::map< unsigned int, SG::auxid_set_t > getCompressedAuxIDs(const SG::auxid_set_t &fullset) const
Return those variables that are selected to be compressed per compression setting.
std::string getTypeName(SG::auxid_t auxid) const
Return the type name of an aux data item.
ConcurrentBitset & insert(bit_t bit, bit_t new_nbits=0)
Set a bit to 1.
bool add(const std::string &hname, TKey *tobj)
std::map< unsigned int, std::set< std::string > > m_compression_map
Properties following the variable selection convention.
Handle mappings between names and auxid_t.
A set of aux data identifiers.
AuxCompression()
Default constructor.
ConcurrentBitset & erase(bit_t bit)
Turn off one bit.
bool test(bit_t bit) const
Test to see if a bit is set.