ATLAS Offline Software
Loading...
Searching...
No Matches
Athena::xAODEventContext Class Reference

event selector context ... just holds reference back to the selector More...

Inheritance diagram for Athena::xAODEventContext:
Collaboration diagram for Athena::xAODEventContext:

Public Member Functions

 xAODEventContext (const xAODEventSelector *sel)
 standard c-tor with initialization
virtual ~xAODEventContext ()
 standard d-tor
virtual void * identifier () const override
 identifier method required by IEvtSelector::Context
const std::vector< std::string > & files () const
 access to the container of files
const TFile * file () const
 access to the current file
StatusCode setFile ATLAS_NOT_THREAD_SAFE (const std::string &fname)
 call to setFile on evtSel
std::size_t fileIndex () const
 access to the file iterator
int64_t entry () const
 access to the current event entry number

Private Attributes

const xAODEventSelectorm_evtsel
 reference to the hosting event selector instance

Detailed Description

event selector context ... just holds reference back to the selector

Definition at line 80 of file xAODEventSelector.cxx.

Constructor & Destructor Documentation

◆ xAODEventContext()

Athena::xAODEventContext::xAODEventContext ( const xAODEventSelector * sel)
inline

standard c-tor with initialization

Definition at line 84 of file xAODEventSelector.cxx.

84: m_evtsel(sel) {}
const xAODEventSelector * m_evtsel
reference to the hosting event selector instance

◆ ~xAODEventContext()

virtual Athena::xAODEventContext::~xAODEventContext ( )
inlinevirtual

standard d-tor

Definition at line 86 of file xAODEventSelector.cxx.

86{}

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode setFile Athena::xAODEventContext::ATLAS_NOT_THREAD_SAFE ( const std::string & fname)
inline

call to setFile on evtSel

Definition at line 97 of file xAODEventSelector.cxx.

97 {
98 return const_cast<xAODEventSelector*>(m_evtsel)->setFile(fname);
99 }

◆ entry()

int64_t Athena::xAODEventContext::entry ( ) const
inline

access to the current event entry number

Definition at line 103 of file xAODEventSelector.cxx.

103{ return m_evtsel->m_curEvt; }

◆ file()

const TFile * Athena::xAODEventContext::file ( ) const
inline

access to the current file

Definition at line 95 of file xAODEventSelector.cxx.

95{ return m_evtsel->m_tfile; }

◆ fileIndex()

std::size_t Athena::xAODEventContext::fileIndex ( ) const
inline

access to the file iterator

Definition at line 101 of file xAODEventSelector.cxx.

101{ return m_evtsel->m_collIdx; }

◆ files()

const std::vector< std::string > & Athena::xAODEventContext::files ( ) const
inline

access to the container of files

Definition at line 93 of file xAODEventSelector.cxx.

93{ return m_evtsel->m_inputCollectionsName.value(); }

◆ identifier()

virtual void * Athena::xAODEventContext::identifier ( ) const
inlineoverridevirtual

identifier method required by IEvtSelector::Context

Definition at line 88 of file xAODEventSelector.cxx.

88 {
89 void* id ATLAS_THREAD_SAFE = const_cast<xAODEventSelector*>(m_evtsel);
90 return id;
91 }
#define ATLAS_THREAD_SAFE

Member Data Documentation

◆ m_evtsel

const xAODEventSelector* Athena::xAODEventContext::m_evtsel
private

reference to the hosting event selector instance

Definition at line 107 of file xAODEventSelector.cxx.


The documentation for this class was generated from the following file: