/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
RootInputAddress Class Reference

#include <RootIOAddress.h>

Inheritance diagram for RootInputAddress:
Inheritance graph
[legend]
Collaboration diagram for RootInputAddress:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RootInputAddress (const CLID &clid, const std::string &tespath)
int fileNumber ()
void setFileNumber (int fn)
bool readIsDone ()
void readDone (bool tf=true)
void setStream (RootInputStream *stream)
RootInputStreamstream () 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

bool m_read_done

Detailed Description

Definition at line 76 of file RootIOAddress.h.


Constructor & Destructor Documentation

RootInputAddress::RootInputAddress ( const CLID &  clid,
const std::string &  tespath 
)

Definition at line 4 of file RootIOAddress.cc.

    : RootIOAddress<RootInputStream>(clid,tespath)
{
    m_ipar[1] = -1;
    m_read_done = false;
}

Member Function Documentation

int RootInputAddress::fileNumber ( ) [inline]

Definition at line 82 of file RootIOAddress.h.

{ return m_ipar[1]; }
void RootInputAddress::setFileNumber ( int  fn) [inline]

Definition at line 83 of file RootIOAddress.h.

{ m_ipar[1] = fn; }
bool RootInputAddress::readIsDone ( ) [inline]

Definition at line 84 of file RootIOAddress.h.

{ return m_read_done; }
void RootInputAddress::readDone ( bool  tf = true) [inline]

Definition at line 85 of file RootIOAddress.h.

{ m_read_done = tf; }
void RootIOAddress< RootInputStream >::setStream ( RootInputStream stream) [inline, inherited]

Definition at line 41 of file RootIOAddress.h.

RootInputStream * RootIOAddress< RootInputStream >::stream ( ) const [inline, inherited]

Definition at line 44 of file RootIOAddress.h.

{ return m_stream; }
const std::string& RootIOAddress< RootInputStream >::tespath ( ) const [inline, inherited]

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]; }
std::string RootIOAddress< RootInputStream >::tesdir ( ) const [inline, inherited]

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);
    }
std::string RootIOAddress< RootInputStream >::treename ( ) const [inline, inherited]

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);
    }
std::string RootIOAddress< RootInputStream >::branchname ( ) const [inline, inherited]

Return a branch name based on the TES path.

Definition at line 67 of file RootIOAddress.h.

                                 {
        return RootIO::branchname(tespath());
    }
int RootIOAddress< RootInputStream >::entry ( ) const [inline, inherited]

Definition at line 71 of file RootIOAddress.h.

{ return m_ipar[0]; }
void RootIOAddress< RootInputStream >::setEntry ( int  entry) [inline, inherited]

Definition at line 72 of file RootIOAddress.h.

{ m_ipar[0] = entry; }

Member Data Documentation

Definition at line 78 of file RootIOAddress.h.


The documentation for this class was generated from the following files:
| 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