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 170 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 175 of file HLTEDMCreator.cxx.

175  {
176  doRecord = record;
177  if ( create ) {
178  data = std::make_unique<T>();
179  store = std::make_unique<STORE>();
180  data->setStore( store.get() );
181  }
182  }

◆ record()

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

Definition at line 184 of file HLTEDMCreator.cxx.

184  {
185  if ( doRecord )
186  return h.record( std::move( data ), std::move( store ) );
187  return StatusCode::SUCCESS;
188  }

Member Data Documentation

◆ data

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

Definition at line 171 of file HLTEDMCreator.cxx.

◆ doRecord

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

Definition at line 173 of file HLTEDMCreator.cxx.

◆ store

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

Definition at line 172 of file HLTEDMCreator.cxx.


The documentation for this struct was generated from the following file:
xAODGenerator::doRecord
bool doRecord
Definition: HLTEDMCreator.cxx:173
xAODGenerator::data
std::unique_ptr< T > data
Definition: HLTEDMCreator.cxx:171
xAODGenerator::store
std::unique_ptr< STORE > store
Definition: HLTEDMCreator.cxx:172
xAODGenerator::create
void create(bool create, bool record)
Definition: HLTEDMCreator.cxx:175
xAODGenerator::record
StatusCode record(SG::WriteHandle< T > &h)
Definition: HLTEDMCreator.cxx:184
h