Belle II Software development
BranchInterface< ValueType > Struct Template Reference

simple struct for interfacing the Branch. More...

#include <BranchInterface.h>

Public Member Functions

 BranchInterface ()
 constructor
 
void update (Long64_t entry)
 update entry
 

Public Attributes

std::string name
 carries name of branch.
 
TBranch * branch
 carries pointer to branch.
 
ValueType value
 carries value of current branchEntry.
 

Detailed Description

template<class ValueType>
struct Belle2::BranchInterface< ValueType >

simple struct for interfacing the Branch.


Definition at line 22 of file BranchInterface.h.

Constructor & Destructor Documentation

◆ BranchInterface()

BranchInterface ( )
inline

constructor

Definition at line 28 of file BranchInterface.h.

28: name(""), branch(nullptr), value(ValueType(0)) {}
std::string name
carries name of branch.
ValueType value
carries value of current branchEntry.
TBranch * branch
carries pointer to branch.

Member Function Documentation

◆ update()

void update ( Long64_t  entry)
inline

update entry

Definition at line 31 of file BranchInterface.h.

31{ branch->GetEntry(entry); }

Member Data Documentation

◆ branch

TBranch* branch

carries pointer to branch.

Definition at line 24 of file BranchInterface.h.

◆ name

std::string name

carries name of branch.

Definition at line 23 of file BranchInterface.h.

◆ value

ValueType value

carries value of current branchEntry.

Definition at line 25 of file BranchInterface.h.


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