ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <AtTabPad.h>
Public Member Functions | |
AtTabPad (int nRow=1, int nCol=1, TString name="AtPad") | |
~AtTabPad () | |
void | InitTab () override |
void | Exec () override |
Called after the run's Exec() to update tab. More... | |
void | Update (DataHandling::AtSubject *sub) override |
void | DrawADC (int row=0, int col=0) |
void | DrawRawADC (int row=0, int col=0) |
void | DrawArrayAug (TString augName, int row=0, int col=0) |
void | DrawAuxADC (TString auxName, int row=0, int col=0) |
void | DrawFPN (int row=0, int col=0) |
void | DrawHits (int row=0, int col=0) |
![]() | |
AtTabCanvas (TString name, Int_t rows=1, Int_t cols=1) | |
![]() | |
AtTabBase (TString tabName) | |
virtual | ~AtTabBase ()=default |
void | Init () |
Called in the init stage of the run. More... | |
AtTabInfo * | GetTabInfo () |
void | SetTabName (TString name) |
![]() | |
virtual | ~AtObserver ()=default |
Protected Types | |
enum | PadDrawType { PadDrawType::kADC, PadDrawType::kRawADC, PadDrawType::kArrAug, PadDrawType::kAuxPad, PadDrawType::kFPN } |
using | TF1Vec = std::vector< std::unique_ptr< TF1 > > |
Protected Member Functions | |
void | MakeTab (TEveWindowSlot *) override |
Create the gui components of the tab in the passed window slot. More... | |
![]() | |
void | UpdateCanvas () |
![]() | |
template<typename T > | |
T * | GetFairRootInfo (std::string infoName=T::Class_Name()) |
Protected Attributes | |
std::unordered_map< Int_t, std::pair< PadDrawType, TH1D * > > | fDrawMap |
std::unordered_map< Int_t, std::string > | fAugNames |
Let root handle hist memory. More... | |
DataHandling::AtPadNum * | fPadNum |
std::unordered_map< Int_t, TF1Vec > | fDrawHits |
![]() | |
TCanvas * | fCanvas {nullptr} |
Int_t | fRows |
Int_t | fCols |
![]() | |
Int_t | fTabId {0} |
TString | fTabName |
std::unique_ptr< AtTabInfo > | fTabInfo {std::make_unique<AtTabInfo>()} |
Additional Inherited Members | |
![]() | |
static int | fNumTabs = 0 |
Class for drawing traces from pads in an AtRawEvent.
Definition at line 33 of file AtTabPad.h.
|
protected |
Definition at line 36 of file AtTabPad.h.
|
strongprotected |
Enumerator | |
---|---|
kADC | |
kRawADC | |
kArrAug | |
kAuxPad | |
kFPN |
Definition at line 35 of file AtTabPad.h.
AtTabPad::AtTabPad | ( | int | nRow = 1 , |
int | nCol = 1 , |
||
TString | name = "AtPad" |
||
) |
Definition at line 35 of file AtTabPad.cxx.
AtTabPad::~AtTabPad | ( | ) |
Definition at line 43 of file AtTabPad.cxx.
void AtTabPad::DrawADC | ( | int | row = 0 , |
int | col = 0 |
||
) |
Definition at line 231 of file AtTabPad.cxx.
void AtTabPad::DrawArrayAug | ( | TString | augName, |
int | row = 0 , |
||
int | col = 0 |
||
) |
Definition at line 246 of file AtTabPad.cxx.
void AtTabPad::DrawAuxADC | ( | TString | auxName, |
int | row = 0 , |
||
int | col = 0 |
||
) |
Definition at line 252 of file AtTabPad.cxx.
void AtTabPad::DrawFPN | ( | int | row = 0 , |
int | col = 0 |
||
) |
Definition at line 236 of file AtTabPad.cxx.
void AtTabPad::DrawHits | ( | int | row = 0 , |
int | col = 0 |
||
) |
If called will draw a pictoral representation of the hit on the corresponding pad. Requires a parameter file "AtDigiPar" be added to the runtime DB. If the hit has a non-zero Z variance, it will draw a gaussian with integral Q. If the hit has a zero variance will draw a point at (z,Q).
Definition at line 227 of file AtTabPad.cxx.
void AtTabPad::DrawRawADC | ( | int | row = 0 , |
int | col = 0 |
||
) |
Definition at line 241 of file AtTabPad.cxx.
|
overridevirtual |
Called after the run's Exec()
to update tab.
Implements AtTabBase.
Definition at line 68 of file AtTabPad.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 48 of file AtTabPad.cxx.
|
overrideprotectedvirtual |
Create the gui components of the tab in the passed window slot.
Reimplemented from AtTabCanvas.
Definition at line 63 of file AtTabPad.cxx.
|
overridevirtual |
Implements DataHandling::AtObserver.
Definition at line 92 of file AtTabPad.cxx.
|
protected |
Let root handle hist memory.
Definition at line 41 of file AtTabPad.h.
|
protected |
Definition at line 44 of file AtTabPad.h.
|
protected |
<location, <type, histo> location is row * nCols + col
Definition at line 40 of file AtTabPad.h.
|
protected |
Definition at line 42 of file AtTabPad.h.