1#ifndef TFancyHistogramCanvas_h
2#define TFancyHistogramCanvas_h
10#include "TGNumberEntry.h"
14#include "TGButtonGroup.h"
47 std::string name,
int numberChannelsInGroups = -1,
48 bool disableAutoUpdate=
false);
62 void BeginRun(
int transition,
int run,
int time);
65 void EndRun(
int transition,
int run,
int time);
TGLabel * fLabelChannels
A label for the histogram number button.
TGHorizontalFrame * fLabelframe
Overall frame in which we will add buttons and widgets.
TGHButtonGroup * fNCanvasButtonGroup
Button group to select how many canvases to show.
void UpdateCanvasHistograms(TDataContainer &dataContainer)
Update the histograms for this canvas.
std::string fChannelName
Name for the channel button.
TGNumberEntry * fNHistoButton
Button group to select how many histograms to show.
TGCheckButton * fMultiCanvasButton
This button controls whether to display mutliple sub-canvases.
void ActivateMultiCanvasButton()
TGRadioButton * fNCanvasButtons[4]
void BeginRun(int transition, int run, int time)
Take actions at begin run.
void PlotCanvas(TDataContainer &dataContainer, TRootEmbeddedCanvas *embedCanvas)
Plot the histograms for this canvas.
std::string fGroupName
Name for the group button.
TGLabel * fLabelGroup
A label for the group button.
void ResetCanvasHistograms()
Reset the histograms for this canvas.
TRootanaDisplay * fDisplay
TGNumberEntry * fChannelCounterButton
Button for the histogram number.
int fNumberChannelsInGroups
void EndRun(int transition, int run, int time)
Take actions at end run
THistogramArrayBase * fHistoArray
Pointer to the THistogramArrayBase class; memory is not owned by TFancyHistogramCanvas.
void SetChannelName(std::string channelName)
Allow the user to set explicitly the channel name.
void SetGroupName(std::string groupName)
Allow the user to set explicitly the group name.
TFancyHistogramCanvas(THistogramArrayBase *histoArray, std::string name, int numberChannelsInGroups=-1, bool disableAutoUpdate=false)
TGCheckButton * fOverlayHistoButton
This button controls whether to display overlaid histograms.
void CheckExtraButtons()
Helper function to remove extra buttons if not needed anymore.
TGNumberEntry * fGroupCounterButton
Button for the group number.
void SetUpCompositeFrame(TGCompositeFrame *compFrame, TRootanaDisplay *display)
This is the complicated part, where we create a bunch of buttons and widgets.
void ActivateOverlayButton()