Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
xAODGenerator< T, STORE > Struct Template Reference
Collaboration diagram for xAODGenerator< T, STORE >:

Public Member Functions

void create (bool create, bool record)
 
StatusCode record (SG::WriteHandle< T > &h)
 

Public Attributes

std::unique_ptr< T > data
 
std::unique_ptr< STORE > store
 
bool doRecord {true}
 

Detailed Description

template<class T, class STORE>
struct xAODGenerator< T, STORE >

Definition at line 223 of file HLTEDMCreator.cxx.

Member Function Documentation

◆ create()

template<class T , class STORE >
void xAODGenerator< T, STORE >::create ( bool  create,
bool  record 
)
inline

Definition at line 228 of file HLTEDMCreator.cxx.

228  {
229  doRecord = record;
230  if ( create ) {
231  data = std::make_unique<T>();
232  store = std::make_unique<STORE>();
233  data->setStore( store.get() );
234  }
235  }

◆ record()

template<class T , class STORE >
StatusCode xAODGenerator< T, STORE >::record ( SG::WriteHandle< T > &  h)
inline

Definition at line 237 of file HLTEDMCreator.cxx.

237  {
238  if ( doRecord )
239  return h.record( std::move( data ), std::move( store ) );
240  return StatusCode::SUCCESS;
241  }

Member Data Documentation

◆ data

template<class T , class STORE >
std::unique_ptr<T> xAODGenerator< T, STORE >::data

Definition at line 224 of file HLTEDMCreator.cxx.

◆ doRecord

template<class T , class STORE >
bool xAODGenerator< T, STORE >::doRecord {true}

Definition at line 226 of file HLTEDMCreator.cxx.

◆ store

template<class T , class STORE >
std::unique_ptr<STORE> xAODGenerator< T, STORE >::store

Definition at line 225 of file HLTEDMCreator.cxx.


The documentation for this struct was generated from the following file:
xAODGenerator::doRecord
bool doRecord
Definition: HLTEDMCreator.cxx:226
xAODGenerator::data
std::unique_ptr< T > data
Definition: HLTEDMCreator.cxx:224
xAODGenerator::store
std::unique_ptr< STORE > store
Definition: HLTEDMCreator.cxx:225
xAODGenerator::create
void create(bool create, bool record)
Definition: HLTEDMCreator.cxx:228
xAODGenerator::record
StatusCode record(SG::WriteHandle< T > &h)
Definition: HLTEDMCreator.cxx:237
h