| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RootIOAddress.cc

Go to the documentation of this file.
00001 #include "RootIOSvc/RootIOAddress.h"
00002 
00003 
00004 RootInputAddress::RootInputAddress(const CLID& clid, const std::string& tespath)
00005     : RootIOAddress<RootInputStream>(clid,tespath)
00006 {
00007     m_ipar[1] = -1;
00008     m_read_done = false;
00009 }
00010 
00011 RootOutputAddress::RootOutputAddress(const CLID& clid, const std::string& tespath)
00012     : RootIOAddress<RootOutputStream>(clid,tespath)
00013 {
00014 }
00015 
00016 namespace RootIO {
00017 
00018     std::string branchname(const std::string tespath)
00019     {
00020         // Catch root-level data objects
00021         if(tespath.rfind("/") == 0)
00022             return tespath.substr(1);
00023         // Initialize with string just after "/Event/"
00024         std::string bn = tespath.substr(std::string("/Event/").size());
00025         for (std::string::size_type ind = 0; ind < bn.size(); ++ind) {
00026             if (bn[ind] == '/') bn[ind] = '_';
00027         }
00028         return bn;
00029     }
00030 }
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:18:19 2011 for RootIOSvc by doxygen 1.4.7