/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
RootIOAddress< StreamType > Class Template Reference

An IOpaqueAddress for RootIO. More...

#include <RootIOAddress.h>

Inheritance diagram for RootIOAddress< StreamType >:
Inheritance graph
[legend]
Collaboration diagram for RootIOAddress< StreamType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RootIOAddress (const CLID &clid, const std::string &tespath)
 Initial construction with enough info to find the stream.
void setStream (StreamType *stream)
StreamType * stream () const
const std::string & tespath () const
 Return the TES (and TFile) path.
std::string tesdir () const
 Return just the TES (and TFile) path.
std::string treename () const
 Return just the tree / TES object name.
std::string branchname () const
 Return a branch name based on the TES path.
int entry () const
void setEntry (int entry)

Private Attributes

StreamType * m_stream

Detailed Description

template<class StreamType>
class RootIOAddress< StreamType >

An IOpaqueAddress for RootIO.

bv@bnl.gov Sun Jun 29 10:12:48 2008

Definition at line 31 of file RootIOAddress.h.


Constructor & Destructor Documentation

template<class StreamType>
RootIOAddress< StreamType >::RootIOAddress ( const CLID &  clid,
const std::string &  tespath 
) [inline]

Initial construction with enough info to find the stream.

Definition at line 36 of file RootIOAddress.h.

        : GenericAddress(ROOT_StorageType,clid,tespath), m_stream(0) {}

Member Function Documentation

template<class StreamType>
void RootIOAddress< StreamType >::setStream ( StreamType *  stream) [inline]

Definition at line 41 of file RootIOAddress.h.

template<class StreamType>
StreamType* RootIOAddress< StreamType >::stream ( ) const [inline]

Definition at line 44 of file RootIOAddress.h.

{ return m_stream; }
template<class StreamType>
const std::string& RootIOAddress< StreamType >::tespath ( ) const [inline]

Return the TES (and TFile) path.

The last element is the tree / TES object name.

Definition at line 49 of file RootIOAddress.h.

{ return m_par[0]; }
template<class StreamType>
std::string RootIOAddress< StreamType >::tesdir ( ) const [inline]

Return just the TES (and TFile) path.

As above but the TES object name is removed. If top level, then "/" is returned.

Definition at line 53 of file RootIOAddress.h.

                             {
        std::string::size_type slash = m_par[0].rfind('/');
        if (!slash || slash == std::string::npos) return "/";
        return m_par[0].substr(0,slash);
    }
template<class StreamType>
std::string RootIOAddress< StreamType >::treename ( ) const [inline]

Return just the tree / TES object name.

Definition at line 60 of file RootIOAddress.h.

                               {
        std::string::size_type slash = m_par[0].rfind('/');
        if (!slash || slash == std::string::npos) return m_par[0];
        return m_par[0].substr(slash+1);
    }
template<class StreamType>
std::string RootIOAddress< StreamType >::branchname ( ) const [inline]

Return a branch name based on the TES path.

Definition at line 67 of file RootIOAddress.h.

                                 {
        return RootIO::branchname(tespath());
    }
template<class StreamType>
int RootIOAddress< StreamType >::entry ( ) const [inline]

Definition at line 71 of file RootIOAddress.h.

{ return m_ipar[0]; }
template<class StreamType>
void RootIOAddress< StreamType >::setEntry ( int  entry) [inline]

Definition at line 72 of file RootIOAddress.h.

{ m_ipar[0] = entry; }

Member Data Documentation

template<class StreamType>
StreamType* RootIOAddress< StreamType >::m_stream [mutable, private]

Definition at line 33 of file RootIOAddress.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:58:18 for RootIOSvc by doxygen 1.7.4