00001 #ifndef RootAddress_H 00002 #define RootAddress_H 1 00003 00004 #include <string> 00005 #include <vector> 00006 #include "GaudiKernel/StatusCode.h" 00007 #include "GaudiKernel/GenericAddress.h" 00008 00009 #include "TObject.h" 00010 00011 extern const long int ROOT_StorageType; 00012 00021 class RootAddress : public GenericAddress { 00022 00023 public: 00024 RootAddress() {;} 00025 RootAddress( unsigned char svc,const CLID& clid, const std::string path ="",const std::string treename ="",const std::string branchname ="",int entry=-1); 00026 virtual ~RootAddress() {} 00027 std::string getTreename() const {return m_treename;} 00028 virtual void setTreename(std::string treename) {m_treename=treename;} 00029 std::string getBranchname(int i) const ; 00030 std::string getPath() const {return m_path;} 00031 Int_t getEntryNr() const {return m_entrynr;} 00032 Short_t getNrBranches() const {return m_nrBranches;} 00033 void setEntryNr(int entry) {m_entrynr=entry;} 00034 void Print() const; 00035 00036 private: 00038 std::string m_treename; 00040 std::string m_branchname; 00042 std::string m_path; 00044 Int_t m_entrynr; 00046 Short_t m_nrBranches; 00047 }; 00048 00049 00050 #endif // RootAddress_H