ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Athena::xAODEventContext Class Reference
Inheritance diagram for Athena::xAODEventContext:
Collaboration diagram for Athena::xAODEventContext:

Public Member Functions

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

Private Attributes

const xAODEventSelectorm_evtsel
 reference to the hosting event selector instance More...
 

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) {}

◆ ~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  }

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:
Athena::xAODEventContext::m_evtsel
const xAODEventSelector * m_evtsel
reference to the hosting event selector instance
Definition: xAODEventSelector.cxx:106
Athena::xAODEventSelector::m_inputCollectionsName
StringArrayProperty m_inputCollectionsName
List of input files containing TTree.
Definition: xAODEventSelector.h:184
Athena::xAODEventSelector::m_curEvt
long m_curEvt
current event index
Definition: xAODEventSelector.h:199
sel
sel
Definition: SUSYToolsTester.cxx:97
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
Athena::xAODEventSelector::m_collIdx
long m_collIdx
current collection index (into m_inputCollectionsName)
Definition: xAODEventSelector.h:202
Athena::xAODEventSelector::m_tfile
TFile * m_tfile
current TFile being read
Definition: xAODEventSelector.h:227
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition: checker_macros.h:211