ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Attributes | List of all members
AtTabInfoFairRoot< T > Class Template Reference

Class for tracking the information from a branch of the FairRoot source tree. More...

#include <AtTabInfo.h>

Inheritance diagram for AtTabInfoFairRoot< T >:
Inheritance graph
[legend]
Collaboration diagram for AtTabInfoFairRoot< T >:
Collaboration graph
[legend]

Public Member Functions

 AtTabInfoFairRoot (DataHandling::AtBranch &branch)
 
 ~AtTabInfoFairRoot ()
 
std::string GetDefaultName () override
 Default name for info type. More...
 
T * GetInfo ()
 
T * Get ()
 
const T * operator-> () const
 
const T & operator* () const
 
T * operator-> ()
 
T & operator* ()
 
const DataHandling::AtBranchGetBranch () const
 
- Public Member Functions inherited from AtTabInfoBase
 AtTabInfoBase ()=default
 
virtual ~AtTabInfoBase ()=default
 

Protected Attributes

DataHandling::AtBranchfBranchName
 
TString fCurrentBranchName
 
TClonesArray * fArray {nullptr}
 

Detailed Description

template<typename T>
class AtTabInfoFairRoot< T >

Class for tracking the information from a branch of the FairRoot source tree.

Templated class, for an AtRawEvent it would be instantiated like AtTabInfo<AtRawEvent>. Switched to template to make adding additional info types stored on the TTree trivial to add.

Definition at line 88 of file AtTabInfo.h.

Constructor & Destructor Documentation

◆ AtTabInfoFairRoot()

template<typename T >
AtTabInfoFairRoot< T >::AtTabInfoFairRoot ( DataHandling::AtBranch branch)
inline

Definition at line 96 of file AtTabInfo.h.

◆ ~AtTabInfoFairRoot()

template<typename T >
AtTabInfoFairRoot< T >::~AtTabInfoFairRoot ( )
inline

Definition at line 97 of file AtTabInfo.h.

Member Function Documentation

◆ Get()

template<typename T >
T* AtTabInfoFairRoot< T >::Get ( )
inline

Definition at line 102 of file AtTabInfo.h.

◆ GetBranch()

template<typename T >
const DataHandling::AtBranch& AtTabInfoFairRoot< T >::GetBranch ( ) const
inline

Definition at line 117 of file AtTabInfo.h.

◆ GetDefaultName()

template<typename T >
std::string AtTabInfoFairRoot< T >::GetDefaultName ( )
inlineoverridevirtual

Default name for info type.

Implements AtTabInfoBase.

Definition at line 99 of file AtTabInfo.h.

◆ GetInfo()

template<typename T >
T* AtTabInfoFairRoot< T >::GetInfo ( )
inline

Definition at line 101 of file AtTabInfo.h.

◆ operator*() [1/2]

template<typename T >
T& AtTabInfoFairRoot< T >::operator* ( )
inline

Definition at line 115 of file AtTabInfo.h.

◆ operator*() [2/2]

template<typename T >
const T& AtTabInfoFairRoot< T >::operator* ( ) const
inline

Definition at line 113 of file AtTabInfo.h.

◆ operator->() [1/2]

template<typename T >
T* AtTabInfoFairRoot< T >::operator-> ( )
inline

Definition at line 114 of file AtTabInfo.h.

◆ operator->() [2/2]

template<typename T >
const T* AtTabInfoFairRoot< T >::operator-> ( ) const
inline

Definition at line 112 of file AtTabInfo.h.

Member Data Documentation

◆ fArray

template<typename T >
TClonesArray* AtTabInfoFairRoot< T >::fArray {nullptr}
protected

Definition at line 93 of file AtTabInfo.h.

◆ fBranchName

template<typename T >
DataHandling::AtBranch& AtTabInfoFairRoot< T >::fBranchName
protected

Definition at line 91 of file AtTabInfo.h.

◆ fCurrentBranchName

template<typename T >
TString AtTabInfoFairRoot< T >::fCurrentBranchName
protected

Definition at line 92 of file AtTabInfo.h.


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