26 std::mutex mentionedMutex;
65 static const std::string asteriskStr{
"*"};
73 static const std::string hyphenStr{
"-"};
81 bool sub =
false,
add =
false;
82 std::set< std::string >::const_iterator name_itr =
m_names.begin();
83 std::set< std::string >::const_iterator name_end =
m_names.end();
84 for( ; name_itr != name_end; ++name_itr ) {
85 if( ( *name_itr )[ 0 ] ==
'-' ) {
92 std::cerr <<
"xAOD::AuxSelection ERROR Mixing + and - options for "
93 <<
"dynamic attributes" << std::endl;
101 for( ; name_itr != name_end; ++name_itr ) {
107 if( fullset.test( auxid ) ) {
108 auxids.insert( auxid );
112 std::lock_guard<std::mutex>
lock (mentionedMutex);
113 if( ::mentionedVariableNames.insert( *name_itr ).second ) {
115 std::cerr <<
"xAOD::AuxSelection WARNING Selected dynamic "
116 <<
"Aux atribute \"" << *name_itr
117 <<
"\" not found in the registry" << std::endl;
127 const std::string attrname =
Handle mappings between names and auxid_t.
virtual void lock()=0
Interface to allow an object to lock itself when made const in SG.
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
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.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
A set of aux data identifiers.
std::set< std::string > m_names
Properties following the variable selection convention.
virtual void selectAux(const std::set< std::string > &attributes)
Select which variables should be written out.
virtual SG::auxid_set_t getSelectedAuxIDs(const SG::auxid_set_t &fullset) const
Return which variables were selected to be written out.
AuxSelection()
Default constructor.
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.