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;
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>" ) {
106 auxids = std::move(fauxids);
111 name_itr =
names.begin();
112 name_end =
names.end();
113 for( ; name_itr != name_end; ++name_itr ) {
118 if( fauxids.
test( auxid ) ) {
132 auxids.
erase( auxid );
138 result[ nmantissa ] = std::move(auxids);
Handle mappings between names and auxid_t.
bool test(bit_t bit) const
Test to see if a bit is set.
ConcurrentBitset & erase(bit_t bit)
Turn off one bit.
ConcurrentBitset & insert(bit_t bit, bit_t new_nbits=0)
Set a bit to 1.
SG::auxid_t findAuxID(const std::string &name, const std::string &clsname="") const
Look up a name -> auxid_t mapping.
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
std::string getTypeName(SG::auxid_t auxid) const
Return the type name of an aux data item.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
A set of aux data identifiers.
AuxCompression()
Default constructor.
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.
virtual void setCompressedAuxIDs(const std::map< unsigned int, std::set< std::string > > &attributes)
Set which variables should be compressed per compression setting.
std::map< unsigned int, std::set< std::string > > m_compression_map
Properties following the variable selection convention.
bool add(const std::string &hname, TKey *tobj)
static const auxid_t null_auxid
To signal no aux data item.
size_t auxid_t
Identifier for a particular aux data item.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< std::vector< std::string > > names("thrNames")
Accessor for the names of the passed thresholds.