Warning, file /include/Gaudi/details/BranchWrapper.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #pragma once
0012
0013 #include <Gaudi/Algorithm.h>
0014 #include <GaudiKernel/DataObjectHandle.h>
0015 #include <TTree.h>
0016 #include <gsl/pointers>
0017 #include <string>
0018
0019 namespace Gaudi {
0020 namespace details {
0021
0022
0023
0024
0025 struct BranchWrapper {
0026
0027 private:
0028 void const* m_dataBuffer = nullptr;
0029 TBranch* m_branch = nullptr;
0030 std::string m_className;
0031 std::string m_branchName;
0032 std::string m_location;
0033 std::string m_algName;
0034 void ( *setBranchAddress )( gsl::not_null<TBranch*>,
0035 const void** );
0036
0037
0038 public:
0039 BranchWrapper( const gsl::not_null<TTree*> tree, const std::string& className, const std::string& branchName,
0040 const std::string& location, const std::string& algName );
0041
0042 void setDataPtr( void const* dataPtr );
0043
0044 void setBranchData( const gsl::not_null<DataObject*> pObj );
0045
0046 const std::string& getLocation() const;
0047
0048 const std::string& getClassName() const;
0049 };
0050
0051 }
0052 }