|
ATLAS Offline Software
|
Go to the documentation of this file.
79 bool sub =
false,
add =
false;
80 std::set< std::string >::const_iterator name_itr =
m_names.begin();
81 std::set< std::string >::const_iterator name_end =
m_names.end();
82 for( ; name_itr != name_end; ++name_itr ) {
83 if( ( *name_itr )[ 0 ] ==
'-' ) {
90 std::cerr <<
"xAOD::AuxSelection ERROR Mixing + and - options for "
91 <<
"dynamic attributes" << std::endl;
99 for( ; name_itr != name_end; ++name_itr ) {
103 if( auxid != SG::null_auxid ) {
105 if( fullset.
test( auxid ) ) {
110 std::lock_guard<std::mutex> lock (mentionedMutex);
111 if( ::mentionedVariableNames.insert( *name_itr ).second ) {
113 std::cerr <<
"xAOD::AuxSelection WARNING Selected dynamic "
114 <<
"Aux atribute \"" << *name_itr
115 <<
"\" not found in the registry" << std::endl;
125 const std::string attrname =
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.
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
std::set< std::string > m_names
Properties following the variable selection convention.
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.
ConcurrentBitset & insert(bit_t bit, bit_t new_nbits=0)
Set a bit to 1.
bool add(const std::string &hname, TKey *tobj)
Handle mappings between names and auxid_t.
A set of aux data identifiers.
#define ATLAS_THREAD_SAFE
virtual void selectAux(const std::set< std::string > &attributes)
Select which variables should be written out.
ConcurrentBitset & erase(bit_t bit)
Turn off one bit.
virtual SG::auxid_set_t getSelectedAuxIDs(const SG::auxid_set_t &fullset) const
Return which variables were selected to be written out.
Define macros for attributes used to control the static checker.
AuxSelection()
Default constructor.
bool test(bit_t bit) const
Test to see if a bit is set.