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

Tab for drawing arbitrary functions (probably needs refactor) More...

#include <AtTabMacro.h>

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

Public Member Functions

 AtTabMacro (int nRow=1, int nCol=1, TString name="Macro")
 
 ~AtTabMacro ()
 
void InitTab () override
 
void Exec () override
 Called after the run's Exec() to update tab. More...
 
void Update (DataHandling::AtSubject *sub) override
 
void SetDrawTreeFunction (std::function< void(AtTabInfo(*))> function, int row=0, int col=0)
 
void SetDrawEventFunction (std::function< void(AtTabInfo(*))> function, int row=0, int col=0)
 
void SetDrawPadFunction (std::function< void(AtTabInfo(*), Int_t)> function, int row=0, int col=0)
 
- Public Member Functions inherited from AtTabCanvas
 AtTabCanvas (TString name, Int_t rows=1, Int_t cols=1)
 
- Public Member Functions inherited from AtTabBase
 AtTabBase (TString tabName)
 
virtual ~AtTabBase ()=default
 
void Init ()
 Called in the init stage of the run. More...
 
AtTabInfoGetTabInfo ()
 
void SetTabName (TString name)
 
- Public Member Functions inherited from DataHandling::AtObserver
virtual ~AtObserver ()=default
 

Protected Member Functions

void MakeTab (TEveWindowSlot *) override
 Create the gui components of the tab in the passed window slot. More...
 
void DrawTree ()
 
- Protected Member Functions inherited from AtTabCanvas
void UpdateCanvas ()
 
- Protected Member Functions inherited from AtTabBase
template<typename T >
T * GetFairRootInfo (std::string infoName=T::Class_Name())
 

Protected Attributes

DataHandling::AtPadNumfPadNum
 
std::unordered_map< Int_t, std::function< void(AtTabInfo(*))> > fDrawTreeMap
 
std::unordered_map< Int_t, std::function< void(AtTabInfo(*))> > fDrawEventMap
 
std::unordered_map< Int_t, std::function< void(AtTabInfo(*), Int_t)> > fDrawPadMap
 
- Protected Attributes inherited from AtTabCanvas
TCanvas * fCanvas {nullptr}
 
Int_t fRows
 
Int_t fCols
 
- Protected Attributes inherited from AtTabBase
Int_t fTabId {0}
 
TString fTabName
 
std::unique_ptr< AtTabInfofTabInfo {std::make_unique<AtTabInfo>()}
 

Additional Inherited Members

- Static Protected Attributes inherited from AtTabBase
static int fNumTabs = 0
 

Detailed Description

Tab for drawing arbitrary functions (probably needs refactor)

Definition at line 24 of file AtTabMacro.h.

Constructor & Destructor Documentation

◆ AtTabMacro()

AtTabMacro::AtTabMacro ( int  nRow = 1,
int  nCol = 1,
TString  name = "Macro" 
)

Definition at line 21 of file AtTabMacro.cxx.

◆ ~AtTabMacro()

AtTabMacro::~AtTabMacro ( )

Definition at line 29 of file AtTabMacro.cxx.

Member Function Documentation

◆ DrawTree()

void AtTabMacro::DrawTree ( )
protected

Definition at line 53 of file AtTabMacro.cxx.

◆ Exec()

void AtTabMacro::Exec ( )
overridevirtual

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

Implements AtTabBase.

Definition at line 62 of file AtTabMacro.cxx.

◆ InitTab()

void AtTabMacro::InitTab ( )
overridevirtual

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

Implements AtTabBase.

Definition at line 33 of file AtTabMacro.cxx.

◆ MakeTab()

void AtTabMacro::MakeTab ( TEveWindowSlot *  slot)
overrideprotectedvirtual

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

Reimplemented from AtTabCanvas.

Definition at line 46 of file AtTabMacro.cxx.

◆ SetDrawEventFunction()

void AtTabMacro::SetDrawEventFunction ( std::function< void(AtTabInfo(*))>  function,
int  row = 0,
int  col = 0 
)

Definition at line 88 of file AtTabMacro.cxx.

◆ SetDrawPadFunction()

void AtTabMacro::SetDrawPadFunction ( std::function< void(AtTabInfo(*), Int_t)>  function,
int  row = 0,
int  col = 0 
)

Definition at line 93 of file AtTabMacro.cxx.

◆ SetDrawTreeFunction()

void AtTabMacro::SetDrawTreeFunction ( std::function< void(AtTabInfo(*))>  function,
int  row = 0,
int  col = 0 
)

Definition at line 83 of file AtTabMacro.cxx.

◆ Update()

void AtTabMacro::Update ( DataHandling::AtSubject sub)
overridevirtual

Implements DataHandling::AtObserver.

Definition at line 71 of file AtTabMacro.cxx.

Member Data Documentation

◆ fDrawEventMap

std::unordered_map<Int_t, std::function<void(AtTabInfo(*))> > AtTabMacro::fDrawEventMap
protected

Definition at line 29 of file AtTabMacro.h.

◆ fDrawPadMap

std::unordered_map<Int_t, std::function<void(AtTabInfo(*), Int_t)> > AtTabMacro::fDrawPadMap
protected

Definition at line 30 of file AtTabMacro.h.

◆ fDrawTreeMap

std::unordered_map<Int_t, std::function<void(AtTabInfo(*))> > AtTabMacro::fDrawTreeMap
protected

Definition at line 28 of file AtTabMacro.h.

◆ fPadNum

DataHandling::AtPadNum* AtTabMacro::fPadNum
protected

Definition at line 26 of file AtTabMacro.h.


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