48 fPalette->Connect(
"Changed()",
"TEveDigitSetEditor",
this,
"Update()");
75 b->SetToolTipText(
"Show histogram over full range.");
77 b->Connect(
"Clicked()",
"TEveDigitSetEditor",
this,
"DoHisto()");
80 b->SetToolTipText(
"Show histogram over selected range.");
82 b->Connect(
"Clicked()",
"TEveDigitSetEditor",
this,
"DoRangeHisto()");
93 if (
fM->fValueIsColor ||
fM->fPalette ==
nullptr) {
100 if (
fM->fHistoButtons)
113 min =
fM->fPalette->GetLowLimit();
114 max =
fM->fPalette->GetHighLimit();
116 fM->ScanMinMaxValues(min, max);
128 min =
fM->fPalette->GetMinVal();
129 max =
fM->fPalette->GetMaxVal();
131 fM->ScanMinMaxValues(min, max);
141 Int_t nbins = max-min+1;
145 TH1F*
h =
new TH1F(
fM->GetName(),
fM->GetTitle(), nbins, min-0.5, max+0.5);
146 h->SetDirectory(
nullptr);
152 gStyle->SetOptStat(1111111);
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
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.