ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaRoot
AthenaRootComps
src
RootBranchAddress.h
Go to the documentation of this file.
1
2
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
31
class
RootBranchAddress
32
:
public
GenericAddress
33
{
34
36
// Public methods:
38
public
:
39
41
RootBranchAddress
();
42
44
RootBranchAddress
(
const
RootBranchAddress
& rhs );
45
47
RootBranchAddress
&
operator=
(
const
RootBranchAddress
& rhs );
48
50
RootBranchAddress
(
long
svc,
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
88
RootType
m_type
;
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
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
RootType.h
RootType
TTypeAdapter RootType
Definition
RootType.h:211
Athena::RootBranchAddress::setBranchAddress
void setBranchAddress(const RootType &t)
setup the ROOT TTree internal address for the branch.
Definition
RootBranchAddress.cxx:92
Athena::RootBranchAddress::m_branch
TBranch * m_branch
the branch we are connected to.
Definition
RootBranchAddress.h:92
Athena::RootBranchAddress::m_ptr
void * m_ptr
Definition
RootBranchAddress.h:89
Athena::RootBranchAddress::m_type
RootType m_type
the buffer for the TBranch
Definition
RootBranchAddress.h:88
Athena::RootBranchAddress::RootBranchAddress
RootBranchAddress()
Default constructor:
Definition
RootBranchAddress.cxx:35
Athena::RootBranchAddress::ttree
TTree * ttree()
the TTree whose branch we proxy
Definition
RootBranchAddress.cxx:217
Athena::RootBranchAddress::~RootBranchAddress
virtual ~RootBranchAddress()
Destructor:
Definition
RootBranchAddress.cxx:76
Athena::RootBranchAddress::operator=
RootBranchAddress & operator=(const RootBranchAddress &rhs)
Assignment operator:
Definition
RootBranchAddress.cxx:50
Athena
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
Definition
AthDsoUtils.h:10
Generated on
for ATLAS Offline Software by
1.17.0