|
ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
Tab for drawing arbitrary functions (probably needs refactor) More...
#include <AtTabMacro.h>


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... | |
| AtTabInfo * | GetTabInfo () |
| 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::AtPadNum * | fPadNum |
| 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< AtTabInfo > | fTabInfo {std::make_unique<AtTabInfo>()} |
Additional Inherited Members | |
Static Protected Attributes inherited from AtTabBase | |
| static int | fNumTabs = 0 |
Tab for drawing arbitrary functions (probably needs refactor)
Definition at line 24 of file AtTabMacro.h.
| AtTabMacro::AtTabMacro | ( | int | nRow = 1, |
| int | nCol = 1, |
||
| TString | name = "Macro" |
||
| ) |
Definition at line 21 of file AtTabMacro.cxx.
| AtTabMacro::~AtTabMacro | ( | ) |
Definition at line 29 of file AtTabMacro.cxx.
|
protected |
Definition at line 53 of file AtTabMacro.cxx.
|
overridevirtual |
Called after the run's Exec() to update tab.
Implements AtTabBase.
Definition at line 62 of file AtTabMacro.cxx.
|
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.
|
overrideprotectedvirtual |
Create the gui components of the tab in the passed window slot.
Reimplemented from AtTabCanvas.
Definition at line 46 of file AtTabMacro.cxx.
| void AtTabMacro::SetDrawEventFunction | ( | std::function< void(AtTabInfo(*))> | function, |
| int | row = 0, |
||
| int | col = 0 |
||
| ) |
Definition at line 88 of file AtTabMacro.cxx.
| void AtTabMacro::SetDrawPadFunction | ( | std::function< void(AtTabInfo(*), Int_t)> | function, |
| int | row = 0, |
||
| int | col = 0 |
||
| ) |
Definition at line 93 of file AtTabMacro.cxx.
| void AtTabMacro::SetDrawTreeFunction | ( | std::function< void(AtTabInfo(*))> | function, |
| int | row = 0, |
||
| int | col = 0 |
||
| ) |
Definition at line 83 of file AtTabMacro.cxx.
|
overridevirtual |
Implements DataHandling::AtObserver.
Definition at line 71 of file AtTabMacro.cxx.
|
protected |
Definition at line 29 of file AtTabMacro.h.
|
protected |
Definition at line 30 of file AtTabMacro.h.
|
protected |
Definition at line 28 of file AtTabMacro.h.
|
protected |
Definition at line 26 of file AtTabMacro.h.
1.8.18