Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Functions
xAOD::details Namespace Reference

Classes

class  AuxStoreBase
 Common base class for the auxiliary store implementations. More...
 

Functions

bool isRegisteredType (SG::auxid_t auxid)
 Check if the auxiliary variable has a registered type. More...
 
TClass * lookupVectorType (TClass &cl)
 Internal function used by xAOD::TAuxStore and xAOD::RAuxStore. More...
 

Function Documentation

◆ isRegisteredType()

bool xAOD::details::isRegisteredType ( SG::auxid_t  auxid)

Check if the auxiliary variable has a registered type.

This function is used to test if a given auxiliary variable is known in the registry with a proper type.

Returns
true if the full type of the auxiliary property is known, false otherwise

Definition at line 11 of file isRegisteredType.cxx.

11  {
12 
13  // Cache some data:
16  static const SG::auxid_t sauxid =
17  registry.getAuxID<SG::AuxTypePlaceholder>("AuxTypePlaceholder");
18  static const std::type_info* const sti = registry.getVecType(sauxid);
19 
20  // Check if the types match:
21  return (*sti != *(registry.getVecType(auxid)));
22 }

◆ lookupVectorType()

TClass * xAOD::details::lookupVectorType ( TClass &  cl)

Internal function used by xAOD::TAuxStore and xAOD::RAuxStore.

It looks for a typedef called vector_type on the type given to it.

Parameters
clThe type that should be searched for the typedefed type
Returns
The dictionary for the vector type, if it exists

Definition at line 12 of file lookupVectorType.cxx.

12  {
13 
14  TDataType* typ =
15  gROOT->GetType(std::format("{}::vector_type", cl.GetName()).c_str());
16  if (typ) {
17  return TClass::GetClass(typ->GetFullTypeName());
18  }
19  return nullptr;
20 }
python.Dso.registry
registry
Definition: Control/AthenaServices/python/Dso.py:159
vtune_athena.format
format
Definition: vtune_athena.py:14
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:639
SG::AuxTypeRegistry
Handle mappings between names and auxid_t.
Definition: AuxTypeRegistry.h:61
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
SG::AuxTypePlaceholder
Used as type_info when we read an aux data item but it doesn't exist in the registry.
Definition: AuxTypes.h:34
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26