![]() |
ATLAS Offline Software
|
Define structures for fast filling of xAOD objects. More...
#include <VariableStruct.h>
Public Member Functions | |
| VariableStruct (SG::AuxVectorData &cont) | |
Public Attributes | |
| SG::AuxVectorData & | m_cont |
Define structures for fast filling of xAOD objects.
Normally one initializes xAOD objects using the setter interfaces of individual objects. While these are designed to be fast, there is some overhead which can add up if one is creating very many objects. As a faster, but less convenient/safe alternative, one can retrieve pointers to each variable array and then fill those directly without going through the xAOD object interface. The code here provides some support for this. Declare a structure deriving from VariableStruct. Declare each variable using the AUXSTORE_VARSTRUCT_VAR macro. Then when an instance of that structure is created, it will contain pointers to the xAOD variables. For example, for a fictional Cluster xAOD object:
Definition at line 62 of file VariableStruct.h.
|
inline |
Definition at line 65 of file VariableStruct.h.
| SG::AuxVectorData& xAOD::VariableStruct::m_cont |
Definition at line 66 of file VariableStruct.h.