Template Function HelperFunctions::recordOutput¶
Defined in File HelperFunctions.h
Function Documentation¶
-
template<typename
T1
, typenameT2
>
StatusCodeHelperFunctions
::
recordOutput
(xAOD::TEvent *m_event, xAOD::TStore *m_store, std::string containerName) Copy a container from the TStore to be recorded in the TEvent (eg: to an output)
If you have a container in the TStore, this function will record it into the output for you without an issue. As an example:
ANA_CHECK( HelperFunctions::recordOutput<xAOD::JetContainer, xAOD::JetAuxContainer>(m_event, m_store, "BaselineJets"));
where we build off the previous example of making a deep copy (see
HelperFunctions::makeDeepCopy()
).- Template Parameters
T1
: The type of the container you’re going to recordT2
: The type of the aux container you’re going to record
- Parameters
m_event
: A pointer to the TEvent objectm_store
: A pointer to the TStore objectcontainerName
: The name of the container in the TStore to record to TEvent