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 *selsel)
 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 xAODEventSelector * m_evtsel
 reference to the hosting event selector instance

Detailed Description

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

Definition at line 95 of file xAODEventSelector.cxx.

Constructor & Destructor Documentation

◆ xAODEventContext()

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

standard c-tor with initialization

Definition at line 99 of file xAODEventSelector.cxx.

99: 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 101 of file xAODEventSelector.cxx.

101{}

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

112 {
113 return const_cast<xAODEventSelector*>(m_evtsel)->setFile(fname);
114 }

◆ entry()

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

access to the current event entry number

Definition at line 118 of file xAODEventSelector.cxx.

118{ return m_evtsel->m_curEvt; }

◆ file()

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

access to the current file

Definition at line 110 of file xAODEventSelector.cxx.

110{ return m_evtsel->m_tfile; }

◆ fileIndex()

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

access to the file iterator

Definition at line 116 of file xAODEventSelector.cxx.

116{ 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 108 of file xAODEventSelector.cxx.

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

◆ identifier()

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

identifier method required by IEvtSelector::Context

Definition at line 103 of file xAODEventSelector.cxx.

103 {
104 void* id ATLAS_THREAD_SAFE = const_cast<xAODEventSelector*>(m_evtsel);
105 return id;
106 }
#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 122 of file xAODEventSelector.cxx.


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