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 79 of file xAODEventSelector.cxx.

Constructor & Destructor Documentation

◆ xAODEventContext()

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

standard c-tor with initialization

Definition at line 83 of file xAODEventSelector.cxx.

83: 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 85 of file xAODEventSelector.cxx.

85{}

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 96 of file xAODEventSelector.cxx.

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

◆ entry()

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

access to the current event entry number

Definition at line 102 of file xAODEventSelector.cxx.

102{ return m_evtsel->m_curEvt; }

◆ file()

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

access to the current file

Definition at line 94 of file xAODEventSelector.cxx.

94{ return m_evtsel->m_tfile; }

◆ fileIndex()

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

access to the file iterator

Definition at line 100 of file xAODEventSelector.cxx.

100{ 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 92 of file xAODEventSelector.cxx.

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

◆ identifier()

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

identifier method required by IEvtSelector::Context

Definition at line 87 of file xAODEventSelector.cxx.

87 {
88 void* id ATLAS_THREAD_SAFE = const_cast<xAODEventSelector*>(m_evtsel);
89 return id;
90 }
#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 106 of file xAODEventSelector.cxx.


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