ATLAS Offline Software
Classes | Macros
HLTEDMCreator.cxx File Reference
#include "AthViews/ViewHelper.h"
#include "HLTEDMCreator.h"
#include "StoreGate/WriteDecorHandle.h"
#include "TrigOutputHandling/TriggerEDMAuxAccessors.h"
Include dependency graph for HLTEDMCreator.cxx:

Go to the source code of this file.

Classes

struct  plainGenerator< T >
 
struct  xAODGenerator< T, STORE >
 

Macros

#define INIT(__TYPE)   ATH_CHECK( initHandles( HandlesGroup<__TYPE>( m_##__TYPE, m_##__TYPE##InViews, m_##__TYPE##Views ) ) );
 
#define INIT_XAOD(__TYPE, __STORE_TYPE)
 
#define INIT_SHALLOW(__TYPE)
 
#define CREATE(__TYPE)
 
#define CREATE_XAOD(__TYPE, __STORE_TYPE)
 
#define CREATE_SHALLOW(__TYPE)
 

Macro Definition Documentation

◆ CREATE

#define CREATE (   __TYPE)
Value:
{ \
plainGenerator<__TYPE> generator; \
ATH_CHECK( (createIfMissing<__TYPE, void>( context, ConstHandlesGroup<__TYPE>( m_##__TYPE, m_##__TYPE##InViews, m_##__TYPE##Views ), generator, &HLTEDMCreator::noMerge<__TYPE>)) ); \
}

◆ CREATE_SHALLOW

#define CREATE_SHALLOW (   __TYPE)
Value:
{ \
for ( size_t index = 0; index < m_##__TYPE##ShallowCopy.size(); ++index ){ \
auto readHandle = SG::makeHandle<xAOD::__TYPE> ( m_##__TYPE##ShallowCopy[index], context ); \
if ( not readHandle.isValid() ) { \
ATH_MSG_DEBUG( "Creating missing "#__TYPE"ShallowCopy " << m_##__TYPE##ShallowCopy[index].key() ); \
auto writeHandle = SG::makeHandle( m_##__TYPE##ShallowCopyOut[index], context ); \
ATH_CHECK( writeHandle.record( std::make_unique<xAOD::__TYPE>(), std::make_unique<xAOD::ShallowAuxContainer>() )); \
} else { \
ATH_MSG_DEBUG( #__TYPE"ShallowCopy " << m_##__TYPE##ShallowCopyOut[index].key() << " present in the event, done nothing"); \
} \
} \
}

◆ CREATE_XAOD

#define CREATE_XAOD (   __TYPE,
  __STORE_TYPE 
)
Value:
{ \
xAODGenerator<xAOD::__TYPE, xAOD::__STORE_TYPE> generator; \
ATH_CHECK( (createIfMissing<xAOD::__TYPE, xAOD::__STORE_TYPE>( context, ConstHandlesGroup<xAOD::__TYPE>( m_##__TYPE, m_##__TYPE##InViews, m_##__TYPE##Views ), generator, &HLTEDMCreator::viewsMerge<xAOD::__TYPE>)) ); \
}

◆ INIT

#define INIT (   __TYPE)    ATH_CHECK( initHandles( HandlesGroup<__TYPE>( m_##__TYPE, m_##__TYPE##InViews, m_##__TYPE##Views ) ) );

◆ INIT_SHALLOW

#define INIT_SHALLOW (   __TYPE)
Value:
ATH_CHECK( m_##__TYPE##ShallowCopy.initialize() ); \
renounceArray( m_##__TYPE##ShallowCopy ); \
for ( auto k: m_##__TYPE##ShallowCopy ) \
m_##__TYPE##ShallowCopyOut.push_back(k.key()); \
ATH_CHECK( m_##__TYPE##ShallowCopyOut.initialize() ); \
renounceArray( m_##__TYPE##ShallowCopyOut )

◆ INIT_XAOD

#define INIT_XAOD (   __TYPE,
  __STORE_TYPE 
)
Value:
ATH_CHECK( initHandles( HandlesGroup<xAOD::__TYPE>( m_##__TYPE, m_##__TYPE##InViews, m_##__TYPE##Views ) ) ); \
ATH_CHECK( initAuxKey<xAOD::__STORE_TYPE>( m_##__TYPE.keys() ) );
index
Definition: index.py:1
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:269
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DeMoScan.index
string index
Definition: DeMoScan.py:362
mc.generator
generator
Configure Herwig7 These are the commands corresponding to what would go into the regular Herwig infil...
Definition: mc.MGH7_FxFx_H71-DEFAULT_test.py:18
fitman.k
k
Definition: fitman.py:528
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37