ATLAS Offline Software
Loading...
Searching...
No Matches
TBranchAuxDynReader::BranchInfo Struct Reference

#include <TBranchAuxDynReader.h>

Collaboration diagram for TBranchAuxDynReader::BranchInfo:

Public Types

enum  Status { NotInitialized , Initialized , TypeError , NotFound }

Public Member Functions

void setAddress (void *data)

Public Attributes

TBranch * branch = 0
TClass * tclass = 0
EDataType edtyp = kOther_t
bool needsSE = false
TClass * SE_tclass = 0
EDataType SE_edt = kOther_t
bool isPackedContainer = false
enum Status status = NotInitialized
SG::auxid_t auxid
std::string attribName

Detailed Description

Definition at line 23 of file TBranchAuxDynReader.h.

Member Enumeration Documentation

◆ Status

Member Function Documentation

◆ setAddress()

void TBranchAuxDynReader::BranchInfo::setAddress ( void * data)

Definition at line 143 of file TBranchAuxDynReader.cxx.

144{
145 if( needsSE ) {
146 if( (edtyp == kULong_t or edtyp == kULong64_t or edtyp == kLong_t or edtyp == kLong64_t) and
147 (SE_edt == kULong_t or SE_edt == kULong64_t or SE_edt == kLong_t or SE_edt == kLong64_t) and
148 sizeof(Long_t) == sizeof(Long64_t) ) {
149 // There is no need to attempt ROOT schema evolution between these types (and it will not work anyhow)
150 needsSE = false;
151 }
152 }
153 if( needsSE ) {
154 // reading through the TTree - allows for schema evolution
155 int rc = branch->GetTree()->SetBranchAddress( branch->GetName(), data, SE_tclass, SE_edt, true);
156 if( rc < 0 ) {
157 std::ostringstream msg;
158 msg << "SetBranchAddress() failed for " << branch->GetName() << " error=" << rc;
159 throw msg.str();
160 }
161 } else {
162 branch->SetAddress(data);
163 }
164}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
static Double_t rc
MsgStream & msg
Definition testRead.cxx:32

Member Data Documentation

◆ attribName

std::string TBranchAuxDynReader::BranchInfo::attribName

Definition at line 40 of file TBranchAuxDynReader.h.

◆ auxid

SG::auxid_t TBranchAuxDynReader::BranchInfo::auxid

Definition at line 39 of file TBranchAuxDynReader.h.

◆ branch

TBranch* TBranchAuxDynReader::BranchInfo::branch = 0

Definition at line 27 of file TBranchAuxDynReader.h.

◆ edtyp

EDataType TBranchAuxDynReader::BranchInfo::edtyp = kOther_t

Definition at line 29 of file TBranchAuxDynReader.h.

◆ isPackedContainer

bool TBranchAuxDynReader::BranchInfo::isPackedContainer = false

Definition at line 36 of file TBranchAuxDynReader.h.

◆ needsSE

bool TBranchAuxDynReader::BranchInfo::needsSE = false

Definition at line 32 of file TBranchAuxDynReader.h.

◆ SE_edt

EDataType TBranchAuxDynReader::BranchInfo::SE_edt = kOther_t

Definition at line 34 of file TBranchAuxDynReader.h.

◆ SE_tclass

TClass* TBranchAuxDynReader::BranchInfo::SE_tclass = 0

Definition at line 33 of file TBranchAuxDynReader.h.

◆ status

enum Status TBranchAuxDynReader::BranchInfo::status = NotInitialized

Definition at line 37 of file TBranchAuxDynReader.h.

◆ tclass

TClass* TBranchAuxDynReader::BranchInfo::tclass = 0

Definition at line 28 of file TBranchAuxDynReader.h.


The documentation for this struct was generated from the following files: