ATLAS Offline Software
|
Class describing one branch of the ROOT file. More...
#include <EventFormatElement.h>
Public Types | |
using | sgkey_t = SG::sgkey_t |
Public Member Functions | |
EventFormatElement (const std::string &branchName="", const std::string &className="", const std::string &parentName="", sgkey_t hash=0) | |
Constructor with all members specified. More... | |
const std::string & | branchName () const |
Get the branch/key name. More... | |
const std::string & | className () const |
Get the class name of this branch/key. More... | |
const std::string & | parentName () const |
Get the name of the parent auxiliary object. More... | |
sgkey_t | hash () const |
Get the hash belonging to this branch/key. More... | |
Private Attributes | |
std::string | m_branchName |
The branch/key name. More... | |
std::string | m_className |
The class name belonging to this branch/key. More... | |
std::string | m_parentName |
The name of the parent auxiliary object. More... | |
sgkey_t | m_hash |
The hash belonging to this branch/key. More... | |
Class describing one branch of the ROOT file.
This class describes a single, ROOT-readable branch of an xAOD file. It is used to figure out the hash <-> branch name associations, and which auxiliary branches belong to which auxiliary object.
This class doesn't have a "versioned name", as it is not meant to be written to a file directly, it should just be used as a transient means of storing data.
Definition at line 39 of file EventFormatElement.h.
Definition at line 42 of file EventFormatElement.h.
xAOD::EventFormatElement::EventFormatElement | ( | const std::string & | branchName = "" , |
const std::string & | className = "" , |
||
const std::string & | parentName = "" , |
||
sgkey_t | hash = 0 |
||
) |
Constructor with all members specified.
branchName | Name of the branch that is described by the object |
className | Name of the transient class to be used for reading |
parentName | Name of the parent auxiliary object |
hash | A hashed version of the branch name |
Definition at line 20 of file EventFormatElement.cxx.
const std::string & xAOD::EventFormatElement::branchName | ( | ) | const |
Get the branch/key name.
Definition at line 30 of file EventFormatElement.cxx.
const std::string & xAOD::EventFormatElement::className | ( | ) | const |
Get the class name of this branch/key.
Definition at line 36 of file EventFormatElement.cxx.
EventFormatElement::sgkey_t xAOD::EventFormatElement::hash | ( | ) | const |
Get the hash belonging to this branch/key.
Definition at line 48 of file EventFormatElement.cxx.
const std::string & xAOD::EventFormatElement::parentName | ( | ) | const |
Get the name of the parent auxiliary object.
Definition at line 42 of file EventFormatElement.cxx.
|
private |
The branch/key name.
Definition at line 61 of file EventFormatElement.h.
|
private |
The class name belonging to this branch/key.
Definition at line 63 of file EventFormatElement.h.
|
private |
The hash belonging to this branch/key.
Definition at line 67 of file EventFormatElement.h.
|
private |
The name of the parent auxiliary object.
Definition at line 65 of file EventFormatElement.h.