ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
AtTabBase Class Referenceabstract

#include <AtTabBase.h>

Inheritance diagram for AtTabBase:
Inheritance graph
[legend]
Collaboration diagram for AtTabBase:
Collaboration graph
[legend]

Public Member Functions

 AtTabBase (TString tabName)
 
virtual ~AtTabBase ()=default
 
void Init ()
 Called in the init stage of the run. More...
 
virtual void Exec ()=0
 Called after the run's Exec() to update tab. More...
 
AtTabInfoGetTabInfo ()
 
void SetTabName (TString name)
 

Protected Member Functions

virtual void InitTab ()=0
 
virtual void MakeTab (TEveWindowSlot *slot)=0
 Create the gui components of the tab in the passed window slot. More...
 
template<typename T >
T * GetFairRootInfo (std::string infoName=T::Class_Name())
 

Protected Attributes

Int_t fTabId {0}
 
TString fTabName
 
std::unique_ptr< AtTabInfofTabInfo {std::make_unique<AtTabInfo>()}
 

Static Protected Attributes

static int fNumTabs = 0
 

Detailed Description

Definition at line 27 of file AtTabBase.h.

Constructor & Destructor Documentation

◆ AtTabBase()

AtTabBase::AtTabBase ( TString  tabName)

Definition at line 10 of file AtTabBase.cxx.

◆ ~AtTabBase()

virtual AtTabBase::~AtTabBase ( )
virtualdefault

Member Function Documentation

◆ Exec()

virtual void AtTabBase::Exec ( )
pure virtual

Called after the run's Exec() to update tab.

Implemented in AtTabEnergyLoss, AtTabMain, AtTabFF, AtTabPad, and AtTabMacro.

◆ GetFairRootInfo()

template<typename T >
T* AtTabBase::GetFairRootInfo ( std::string  infoName = T::Class_Name())
inlineprotected

Returns the instance of T (usually an event type) associated with the AtTabInfoFairRoot augment named infoName. If infoName is not passed assume its name is "T".

Definition at line 63 of file AtTabBase.h.

◆ GetTabInfo()

AtTabInfo* AtTabBase::GetTabInfo ( )
inline

Definition at line 45 of file AtTabBase.h.

◆ Init()

void AtTabBase::Init ( )

Called in the init stage of the run.

Init both the tab (InitTab()) and then init the AtTabInfo class.

Definition at line 16 of file AtTabBase.cxx.

◆ InitTab()

virtual void AtTabBase::InitTab ( )
protectedpure virtual

Responsible for creating the fTabInfo object that will be updated on each event. That fTabInfo object will be initialized without user input though

Implemented in AtTabEnergyLoss, AtTabMain, AtTabFF, AtTabPad, AtTabMacro, and AtTabFission.

◆ MakeTab()

virtual void AtTabBase::MakeTab ( TEveWindowSlot *  slot)
protectedpure virtual

Create the gui components of the tab in the passed window slot.

Implemented in AtTabMain, AtTabCanvas, AtTabPad, and AtTabMacro.

◆ SetTabName()

void AtTabBase::SetTabName ( TString  name)
inline

Definition at line 46 of file AtTabBase.h.

Member Data Documentation

◆ fNumTabs

int AtTabBase::fNumTabs = 0
staticprotected

Definition at line 29 of file AtTabBase.h.

◆ fTabId

Int_t AtTabBase::fTabId {0}
protected

Definition at line 30 of file AtTabBase.h.

◆ fTabInfo

std::unique_ptr<AtTabInfo> AtTabBase::fTabInfo {std::make_unique<AtTabInfo>()}
protected

Definition at line 33 of file AtTabBase.h.

◆ fTabName

TString AtTabBase::fTabName
protected

Definition at line 31 of file AtTabBase.h.


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