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

#include <AtTabPad.h>

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

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)
 
- 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 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...
 
- 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

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::AtPadNumfPadNum
 
std::unordered_map< Int_t, TF1VecfDrawHits
 
- 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

Class for drawing traces from pads in an AtRawEvent.

Definition at line 33 of file AtTabPad.h.

Member Typedef Documentation

◆ TF1Vec

using AtTabPad::TF1Vec = std::vector<std::unique_ptr<TF1> >
protected

Definition at line 36 of file AtTabPad.h.

Member Enumeration Documentation

◆ PadDrawType

enum AtTabPad::PadDrawType
strongprotected
Enumerator
kADC 
kRawADC 
kArrAug 
kAuxPad 
kFPN 

Definition at line 35 of file AtTabPad.h.

Constructor & Destructor Documentation

◆ AtTabPad()

AtTabPad::AtTabPad ( int  nRow = 1,
int  nCol = 1,
TString  name = "AtPad" 
)

Definition at line 35 of file AtTabPad.cxx.

◆ ~AtTabPad()

AtTabPad::~AtTabPad ( )

Definition at line 43 of file AtTabPad.cxx.

Member Function Documentation

◆ DrawADC()

void AtTabPad::DrawADC ( int  row = 0,
int  col = 0 
)

Definition at line 231 of file AtTabPad.cxx.

◆ DrawArrayAug()

void AtTabPad::DrawArrayAug ( TString  augName,
int  row = 0,
int  col = 0 
)

Definition at line 246 of file AtTabPad.cxx.

◆ DrawAuxADC()

void AtTabPad::DrawAuxADC ( TString  auxName,
int  row = 0,
int  col = 0 
)

Definition at line 252 of file AtTabPad.cxx.

◆ DrawFPN()

void AtTabPad::DrawFPN ( int  row = 0,
int  col = 0 
)

Definition at line 236 of file AtTabPad.cxx.

◆ DrawHits()

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.

◆ DrawRawADC()

void AtTabPad::DrawRawADC ( int  row = 0,
int  col = 0 
)

Definition at line 241 of file AtTabPad.cxx.

◆ Exec()

void AtTabPad::Exec ( )
overridevirtual

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

Implements AtTabBase.

Definition at line 68 of file AtTabPad.cxx.

◆ InitTab()

void AtTabPad::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 48 of file AtTabPad.cxx.

◆ MakeTab()

void AtTabPad::MakeTab ( TEveWindowSlot *  slot)
overrideprotectedvirtual

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

Reimplemented from AtTabCanvas.

Definition at line 63 of file AtTabPad.cxx.

◆ Update()

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

Implements DataHandling::AtObserver.

Definition at line 92 of file AtTabPad.cxx.

Member Data Documentation

◆ fAugNames

std::unordered_map<Int_t, std::string> AtTabPad::fAugNames
protected

Let root handle hist memory.

Definition at line 41 of file AtTabPad.h.

◆ fDrawHits

std::unordered_map<Int_t, TF1Vec> AtTabPad::fDrawHits
protected

Definition at line 44 of file AtTabPad.h.

◆ fDrawMap

std::unordered_map<Int_t, std::pair<PadDrawType, TH1D *> > AtTabPad::fDrawMap
protected

<location, <type, histo> location is row * nCols + col

Definition at line 40 of file AtTabPad.h.

◆ fPadNum

DataHandling::AtPadNum* AtTabPad::fPadNum
protected

Definition at line 42 of file AtTabPad.h.


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