ATLAS Offline Software
RootBranchAddress.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // RootBranchAddress.h
8 // Header file for class Athena::RootBranchAddress
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef ATHENAROOTCOMPS_ATHENAROOTBRANCHADDRESS_H
12 #define ATHENAROOTCOMPS_ATHENAROOTBRANCHADDRESS_H 1
13 
14 // STL includes
15 #include <string>
16 
17 // Gaudi includes
18 #include "GaudiKernel/GenericAddress.h"
19 
20 #include "DataModelRoot/RootType.h"
21 
22 // Forward declaration
23 class TTree;
24 class TBranch;
25 
26 namespace Athena {
27 
32  : public GenericAddress
33 {
34 
36  // Public methods:
38  public:
39 
42 
45 
48 
51  const CLID& clid,
52  const std::string& p1="",
53  const std::string& p2="",
54  unsigned long ip1=0,
55  unsigned long ip2=0);
56 
58  virtual ~RootBranchAddress();
59 
61  // Const methods:
63 
65  // Non-const methods:
67 
76  void
77  setBranchAddress(const RootType& t);
78 
80  TTree *ttree();
81 
83  // Private data:
85  //private:
86 
89  void* m_ptr;
90 
92  TBranch *m_branch;
93 };
94 
96 // Inline methods:
98 //std::ostream& operator<<( std::ostream& out, const RootBranchAddress& o );
99 
100 } //> end namespace Athena
101 
102 #endif //> !ATHENAROOTCOMPS_ROOTBRANCHADDRESS_H
Athena::RootBranchAddress
Definition: RootBranchAddress.h:33
Athena::RootBranchAddress::m_type
RootType m_type
the buffer for the TBranch
Definition: RootBranchAddress.h:88
Athena::RootBranchAddress::m_branch
TBranch * m_branch
the branch we are connected to.
Definition: RootBranchAddress.h:92
Athena::RootBranchAddress::ttree
TTree * ttree()
the TTree whose branch we proxy
Definition: RootBranchAddress.cxx:218
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Athena::RootBranchAddress::RootBranchAddress
RootBranchAddress()
Default constructor:
Definition: RootBranchAddress.cxx:36
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
Athena::RootBranchAddress::setBranchAddress
void setBranchAddress(const RootType &t)
setup the ROOT TTree internal address for the branch.
Definition: RootBranchAddress.cxx:93
Athena::RootBranchAddress::~RootBranchAddress
virtual ~RootBranchAddress()
Destructor:
Definition: RootBranchAddress.cxx:77
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
RootType.h
Athena::RootBranchAddress::operator=
RootBranchAddress & operator=(const RootBranchAddress &rhs)
Assignment operator:
Definition: RootBranchAddress.cxx:51
Athena::RootBranchAddress::m_ptr
void * m_ptr
Definition: RootBranchAddress.h:89
TScopeAdapter
Definition: RootType.h:119