RootBranchInfo.h
Go to the documentation of this file.
1 #ifndef art_Framework_IO_Root_RootBranchInfo_h
2 #define art_Framework_IO_Root_RootBranchInfo_h
3 
4 namespace art {
5  class RootBranchInfo;
6 }
7 
8 #include "TBranch.h"
9 
10 #include <string>
11 
13 public:
14  explicit RootBranchInfo(TBranch* branch = 0);
15  std::string const& branchName() const;
16  TBranch const* branch() const;
17  TBranch* branch();
18 
19 private:
20  TBranch* branch_;
22 };
23 
24 inline std::string const&
26 {
27  return branchName_;
28 }
29 
30 inline TBranch const*
32 {
33  return branch_;
34 }
35 
36 inline TBranch*
38 {
39  return branch_;
40 }
41 
42 #endif /* art_Framework_IO_Root_RootBranchInfo_h */
43 
44 // Local Variables:
45 // mode: c++
46 // End:
std::string string
Definition: nybbler.cc:12
std::string const & branchName() const
RootBranchInfo(TBranch *branch=0)
TBranch const * branch() const
std::string branchName_