| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Private Attributes | List of all members
Gaudi::RootEvtSelectorContext Class Reference

ROOT specific event selector context. More...

Inheritance diagram for Gaudi::RootEvtSelectorContext:
[legend]
Collaboration diagram for Gaudi::RootEvtSelectorContext:
[legend]

## Public Types
typedef std::vector< std::string > | Files
| Definition of the file container. More...

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

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

## Detailed Description

ROOT specific event selector context.

See the base class for a detailed description.

Author
  M.Frank

Version
  1.0

Definition at line 33 of file RootEvtSelector.cpp.

## Member Typedef Documentation

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

Definition of the file container.

Definition at line 37 of file RootEvtSelector.cpp.

## Constructor & Destructor Documentation

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

Standard constructor with initialization.

Definition at line 55 of file RootEvtSelector.cpp.

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

Gaudi::RootEvtSelectorContext::~RootEvtSelectorContext | ( |  | ) |
| override default

Standard destructor.

## Member Function Documentation

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

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

Definition at line 81 of file RootEvtSelector.cpp.

81 { return m_branch; }
Gaudi::RootEvtSelectorContext::m_branch
TBranch * m_branch
Reference to the top level branch (typically /Event) used to iterate.
Definition: RootEvtSelector.cpp:49

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

Access to the current event entry number.

Definition at line 73 of file RootEvtSelector.cpp.

73 { return m_entry; }
Gaudi::RootEvtSelectorContext::m_entry
long m_entry
Current entry of current file.
Definition: RootEvtSelector.cpp:47

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

Access connection fid.

Definition at line 79 of file RootEvtSelector.cpp.

79 { return m_fid; }
Gaudi::RootEvtSelectorContext::m_fid
std::string m_fid
Connection fid.
Definition: RootEvtSelector.cpp:51

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

Access to the file iterator.

Definition at line 69 of file RootEvtSelector.cpp.

69 { return m_fiter; }
Gaudi::RootEvtSelectorContext::m_fiter
Files::const_iterator m_fiter
The iterator to the.
Definition: RootEvtSelector.cpp:45

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

Access to the file container.

Definition at line 59 of file RootEvtSelector.cpp.

59 { return m_files; }
Gaudi::RootEvtSelectorContext::m_files
Files m_files
The file container managed by this context.
Definition: RootEvtSelector.cpp:43

void* Gaudi::RootEvtSelectorContext::identifier | ( |  | ) | const
| inline override virtual

Context identifier.

Implements IEvtSelector::Context.

Definition at line 67 of file RootEvtSelector.cpp.

67 { return const_cast<RootEvtSelector*>( m_sel ); }
Gaudi::RootEvtSelectorContext::m_sel
const RootEvtSelector * m_sel
Reference to the hosting event selector instance.
Definition: RootEvtSelector.cpp:41
Gaudi::RootEvtSelector
Concrete event selector implementation to access ROOT files.
Definition: RootEvtSelector.h:40

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

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

Definition at line 83 of file RootEvtSelector.cpp.

83 { m_branch = b; }
Gaudi::RootEvtSelectorContext::m_branch
TBranch * m_branch
Reference to the top level branch (typically /Event) used to iterate.
Definition: RootEvtSelector.cpp:49

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

Set current event entry number.

Definition at line 75 of file RootEvtSelector.cpp.

75 { m_entry = e; }
Gaudi::RootEvtSelectorContext::m_entry
long m_entry
Current entry of current file.
Definition: RootEvtSelector.cpp:47

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

Set connection FID.

Definition at line 77 of file RootEvtSelector.cpp.

77 { m_fid = fid; }
Gaudi::RootEvtSelectorContext::m_fid
std::string m_fid
Connection fid.
Definition: RootEvtSelector.cpp:51
Gaudi::RootEvtSelectorContext::fid
const std::string & fid() const
Access connection fid.
Definition: RootEvtSelector.cpp:79

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

Set file iterator.

Definition at line 71 of file RootEvtSelector.cpp.

71 { m_fiter = i; }
Gaudi::RootEvtSelectorContext::m_fiter
Files::const_iterator m_fiter
The iterator to the.
Definition: RootEvtSelector.cpp:45

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

Set the file container.

Definition at line 61 of file RootEvtSelector.cpp.

62 {
63 m_files = f;
64 m_fiter = m_files.begin();
65 }
std::vector::begin
T begin(T...args)
Gaudi::RootEvtSelectorContext::m_fiter
Files::const_iterator m_fiter
The iterator to the.
Definition: RootEvtSelector.cpp:45
Gaudi::RootEvtSelectorContext::m_files
Files m_files
The file container managed by this context.
Definition: RootEvtSelector.cpp:43

## Member Data Documentation

TBranch* Gaudi::RootEvtSelectorContext::m_branch
| private

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

Definition at line 49 of file RootEvtSelector.cpp.

long Gaudi::RootEvtSelectorContext::m_entry
| private

Current entry of current file.

Definition at line 47 of file RootEvtSelector.cpp.

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

Connection fid.

Definition at line 51 of file RootEvtSelector.cpp.

Files Gaudi::RootEvtSelectorContext::m_files
| private

The file container managed by this context.

Definition at line 43 of file RootEvtSelector.cpp.

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

The iterator to the.

Definition at line 45 of file RootEvtSelector.cpp.

const RootEvtSelector* Gaudi::RootEvtSelectorContext::m_sel
| private

Reference to the hosting event selector instance.

Definition at line 41 of file RootEvtSelector.cpp.

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

- RootCnv/src/RootEvtSelector.cpp