1#ifndef TRootanaDisplay_hxx_seen
2#define TRootanaDisplay_hxx_seen
9#include <TRootEmbeddedCanvas.h>
102 std::cout <<
"Looking for next interesting event " << std::endl;
161 if(
option.find(
"-s") != std::string::npos){
166 }
else if(
option ==
"-S"){
174 printf(
"\t-sYYY: will process YYY events before displaying (for display programs)\n");
175 printf(
"\t-S: will process all events of a run before displaying (for display programs)\n");
std::pair< int, int > AddCanvas(std::string subtabname, std::string tabname=std::string(""))
TGNumberEntry * GetSkipEventButton()
void AddSingleCanvas(std::string name, std::string subtab_name=std::string(""))
Add a new canvas; user will interactively fill it.
virtual void ResetHistograms()
This method can be implemented by users to plotting of current canvas.
std::string GetDisplayName()
Get Display name.
void NextButtonPushed()
Method for when next button is pushed.
void SetNumberSkipEvent(int number)
bool fQuitPushed
Flag to keep track of if quite button has been pushed.
TMainDisplayWindow * fMainWindow
The pointer to our display window.
virtual ~TRootanaDisplay()
void QuitButtonAction()
Method to call when 'quit' button is pressed.
void SetDisplayName(std::string name)
Set Display name.
void EndRunRAD(int transition, int run, int time)
int fNumberSkipEventsOnline
void SetOnlineUpdatingBasedSeconds(bool updateBasedSeconds=true)
std::string fDisplayName
Display name.
void SetSecondsBeforeUpdating(double SecondsBeforeUpdating)
Function so that user can skip how many seconds to wait in free-running mode.
virtual void PlotCanvas(TDataContainer &dataContainer)
This method can be implemented by users to plotting of current canvas.
bool CheckOptionRAD(std::string option)
virtual void UpdateHistograms(TDataContainer &dataContainer)
This method can be implemented by users to update user histograms.
double fSecondsBeforeUpdating
void NextInterestingButtonPushed()
Method for when next interesting button is pushed.
bool ProcessMidasEvent(TDataContainer &dataContainer)
Process each midas event.
virtual void AddAllCanvases()=0
User must.
void InitializeRAD()
Special version of Init method, to be used only by TRootanaDisplay.
void SetCachedDataContainer(TDataContainer &dataContainer)
int fNumberSkipEventsOffline
std::vector< std::pair< std::pair< int, int >,TCanvasHandleBase * > > fCanvasHandlers
void InitializeMainWindow()
Method to initialize the Main display window.
bool ProcessMidasEventOnline(TDataContainer &dataContainer)
Process each online midas event.
bool waitingForNextInterestingButton
bool ProcessMidasEventOffline(TDataContainer &dataContainer)
Process each offline midas event.
bool fUpdatingBasedSeconds
void BeginRunRAD(int transition, int run, int time)
void UsageRAD()
Also a special version of usage for TRootanaDisplay. See CheckOptionRAD.
TDataContainer * fCachedDataContainer
We keep a cached copy of the midas event (so that it can used for callback).
TMainDisplayWindow * GetDisplayWindow()
void EventSkipButtonPushed()
Method for when skip event button is pushed (online mode)
bool waitingForNextButton
static void CreateSingleton()