BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RootAddress Class Reference

Definition of a Root address, derived from IOpaqueAddress. More...

#include <RootAddress.h>

Inheritance diagram for RootAddress:

Public Member Functions

 RootAddress ()
 RootAddress (unsigned char svc, const CLID &clid, const std::string path="", const std::string treename="", const std::string branchname="", int entry=-1)
virtual ~RootAddress ()
std::string getTreename () const
virtual void setTreename (std::string treename)
std::string getBranchname (int i) const
std::string getPath () const
Int_t getEntryNr () const
Short_t getNrBranches () const
void setEntryNr (int entry)
void Print () const
 RootAddress ()
 RootAddress (unsigned char svc, const CLID &clid, const std::string path="", const std::string treename="", const std::string branchname="", int entry=-1)
virtual ~RootAddress ()
std::string getTreename () const
virtual void setTreename (std::string treename)
std::string getBranchname (int i) const
std::string getPath () const
Int_t getEntryNr () const
Short_t getNrBranches () const
void setEntryNr (int entry)
void Print () const
 RootAddress ()
 RootAddress (unsigned char svc, const CLID &clid, const std::string path="", const std::string treename="", const std::string branchname="", int entry=-1)
virtual ~RootAddress ()
std::string getTreename () const
virtual void setTreename (std::string treename)
std::string getBranchname (int i) const
std::string getPath () const
Int_t getEntryNr () const
Short_t getNrBranches () const
void setEntryNr (int entry)
void Print () const

Detailed Description

Definition of a Root address, derived from IOpaqueAddress.

Based on SICb's Address class. Contains Root Treenames and branchnames and nr of entry to be able to retrieve the object. Based on the RootAddress of Glast.

Definition at line 21 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

Constructor & Destructor Documentation

◆ RootAddress() [1/6]

RootAddress::RootAddress ( )
inline

Definition at line 24 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

24{ ; }

◆ RootAddress() [2/6]

RootAddress::RootAddress ( unsigned char svc,
const CLID & clid,
const std::string path = "",
const std::string treename = "",
const std::string branchname = "",
int entry = -1 )

Definition at line 7 of file RootAddress.cxx.

9 : GenericAddress( svc, clid, path, "", 0, 0 ) {
10 // parse branchname and store what has to be read
11 m_branchname = branchname;
12 int s = branchname.size();
13 m_nrBranches = 0;
14 if ( branchname.size() )
15 {
16 int pos = 0, where = 1;
17 while ( where != std::string::npos )
18 {
19 m_nrBranches++;
20 where = branchname.find( ":", pos );
21 pos = where + 1;
22 }
23 }
24
25 m_treename = treename;
26 m_path = path;
27 m_entrynr = entry;
28}
XmlRpcServer s

◆ ~RootAddress() [1/3]

virtual RootAddress::~RootAddress ( )
inlinevirtual

Definition at line 28 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

28{}

◆ RootAddress() [3/6]

RootAddress::RootAddress ( )
inline

◆ RootAddress() [4/6]

RootAddress::RootAddress ( unsigned char svc,
const CLID & clid,
const std::string path = "",
const std::string treename = "",
const std::string branchname = "",
int entry = -1 )

◆ ~RootAddress() [2/3]

virtual RootAddress::~RootAddress ( )
inlinevirtual

◆ RootAddress() [5/6]

RootAddress::RootAddress ( )
inline

◆ RootAddress() [6/6]

RootAddress::RootAddress ( unsigned char svc,
const CLID & clid,
const std::string path = "",
const std::string treename = "",
const std::string branchname = "",
int entry = -1 )

◆ ~RootAddress() [3/3]

virtual RootAddress::~RootAddress ( )
inlinevirtual

Member Function Documentation

◆ getBranchname() [1/3]

std::string RootAddress::getBranchname ( int i) const

Definition at line 34 of file RootAddress.cxx.

34 {
35 int pos = 0, where = -1;
36 int i = 0;
37 while ( i <= nb )
38 {
39 pos = where + 1;
40 where = m_branchname.find( ":", pos );
41 i++;
42 }
43 if ( where == std::string::npos ) where = m_branchname.size();
44
45 return m_branchname.substr( pos, where - pos );
46}

Referenced by RootEventBaseCnv::createObj().

◆ getBranchname() [2/3]

std::string RootAddress::getBranchname ( int i) const

◆ getBranchname() [3/3]

std::string RootAddress::getBranchname ( int i) const

◆ getEntryNr() [1/3]

Int_t RootAddress::getEntryNr ( ) const
inline

Definition at line 33 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

33{ return m_entrynr; }

Referenced by RootEventBaseCnv::createObj().

◆ getEntryNr() [2/3]

Int_t RootAddress::getEntryNr ( ) const
inline

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootCnvSvc/RootAddress.h.

33{ return m_entrynr; }

◆ getEntryNr() [3/3]

Int_t RootAddress::getEntryNr ( ) const
inline

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-opt/include/RootCnvSvc/RootAddress.h.

33{ return m_entrynr; }

◆ getNrBranches() [1/3]

Short_t RootAddress::getNrBranches ( ) const
inline

Definition at line 34 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

34{ return m_nrBranches; }

Referenced by RootEventBaseCnv::createObj().

◆ getNrBranches() [2/3]

Short_t RootAddress::getNrBranches ( ) const
inline

Definition at line 34 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootCnvSvc/RootAddress.h.

34{ return m_nrBranches; }

◆ getNrBranches() [3/3]

Short_t RootAddress::getNrBranches ( ) const
inline

Definition at line 34 of file InstallArea/x86_64-el9-gcc13-opt/include/RootCnvSvc/RootAddress.h.

34{ return m_nrBranches; }

◆ getPath() [1/3]

std::string RootAddress::getPath ( ) const
inline

Definition at line 32 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

32{ return m_path; }

Referenced by RootEventBaseCnv::createObj().

◆ getPath() [2/3]

std::string RootAddress::getPath ( ) const
inline

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootCnvSvc/RootAddress.h.

32{ return m_path; }

◆ getPath() [3/3]

std::string RootAddress::getPath ( ) const
inline

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-opt/include/RootCnvSvc/RootAddress.h.

32{ return m_path; }

◆ getTreename() [1/3]

◆ getTreename() [2/3]

std::string RootAddress::getTreename ( ) const
inline

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootCnvSvc/RootAddress.h.

29{ return m_treename; }

◆ getTreename() [3/3]

std::string RootAddress::getTreename ( ) const
inline

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-opt/include/RootCnvSvc/RootAddress.h.

29{ return m_treename; }

◆ Print() [1/3]

void RootAddress::Print ( ) const

Definition at line 29 of file RootAddress.cxx.

29 {
30 std::cout << "RootAddress: path " << m_path << ", treename " << m_treename << " branchname "
31 << m_branchname << " entry " << m_entrynr << std::endl;
32}

◆ Print() [2/3]

void RootAddress::Print ( ) const

◆ Print() [3/3]

void RootAddress::Print ( ) const

◆ setEntryNr() [1/3]

void RootAddress::setEntryNr ( int entry)
inline

Definition at line 35 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

35{ m_entrynr = entry; }

Referenced by RootEventBaseCnv::createObj().

◆ setEntryNr() [2/3]

void RootAddress::setEntryNr ( int entry)
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootCnvSvc/RootAddress.h.

35{ m_entrynr = entry; }

◆ setEntryNr() [3/3]

void RootAddress::setEntryNr ( int entry)
inline

Definition at line 35 of file InstallArea/x86_64-el9-gcc13-opt/include/RootCnvSvc/RootAddress.h.

35{ m_entrynr = entry; }

◆ setTreename() [1/3]

virtual void RootAddress::setTreename ( std::string treename)
inlinevirtual

Definition at line 30 of file Event/RootCnvSvc/include/RootCnvSvc/RootAddress.h.

30{ m_treename = treename; }

◆ setTreename() [2/3]

virtual void RootAddress::setTreename ( std::string treename)
inlinevirtual

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-dbg/include/RootCnvSvc/RootAddress.h.

30{ m_treename = treename; }

◆ setTreename() [3/3]

virtual void RootAddress::setTreename ( std::string treename)
inlinevirtual

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-opt/include/RootCnvSvc/RootAddress.h.

30{ m_treename = treename; }

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