ATLAS Offline Software
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 227 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 232 of file HLTEDMCreator.cxx.

232  {
233  doRecord = record;
234  if ( create ) {
235  data = std::make_unique<T>();
236  store = std::make_unique<STORE>();
237  data->setStore( store.get() );
238  }
239  }

◆ record()

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

Definition at line 241 of file HLTEDMCreator.cxx.

241  {
242  if ( doRecord )
243  return h.record( std::move( data ), std::move( store ) );
244  return StatusCode::SUCCESS;
245  }

Member Data Documentation

◆ data

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

Definition at line 228 of file HLTEDMCreator.cxx.

◆ doRecord

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

Definition at line 230 of file HLTEDMCreator.cxx.

◆ store

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

Definition at line 229 of file HLTEDMCreator.cxx.


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