The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
Gaudi::RootEvtSelectorContext Class Reference

ROOT specific event selector context. More...

Inheritance diagram for Gaudi::RootEvtSelectorContext:
Collaboration diagram for Gaudi::RootEvtSelectorContext:

Public Types

typedef std::vector< std::string > Files
 Definition of the file container.
 

Public Member Functions

 RootEvtSelectorContext (const RootEvtSelector *s)
 Standard constructor with initialization.
 
const Filesfiles () const
 Access to the file container.
 
void setFiles (const Files &f)
 Set the file container.
 
void * identifier () const override
 Context identifier.
 
Files::const_iterator fileIterator () const
 Access to the file iterator.
 
void setFileIterator (Files::const_iterator i)
 Set file iterator.
 
long entry () const
 Access to the current event entry number.
 
void setEntry (long e)
 Set current event entry number.
 
void setFID (const std::string &fid)
 Set connection FID.
 
const std::string & fid () const
 Access connection fid.
 
TBranch * branch () const
 Access to the top level branch (typically /Event) used to iterate.
 
void setBranch (TBranch *b)
 Set the top level branch (typically /Event) used to iterate.
 
- Public Member Functions inherited from IEvtSelector::Context
virtual ~Context ()=default
 

Private Attributes

const RootEvtSelectorm_sel
 Reference to the hosting event selector instance.
 
Files m_files
 The file container managed by this context.
 
Files::const_iterator m_fiter
 The iterator to the.
 
long m_entry
 Current entry of current file.
 
TBranch * m_branch
 Reference to the top level branch (typically /Event) used to iterate.
 
std::string m_fid
 Connection fid.
 

Detailed Description

ROOT specific event selector context.

See the base class for a detailed description.

Author
M.Frank
Version
1.0

Definition at line 59 of file RootEvtSelector.cpp.

Member Typedef Documentation

◆ Files

typedef std::vector<std::string> Gaudi::RootEvtSelectorContext::Files

Definition of the file container.

Definition at line 62 of file RootEvtSelector.cpp.

Constructor & Destructor Documentation

◆ RootEvtSelectorContext()

Gaudi::RootEvtSelectorContext::RootEvtSelectorContext ( const RootEvtSelector * s)
inline

Standard constructor with initialization.

Definition at line 80 of file RootEvtSelector.cpp.

80: m_sel( s ), m_entry( -1 ), m_branch( nullptr ) {}
TBranch * m_branch
Reference to the top level branch (typically /Event) used to iterate.
long m_entry
Current entry of current file.
const RootEvtSelector * m_sel
Reference to the hosting event selector instance.

Member Function Documentation

◆ branch()

TBranch * Gaudi::RootEvtSelectorContext::branch ( ) const
inline

Access to the top level branch (typically /Event) used to iterate.

Definition at line 103 of file RootEvtSelector.cpp.

103{ return m_branch; }

◆ entry()

long Gaudi::RootEvtSelectorContext::entry ( ) const
inline

Access to the current event entry number.

Definition at line 95 of file RootEvtSelector.cpp.

95{ return m_entry; }

◆ fid()

const std::string & Gaudi::RootEvtSelectorContext::fid ( ) const
inline

Access connection fid.

Definition at line 101 of file RootEvtSelector.cpp.

101{ return m_fid; }
std::string m_fid
Connection fid.

◆ fileIterator()

Files::const_iterator Gaudi::RootEvtSelectorContext::fileIterator ( ) const
inline

Access to the file iterator.

Definition at line 91 of file RootEvtSelector.cpp.

91{ return m_fiter; }
Files::const_iterator m_fiter
The iterator to the.

◆ files()

const Files & Gaudi::RootEvtSelectorContext::files ( ) const
inline

Access to the file container.

Definition at line 82 of file RootEvtSelector.cpp.

82{ return m_files; }
Files m_files
The file container managed by this context.

◆ identifier()

void * Gaudi::RootEvtSelectorContext::identifier ( ) const
inlineoverridevirtual

Context identifier.

Implements IEvtSelector::Context.

Definition at line 89 of file RootEvtSelector.cpp.

89{ return const_cast<RootEvtSelector*>( m_sel ); }

◆ setBranch()

void Gaudi::RootEvtSelectorContext::setBranch ( TBranch * b)
inline

Set the top level branch (typically /Event) used to iterate.

Definition at line 105 of file RootEvtSelector.cpp.

105{ m_branch = b; }

◆ setEntry()

void Gaudi::RootEvtSelectorContext::setEntry ( long e)
inline

Set current event entry number.

Definition at line 97 of file RootEvtSelector.cpp.

97{ m_entry = e; }

◆ setFID()

void Gaudi::RootEvtSelectorContext::setFID ( const std::string & fid)
inline

Set connection FID.

Definition at line 99 of file RootEvtSelector.cpp.

99{ m_fid = fid; }
const std::string & fid() const
Access connection fid.

◆ setFileIterator()

void Gaudi::RootEvtSelectorContext::setFileIterator ( Files::const_iterator i)
inline

Set file iterator.

Definition at line 93 of file RootEvtSelector.cpp.

93{ m_fiter = i; }

◆ setFiles()

void Gaudi::RootEvtSelectorContext::setFiles ( const Files & f)
inline

Set the file container.

Definition at line 84 of file RootEvtSelector.cpp.

84 {
85 m_files = f;
86 m_fiter = m_files.begin();
87 }

Member Data Documentation

◆ m_branch

TBranch* Gaudi::RootEvtSelectorContext::m_branch
private

Reference to the top level branch (typically /Event) used to iterate.

Definition at line 74 of file RootEvtSelector.cpp.

◆ m_entry

long Gaudi::RootEvtSelectorContext::m_entry
private

Current entry of current file.

Definition at line 72 of file RootEvtSelector.cpp.

◆ m_fid

std::string Gaudi::RootEvtSelectorContext::m_fid
private

Connection fid.

Definition at line 76 of file RootEvtSelector.cpp.

◆ m_files

Files Gaudi::RootEvtSelectorContext::m_files
private

The file container managed by this context.

Definition at line 68 of file RootEvtSelector.cpp.

◆ m_fiter

Files::const_iterator Gaudi::RootEvtSelectorContext::m_fiter
private

The iterator to the.

Definition at line 70 of file RootEvtSelector.cpp.

◆ m_sel

const RootEvtSelector* Gaudi::RootEvtSelectorContext::m_sel
private

Reference to the hosting event selector instance.

Definition at line 66 of file RootEvtSelector.cpp.


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