Template Function HelperFunctions::recordOutput

Function Documentation

template<typename T1, typename T2>
StatusCode HelperFunctions::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 record

  • T2 – The type of the aux container you’re going to record

Parameters
  • m_event – A pointer to the TEvent object

  • m_store – A pointer to the TStore object

  • containerName – The name of the container in the TStore to record to TEvent