ATLAS Offline Software
Loading...
Searching...
No Matches
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
21
22// Forward declaration
23class TTree;
24class TBranch;
25
26namespace Athena {
27
32 : public GenericAddress
33{
34
36 // Public methods:
38 public:
39
42
45
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
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
uint32_t CLID
The Class ID type.
TTypeAdapter RootType
Definition RootType.h:211
void setBranchAddress(const RootType &t)
setup the ROOT TTree internal address for the branch.
TBranch * m_branch
the branch we are connected to.
RootType m_type
the buffer for the TBranch
RootBranchAddress()
Default constructor:
TTree * ttree()
the TTree whose branch we proxy
virtual ~RootBranchAddress()
Destructor:
RootBranchAddress & operator=(const RootBranchAddress &rhs)
Assignment operator:
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....