|
ATLAS Offline Software
|
Go to the documentation of this file.
49 std::map< unsigned int, SG::auxid_set_t >
53 std::map< unsigned int, SG::auxid_set_t >
result;
59 const unsigned int nmantissa =
val.first;
60 const std::set< std::string > &names =
val.second;
66 if( names.empty() || ( names.find(
"-") != names.end() ) ) {
72 bool sub =
false,
add =
false;
73 std::set< std::string >::const_iterator name_itr = names.begin();
74 std::set< std::string >::const_iterator name_end = names.end();
75 for( ; name_itr != name_end; ++name_itr ) {
76 if( ( *name_itr )[ 0 ] ==
'-' ) {
85 std::cerr <<
"xAOD::AuxCompression ERROR Mixing + and - options for "
86 <<
"compression attributes" << std::endl;
98 if( cType ==
"float" || cType ==
"std::vector<float>" ) {
104 if( names.find(
"*") != names.end() ) {
110 name_itr = names.begin();
111 name_end = names.end();
112 for( ; name_itr != name_end; ++name_itr ) {
115 if( auxid != SG::null_auxid ) {
117 if( fauxids.
test( auxid ) ) {
130 if( names.find( attrname ) != names.end() ) {
131 auxids.
erase( auxid );
137 result[ nmantissa ] = 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.