49 fPalette->Connect(
"Changed()",
"TEveDigitSetEditor",
this,
"Update()");
76 b->SetToolTipText(
"Show histogram over full range.");
78 b->Connect(
"Clicked()",
"TEveDigitSetEditor",
this,
"DoHisto()");
81 b->SetToolTipText(
"Show histogram over selected range.");
83 b->Connect(
"Clicked()",
"TEveDigitSetEditor",
this,
"DoRangeHisto()");
94 if (
fM->fValueIsColor ||
fM->fPalette ==
nullptr) {
101 if (
fM->fHistoButtons)
114 min =
fM->fPalette->GetLowLimit();
115 max =
fM->fPalette->GetHighLimit();
117 fM->ScanMinMaxValues(min, max);
129 min =
fM->fPalette->GetMinVal();
130 max =
fM->fPalette->GetMaxVal();
132 fM->ScanMinMaxValues(min, max);
142 Int_t nbins = max-min+1;
146 TH1F*
h =
new TH1F(
fM->GetName(),
fM->GetTitle(), nbins, min-0.5, max+0.5);
147 h->SetDirectory(
nullptr);
153 gStyle->SetOptStat(1111111);
ULong_t Pixel_t
Pixel value.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
R__EXTERN TStyle * gStyle
Editor for TEveDigitSet class.
void PlotHisto(Int_t min, Int_t max)
Plots a histogram from digit vales with given range.
void DoHisto()
Show histogram slot.
void SetModel(TObject *obj) override
Set model object.
TEveDigitSetEditor(const TEveDigitSetEditor &)
TEveRGBAPaletteSubEditor * fPalette
TGHorizontalFrame * fHistoButtFrame
void CreateInfoTab()
Create information tab.
TGVerticalFrame * fInfoFrame
void DoRangeHisto()
Show ranged histogram slot.
Base-class for storage of digit collections; provides transformation matrix (TEveTrans),...
Sub-editor for TEveRGBAPalette class.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
Yield an action as soon as it is clicked.
ROOT GUI Window base class.
virtual TGVerticalFrame * CreateEditorTabSubFrame(const char *name)
Create a vertical frame to be used by 'owner' in extra tab 'name'.
TGedFrame(const TGedFrame &)=delete
virtual void MakeTitle(const char *title)
Create attribute frame title.
1-D histogram with a float per channel (see TH1 documentation)
Mother of all ROOT objects.
Bool_t next()
Go to next atom.