|
ATLAS Offline Software
|
Go to the documentation of this file.
33 return reg.getClassName(
id) +
"::" +
reg.getName(
id);
59 std::vector<SG::auxid_t>
ids (auxids.
begin(), auxids.
end());
60 std::sort (
ids.begin(),
ids.end());
63 std::cout <<
id <<
" "
64 <<
reg.getClassName(
id) <<
"::" <<
reg.getName(
id) <<
" "
65 <<
"[" <<
reg.getTypeName(
id);
69 std::cout <<
" (atomic)";
152 void convert (std::ostream&
os,
const float x)
158 void convert (std::ostream&
os,
const double x)
165 void convert (std::ostream&
os,
const std::vector<T>&
x)
171 for (decltype(
auto) elt :
x) {
194 bool operator< (
const AuxVarSort&
a,
const AuxVarSort&
b )
196 return a.name <
b.name;
210 std::ostringstream
os;
213 const std::type_info* ti =
r.getType(auxid);
214 #define CONVERT(T) if (ti == &typeid(T)) convert (os, *reinterpret_cast<const T*>(p)); else
215 #define CONVERT1(T) CONVERT(T) CONVERT(std::vector<T>)
231 os <<
"<??? " << AthContainers_detail::typeinfoName(*ti) <<
">";
243 if (
i >=
store.size())
return;
246 std::vector<AuxVarSort> vars (
ids.begin(),
ids.end());
247 std::sort (vars.begin(), vars.end());
248 for (
const AuxVarSort&
v : vars) {
249 const void* pbeg =
store.getData (
v.id);
250 size_t eltsz =
reg.getEltSize (
v.id);
251 const char*
p =
reinterpret_cast<const char*
>(pbeg) + eltsz*
i;
275 for (
size_t i = 0;
i <
sz;
i++) {
276 std::cout <<
"=== Element " <<
i <<
"\n";
bool operator<(const DataVector< T > &a, const DataVector< T > &b)
Vector ordering relation.
std::string aux_var_as_string(SG::auxid_t auxid, const void *p)
Convert an aux variable to a string.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Base class for elements of a container that can have aux data.
const_iterator end() const
Return an end iterator.
std::vector< size_t > vec
reg
globals -----------------------------------------------------------------—
void print_aux_vars(const SG::auxid_set_t &auxids)
Print the list of aux variables in a set.
Handle mappings between names and auxid_t.
size_t auxid_t
Identifier for a particular aux data item.
Helper for emitting error messages.
const SG::auxid_set_t & getAuxIDs() const
Return a set of identifiers for existing data items for this object.
size_t index() const
Return the index of this element within its container.
AuxVarFlags
Additional flags to qualify an auxiliary variable.
const_iterator begin() const
Return a begin iterator.
std::string strformat(const char *fmt,...)
return a std::string according to a format fmt and varargs
std::unique_ptr< MVAUtils::BDT > convert(TMVA::MethodBDT *bdt, bool isRegression=true, bool useYesNoLeaf=false)
@ Atomic
Mark that this variable should only be accessed atomically.
Handle mappings between names and auxid_t.
A set of aux data identifiers.
void dump_aux_vars(const SG::IConstAuxStore &store, size_t i)
Dump aux variables from a store for a single element.
void print_aux_var_name(SG::auxid_t id)
Print the name corresponding to a given aux id.
Manage lookup of vectors of auxiliary data.
const SG::AuxVectorData * container() const
Return the container holding this element.
Interface for const operations on an auxiliary store.
Interface for const operations on an auxiliary store.
std::string aux_var_name(SG::auxid_t id)
Return the name corresponding to a given aux id.
Helper functions intended to be called from the debugger.