ATLAS Offline Software
Loading...
Searching...
No Matches
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 {
234 if ( create ) {
237 data->setStore( store.get() );
238 }
239 }
void create(bool create, bool record)
std::unique_ptr< STORE > store
StatusCode record(SG::WriteHandle< T > &h)
std::unique_ptr< T > data

◆ 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.

230{true};

◆ 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: