REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
TRestBrowser Class Reference

Detailed Description

Event browser for different input file.

This class opens input file with TRestRun and shows the plot of each event The plot is shown through TRestEventViewer interface on the right. On the left there is a control bar to switch the events. Plot options can also be given.


RESTsoft - Software for Rare Event Searches with TPCs

History of developments:

2014-june: First concept. As part of conceptualization of previous REST code (REST v2) Igor G. Irastorza

2017-Aug: Major change: added for multi-thread capability Kaixiang Ni


Definition at line 24 of file TRestBrowser.h.

#include <TRestBrowser.h>

Public Member Functions

void EventTypeChangedAction (Int_t id)
 
TRestEventViewerGetViewer () const
 
void IdValueChangedAction (Long_t val)
 
void Initialize (const TString &opt="FI")
 
void LoadFileAction ()
 
void NextEventAction ()
 
void NextPlotOptionAction ()
 
Bool_t OpenFile (const TString &filename)
 
void PlotAction ()
 
void PreviousEventAction ()
 
void PreviousPlotOptionAction ()
 
void RowValueChangedAction (Long_t val)
 
void SetInputEvent (TRestEvent *)
 
void SetWindowName (const TString &windowName)
 
 TRestBrowser (const TString &viewerName, Double_t geomScale=0.1)
 

Static Public Member Functions

static void ExitAction ()
 
static void InitFromConfigFile ()
 

Protected Attributes

TBrowser * fBrowser = nullptr
 
TGTextButton * fButEveNext = nullptr
 Previous plot option. More...
 
TGTextButton * fButEvePrev = nullptr
 TextBox for plot options. More...
 
TGPictureButton * fButOptNext = nullptr
 Refresh plot. More...
 
TGPictureButton * fButOptPrev = nullptr
 TextBox for plot options. More...
 
TGTextButton * fButOptRefresh = nullptr
 Previous plot option. More...
 
TCanvas * fCanDefault = nullptr
 Refresh plot. More...
 
Int_t fEventId = 0
 
TGLabel * fEventIdLabel = nullptr
 
TGNumberEntry * fEventIdNumberBox = nullptr
 For row number. More...
 
Int_t fEventRow = 0
 
TGLabel * fEventRowLabel = nullptr
 < The main vertical frame for browser controlling More...
 
TGNumberEntry * fEventRowNumberBox = nullptr
 
Int_t fEventSubId = 0
 
TGLabel * fEventSubIdLabel = nullptr
 
TGNumberEntry * fEventSubIdNumberBox = nullptr
 For Event number. More...
 
TGComboBox * fEventTypeComboBox = nullptr
 
TGLabel * fEventTypeLabel = nullptr
 For sub Event number. More...
 
TGPictureButton * fExit = nullptr
 Open file button. More...
 
TGVerticalFrame * fHFrame = nullptr
 Exit button. More...
 
TGPictureButton * fMenuOpen = nullptr
 Next plot option. More...
 
TGLabel * fPlotOptionLabel = nullptr
 
TGTextEntry * fPlotOptionTextBox = nullptr
 
TRestRunfRestRun = nullptr
 
TGMainFrame * frmBot = nullptr
 
TGMainFrame * frmMain = nullptr
 
TGTextEntry * fSelectionTextBox = nullptr
 
TGLabel * fSelectionTextBoxLabel = nullptr
 
TGVerticalFrame * fVFrame = nullptr
 

Private Member Functions

Bool_t LoadEventEntry (Int_t n)
 
Bool_t LoadEventId (Int_t eventID, Int_t subEventID=-1)
 
void SetBottomPanelButtons ()
 
void SetLeftPanelButtons ()
 
void SetViewer (const TString &viewerName, Double_t geomScale=0.1)
 
void SetViewer (TRestEventViewer *eV, Double_t geomScale=0.1)
 

Private Attributes

TRestEventViewerfEventViewer = nullptr
 
TString fInputFileName
 
Bool_t pureAnalysis
 

Constructor & Destructor Documentation

◆ TRestBrowser() [1/2]

TRestBrowser::TRestBrowser ( )

Definition at line 32 of file TRestBrowser.cxx.

◆ TRestBrowser() [2/2]

TRestBrowser::TRestBrowser ( const TString &  viewerName,
Double_t  geomScale = 0.1 
)

Definition at line 44 of file TRestBrowser.cxx.

◆ ~TRestBrowser()

TRestBrowser::~TRestBrowser ( )

Definition at line 49 of file TRestBrowser.cxx.

Member Function Documentation

◆ EventTypeChangedAction()

void TRestBrowser::EventTypeChangedAction ( Int_t  id)

Definition at line 427 of file TRestBrowser.cxx.

◆ ExitAction()

void TRestBrowser::ExitAction ( )
static

Definition at line 528 of file TRestBrowser.cxx.

◆ GetViewer()

TRestEventViewer * TRestBrowser::GetViewer ( ) const
inline

Definition at line 89 of file TRestBrowser.h.

◆ IdValueChangedAction()

void TRestBrowser::IdValueChangedAction ( Long_t  val)

Definition at line 437 of file TRestBrowser.cxx.

◆ InitFromConfigFile()

void TRestBrowser::InitFromConfigFile ( )
static

Definition at line 242 of file TRestBrowser.cxx.

◆ Initialize()

void TRestBrowser::Initialize ( const TString &  opt = "FI")

Definition at line 54 of file TRestBrowser.cxx.

◆ LoadEventEntry()

Bool_t TRestBrowser::LoadEventEntry ( Int_t  n)
private

Definition at line 250 of file TRestBrowser.cxx.

◆ LoadEventId()

Bool_t TRestBrowser::LoadEventId ( Int_t  eventID,
Int_t  subEventID = -1 
)
private

Definition at line 291 of file TRestBrowser.cxx.

◆ LoadFileAction()

void TRestBrowser::LoadFileAction ( )

Definition at line 517 of file TRestBrowser.cxx.

◆ NextEventAction()

void TRestBrowser::NextEventAction ( )

Definition at line 457 of file TRestBrowser.cxx.

◆ NextPlotOptionAction()

void TRestBrowser::NextPlotOptionAction ( )

Definition at line 383 of file TRestBrowser.cxx.

◆ OpenFile()

Bool_t TRestBrowser::OpenFile ( const TString &  filename)

Definition at line 333 of file TRestBrowser.cxx.

◆ PlotAction()

void TRestBrowser::PlotAction ( )

Definition at line 407 of file TRestBrowser.cxx.

◆ PreviousEventAction()

void TRestBrowser::PreviousEventAction ( )

Definition at line 487 of file TRestBrowser.cxx.

◆ PreviousPlotOptionAction()

void TRestBrowser::PreviousPlotOptionAction ( )

Definition at line 395 of file TRestBrowser.cxx.

◆ RowValueChangedAction()

void TRestBrowser::RowValueChangedAction ( Long_t  val)

Definition at line 413 of file TRestBrowser.cxx.

◆ SetBottomPanelButtons()

void TRestBrowser::SetBottomPanelButtons ( )
private

< Exit button

< Exit button

Definition at line 214 of file TRestBrowser.cxx.

◆ SetInputEvent()

void TRestBrowser::SetInputEvent ( TRestEvent event)

Definition at line 244 of file TRestBrowser.cxx.

◆ SetLeftPanelButtons()

void TRestBrowser::SetLeftPanelButtons ( )
private

Definition at line 124 of file TRestBrowser.cxx.

◆ SetViewer() [1/2]

void TRestBrowser::SetViewer ( const TString &  viewerName,
Double_t  geomScale = 0.1 
)
private

Definition at line 106 of file TRestBrowser.cxx.

◆ SetViewer() [2/2]

void TRestBrowser::SetViewer ( TRestEventViewer eV,
Double_t  geomScale = 0.1 
)
private

Definition at line 92 of file TRestBrowser.cxx.

◆ SetWindowName()

void TRestBrowser::SetWindowName ( const TString &  windowName)
inline

Definition at line 86 of file TRestBrowser.h.

Field Documentation

◆ fBrowser

TBrowser* TRestBrowser::fBrowser = nullptr
protected

Definition at line 62 of file TRestBrowser.h.

◆ fButEveNext

TGTextButton* TRestBrowser::fButEveNext = nullptr
protected

Previous plot option.

Definition at line 55 of file TRestBrowser.h.

◆ fButEvePrev

TGTextButton* TRestBrowser::fButEvePrev = nullptr
protected

TextBox for plot options.

Definition at line 54 of file TRestBrowser.h.

◆ fButOptNext

TGPictureButton* TRestBrowser::fButOptNext = nullptr
protected

Refresh plot.

Definition at line 45 of file TRestBrowser.h.

◆ fButOptPrev

TGPictureButton* TRestBrowser::fButOptPrev = nullptr
protected

TextBox for plot options.

Definition at line 43 of file TRestBrowser.h.

◆ fButOptRefresh

TGTextButton* TRestBrowser::fButOptRefresh = nullptr
protected

Previous plot option.

Definition at line 44 of file TRestBrowser.h.

◆ fCanDefault

TCanvas* TRestBrowser::fCanDefault = nullptr
protected

Refresh plot.

Definition at line 57 of file TRestBrowser.h.

◆ fEventId

Int_t TRestBrowser::fEventId = 0
protected

Definition at line 59 of file TRestBrowser.h.

◆ fEventIdLabel

TGLabel* TRestBrowser::fEventIdLabel = nullptr
protected

Definition at line 32 of file TRestBrowser.h.

◆ fEventIdNumberBox

TGNumberEntry* TRestBrowser::fEventIdNumberBox = nullptr
protected

For row number.

Definition at line 35 of file TRestBrowser.h.

◆ fEventRow

Int_t TRestBrowser::fEventRow = 0
protected

Definition at line 58 of file TRestBrowser.h.

◆ fEventRowLabel

TGLabel* TRestBrowser::fEventRowLabel = nullptr
protected

< The main vertical frame for browser controlling

Definition at line 31 of file TRestBrowser.h.

◆ fEventRowNumberBox

TGNumberEntry* TRestBrowser::fEventRowNumberBox = nullptr
protected

Definition at line 34 of file TRestBrowser.h.

◆ fEventSubId

Int_t TRestBrowser::fEventSubId = 0
protected

Definition at line 60 of file TRestBrowser.h.

◆ fEventSubIdLabel

TGLabel* TRestBrowser::fEventSubIdLabel = nullptr
protected

Definition at line 33 of file TRestBrowser.h.

◆ fEventSubIdNumberBox

TGNumberEntry* TRestBrowser::fEventSubIdNumberBox = nullptr
protected

For Event number.

Definition at line 36 of file TRestBrowser.h.

◆ fEventTypeComboBox

TGComboBox* TRestBrowser::fEventTypeComboBox = nullptr
protected

Definition at line 39 of file TRestBrowser.h.

◆ fEventTypeLabel

TGLabel* TRestBrowser::fEventTypeLabel = nullptr
protected

For sub Event number.

Definition at line 38 of file TRestBrowser.h.

◆ fEventViewer

TRestEventViewer* TRestBrowser::fEventViewer = nullptr
private

Definition at line 69 of file TRestBrowser.h.

◆ fExit

TGPictureButton* TRestBrowser::fExit = nullptr
protected

Open file button.

Definition at line 48 of file TRestBrowser.h.

◆ fHFrame

TGVerticalFrame* TRestBrowser::fHFrame = nullptr
protected

Exit button.

Definition at line 51 of file TRestBrowser.h.

◆ fInputFileName

TString TRestBrowser::fInputFileName
private

Definition at line 67 of file TRestBrowser.h.

◆ fMenuOpen

TGPictureButton* TRestBrowser::fMenuOpen = nullptr
protected

Next plot option.

Definition at line 47 of file TRestBrowser.h.

◆ fPlotOptionLabel

TGLabel* TRestBrowser::fPlotOptionLabel = nullptr
protected

Definition at line 41 of file TRestBrowser.h.

◆ fPlotOptionTextBox

TGTextEntry* TRestBrowser::fPlotOptionTextBox = nullptr
protected

Definition at line 42 of file TRestBrowser.h.

◆ fRestRun

TRestRun* TRestBrowser::fRestRun = nullptr
protected

Definition at line 63 of file TRestBrowser.h.

◆ frmBot

TGMainFrame* TRestBrowser::frmBot = nullptr
protected

Definition at line 27 of file TRestBrowser.h.

◆ frmMain

TGMainFrame* TRestBrowser::frmMain = nullptr
protected

Definition at line 26 of file TRestBrowser.h.

◆ fSelectionTextBox

TGTextEntry* TRestBrowser::fSelectionTextBox = nullptr
protected

Definition at line 53 of file TRestBrowser.h.

◆ fSelectionTextBoxLabel

TGLabel* TRestBrowser::fSelectionTextBoxLabel = nullptr
protected

Definition at line 52 of file TRestBrowser.h.

◆ fVFrame

TGVerticalFrame* TRestBrowser::fVFrame = nullptr
protected

Definition at line 30 of file TRestBrowser.h.

◆ pureAnalysis

Bool_t TRestBrowser::pureAnalysis
private

Definition at line 66 of file TRestBrowser.h.


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