334   gROOT->GetListOfCleanups()->Add(
this);
 
 
  517   gROOT->GetListOfCleanups()->Remove(
this);
 
 
  535   fAddB->
Connect(
"Toggled(Bool_t)", 
"TH1Editor", 
this, 
"DoAddB(Bool_t)");
 
  536   fAddBar->
Connect(
"Toggled(Bool_t)", 
"TH1Editor", 
this, 
"DoAddBar(Bool_t)");
 
  537   fTitle->
Connect(
"TextChanged(const char *)", 
"TH1Editor", 
this, 
"DoTitle(const char *)");
 
  541   fAddCombo->
Connect(
"Selected(Int_t)", 
"TH1Editor", 
this, 
"DoHistChanges()");
 
  542   fAddMarker->
Connect(
"Toggled(Bool_t)", 
"TH1Editor", 
this, 
"DoAddMarker(Bool_t)");
 
  543   fAddSimple->
Connect(
"Toggled(Bool_t)", 
"TH1Editor", 
this, 
"DoAddSimple(Bool_t)");
 
  559   fBinSlider->
Connect(
"PositionChanged(Int_t)",
"TH1Editor",
this, 
"DoBinMoved(Int_t)");
 
  565   fApply->
Connect(
"Clicked()", 
"TH1Editor", 
this, 
"DoApply()");
 
  577   fSlider->
Connect(
"PositionChanged()",
"TH1Editor", 
this,
"DoSliderMoved()");
 
  578   fSlider->
Connect(
"Pressed()",
"TH1Editor", 
this, 
"DoSliderPressed()");
 
  579   fSlider->
Connect(
"Released()",
"TH1Editor", 
this, 
"DoSliderReleased()");
 
  580   fSldMin->
Connect(
"ReturnPressed()", 
"TH1Editor", 
this, 
"DoAxisRange()");
 
  581   fSldMax->
Connect(
"ReturnPressed()", 
"TH1Editor", 
this, 
"DoAxisRange()");
 
 
  591       ((
TH1*)obj)->GetDimension()!=1 ||
 
  592       ((
TH1*)obj)->GetEntries() == 0
 
 
  628   if (str.Contains(
"SAME"))
 
  634   if (str.IsNull() || str==
"" ) {
 
  656   } 
else if (!str.Contains(
"LEGO") && !str.Contains(
"SURF")){
 
  666      if (str.Contains(
"C")) {
 
  667         if (str.Contains(
"CYL")) {
 
  674      else if (str.Contains(
"L")){
 
  676         if (str.Contains(
"CYL")) {
 
  680         if (str.Contains(
"POL")) {
 
  688      else if (str.Contains(
"HIST")) {
 
  693      if (str.Contains(
"B")) {
 
  695         if (str.Contains(
"BAR")) {
 
  716      if (str.Contains(
"P") ) {
 
  723   } 
else if (str.Contains(
"LEGO") || str.Contains(
"SURF")){
 
  729      if (str.Contains(
"SURF")){
 
  735         lb->Resize(
lb->GetWidth(), 49);
 
  744            lb->Resize(
lb->GetWidth(), 83);
 
  769      if (str.Contains(
"LEGO")) {
 
  787      else if (str.Contains(
"E")) {
 
  788         if (str.Contains(
"LEGO")) {
 
  849      if (
div[0]-1 <= 1) 
up = 2;
 
  856         while ( 
div[i] != 
nx) i ++;
 
 
  907   if (str.Contains(
"SAME"))
 
  917      if (!
dum.Contains(
"P")) str += 
"P";
 
  919      if (str.Contains(
"HIST"))
 
  920         str.Remove(
strstr(str.Data(),
"HIST")-str.Data(),4);
 
  922      if (str.Contains(
"POL") || str.Contains(
"SPH")) {
 
  923         while (
dum.Contains(
"P"))
 
  925         if (str.Contains(
"POL")) str = 
dum + 
"POL";
 
  926         if (str.Contains(
"SPH")) str = 
dum + 
"SPH";
 
  927         if (str.Contains(
"PSR")) str = 
dum + 
"PSR";
 
  928      } 
else if (str.Contains(
"P")) str.Remove(str.First(
"P"),1);
 
  929      if ((str==
"HIST") || (str==
"") ||
 
  933      else if (str.Contains(
"HIST"))
 
 
  953   if (str.Contains(
"SAME"))
 
  960         if (!str.Contains(
"B")) str += 
"B";
 
  969         while (str.Contains(
"B"))
 
  970            str.Remove(str.First(
"B"),1);
 
  976             !(str==
"" || str==
"HIST" ||
 
 
  997   if (str.Contains(
"SAME"))
 
 1004      if (str.Contains(
"HBAR")) o=1;
 
 1005      if (str.Contains(
"BAR4"))
 
 1006         str.Remove(
strstr(str.Data(),
"BAR4")-str.Data()-o,4+o);
 
 1007      else if (str.Contains(
"BAR3"))
 
 1008         str.Remove(
strstr(str.Data(),
"BAR3")-str.Data()-o,4+o);
 
 1009      else if (str.Contains(
"BAR2"))
 
 1010         str.Remove(
strstr(str.Data(),
"BAR2")-str.Data()-o,4+o);
 
 1011      else if (str.Contains(
"BAR1"))
 
 1012         str.Remove(
strstr(str.Data(),
"BAR1")-str.Data()-o,4+o);
 
 1013      else if (str.Contains(
"BAR0"))
 
 1014         str.Remove(
strstr(str.Data(),
"BAR0")-str.Data()-o,4+o);
 
 1015      else if (str.Contains(
"BAR"))
 
 1016         str.Remove(
strstr(str.Data(),
"BAR")-str.Data()-o,3+o);
 
 1024            if (str.Contains(
"HIST"))
 
 1062            str.Insert(
strstr(str.Data(),
"BAR")-str.Data(),
"H");
 
 1084   fAddMarker->
Connect(
"Toggled(Bool_t)", 
"TH1Editor", 
this, 
"DoAddMarker(Bool_t)");
 
 
 1100   if (str.Contains(
"SAME"))
 
 1105      if (!str.Contains(
"HIST")) {
 
 1111      if (str.Contains(
"HIST")) {
 
 1112         str.Remove(
strstr(str.Data(),
"HIST")-str.Data(),4);
 
 1119   fAddMarker->
Connect(
"Toggled(Bool_t)", 
"TH1Editor", 
this, 
"DoAddMarker(Bool_t)");
 
 
 1206         lb->Resize(
lb->GetWidth(),19);
 
 1209         fAddCombo->
Connect(
"Selected(Int_t)", 
"TH1Editor", 
this, 
"DoHistChanges()");
 
 1218            lb->Resize(
lb->GetWidth(),76);
 
 
 1261      if (str.Contains(
"LEGO")) {
 
 
 1295      lb->Resize(
lb->GetWidth(), 49);
 
 1302         lb->Resize(
lb->GetWidth(), 83);
 
 1318         lb->Resize(
lb->GetWidth(),19);
 
 1321         fAddCombo->
Connect(
"Selected(Int_t)", 
"TH1Editor", 
this, 
"DoHistChanges()");
 
 1349            lb->Resize(
lb->GetWidth(),76);
 
 
 1420   if (str.Contains(
"SAME"))
 
 1425   if (str.Contains(
"HBAR")) o=1;
 
 1426   if (str.Contains(
"BAR4"))
 
 1427      str.Remove(
strstr(str.Data(),
"BAR4")-str.Data()-1,4+o);
 
 1428   else if (str.Contains(
"BAR3"))
 
 1429      str.Remove(
strstr(str.Data(),
"BAR3")-str.Data()-o,4+o);
 
 1430   else if (str.Contains(
"BAR2"))
 
 1431      str.Remove(
strstr(str.Data(),
"BAR2")-str.Data()-o,4+o);
 
 1432   else if (str.Contains(
"BAR1"))
 
 1433      str.Remove(
strstr(str.Data(),
"BAR1")-str.Data()-o,4+o);
 
 1434   else if (str.Contains(
"BAR0"))
 
 1435      str.Remove(
strstr(str.Data(),
"BAR0")-str.Data()-o,4+o);
 
 1436   else if (str.Contains(
"BAR"))
 
 1437      str.Remove(
strstr(str.Data(),
"BAR")-str.Data()-o,3+o);
 
 1441      case (
kPER_0) :{ str += 
"BAR"; 
break;}
 
 1442      case (
kPER_10):{ str += 
"BAR1"; 
break;}
 
 1443      case (
kPER_20):{ str += 
"BAR2"; 
break;}
 
 1444      case (
kPER_30):{ str += 
"BAR3"; 
break;}
 
 1445      case (
kPER_40):{ str += 
"BAR4"; 
break;}
 
 
 1460   if (str.Contains(
"SAME"))
 
 1465      if (!str.Contains(
"HBAR"))
 
 1466         str.Insert(
strstr(str.Data(),
"BAR")-str.Data(),
"H");
 
 1469      if (str.Contains(
"HBAR"))
 
 1470         str.Remove(
strstr(str.Data(),
"BAR")-str.Data()-1,1);
 
 
 1488      static Int_t px1,py1,px2,py2;
 
 1538      for (
Int_t i = 0; i<3; i++){
 
 
 1803                   "TH1 Editor", 
"It is not possible to rebin the histogram",
 
 
 1820   if (number==5) 
return;
 
 1822   Int_t binNumber = 0;
 
 1825   if (number > 5) 
fact = number - 4;
 
 1826   else fact = number - 6;
 
 1843   if (binNumber < 1) binNumber = 1;
 
 1844   if (binNumber > 10000) binNumber= 10000;
 
 1847   ((
TH1*)
player->GetHistogram())->SetBins(binNumber,
 
 1868                                 xaxis->GetBinWidth(1));
 
 
 1886   Int_t binNumber = 0;
 
 1887   if (number >= 5) 
fact = number - 4;
 
 1888   else fact = number - 6;
 
 1891   if (binNumber < 1) binNumber = 1;
 
 1892   if (binNumber > 10000) binNumber= 10000;
 
 
 1911   for (
Int_t i = 2; i <= 
div[0]; i++) {
 
 
 1951   if (binNumber < 1) binNumber = 1;
 
 1952   if (binNumber > 10000) binNumber = 10000;
 
 1955   ((
TH1*)
player->GetHistogram())->SetBins(binNumber,
 
 
 2132                "TH1 Editor", 
"Replace origin histogram with rebinned one?",
 
 2142      if (
div[0]-1 <= 1) 
up = 2;
 
 
 2192      case (-1)         : {s = 
"LEGO"; 
break;}
 
 
 2216         case (-1)         : {s = 
"POL"; 
break;}
 
 
 2236      case (-1)             : {s = 
""; 
break;}
 
 
 2256      case (-1)         : {s = 
"" ; 
break;}
 
 2268         case (
kPER_0) : { s += 
"BAR" ; 
break;}
 
 2269         case (
kPER_10): { s += 
"BAR1"; 
break;}
 
 2270         case (
kPER_20): { s += 
"BAR2"; 
break;}
 
 2271         case (
kPER_30): { s += 
"BAR3"; 
break;}
 
 2272         case (
kPER_40): { s += 
"BAR4"; 
break;}
 
 
 2312   lb->Resize(
lb->GetWidth(), 83);
 
 
 2346   lb->Resize(
lb->GetWidth(), 76);
 
 
 2363   lb->Resize(
lb->GetWidth(), 83);
 
 
 2380         lb->Resize(
lb->GetWidth(),36);
 
 2390            lb->Resize(
lb->GetWidth(),100);
 
 
 2423   } 
else if (
n == 1) {
 
 2432      for (
Int_t i=2; i <= 
n/2; i++) {
 
 
ULong_t Pixel_t
Pixel value.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
static void Reset(const char *url, Bool_t hard=kFALSE)
Class to manage histogram axis.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Int_t GetLast() const
Return last bin on the axis i.e.
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
Set the viewing range for the axis from ufirst to ulast (in user coordinates, that is,...
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis using bin numbers.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
Int_t GetFirst() const
Return first bin on the axis i.e.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual Int_t GetSelected() const
virtual void AddEntry(TGString *s, Int_t id)
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
virtual void RemoveEntry(Int_t id=-1)
Remove entry. If id == -1, the currently selected entry is removed.
virtual TGListBox * GetListBox() const
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Dragging the slider will generate the event:
virtual Float_t GetMaxPosition() const
virtual Float_t GetMinPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
Bool_t Contains(Int_t x, Int_t y) const
Concrete class for horizontal slider.
void Resize(UInt_t w, UInt_t h) override
Resize the frame.
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
A Composite frame that contains a list of TGLBEnties.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
Defines top level windows that interact with the system Window Manager.
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
Set the numeric value (floating point representation).
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
virtual void SetIntNumber(Long_t val, Bool_t emit=kTRUE)
Set the numeric value (integer representation).
virtual void SetLimits(ELimit limits=kNELNoLimits, Double_t min=0, Double_t max=1)
Set the numerical limits.
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
virtual Double_t GetNumber() const
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
TGClient * fClient
Connection to display server.
virtual Int_t GetMaxPosition() const
virtual Int_t GetPosition() const
virtual void SetPosition(Int_t pos)
Set slider position.
virtual void SetRange(Int_t min, Int_t max)
Set slider range.
virtual void SetScale(Int_t scale)
virtual void SetEnabled(Int_t tabIndex, Bool_t on=kTRUE)
Enable or disable tab.
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual TVirtualPad * GetPad() const
Base frame for implementing GUI - a service class.
TGedEditor * fGedEditor
manager of this frame
virtual TGVerticalFrame * CreateEditorTabSubFrame(const char *name)
Create a vertical frame to be used by 'owner' in extra tab 'name'.
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
void SetDrawOption(Option_t *option="") override
Set drawing option for object.
virtual void Refresh(TObject *model)
Refresh the GUI info about the object attributes.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Option_t * GetDrawOption() const override
Get draw options of the selected object.
Bool_t fAvoidSignal
flag for executing slots
Editor for changing TH1 histogram attributes, rebinning & fitting.
static TGComboBox * BuildHistAddComboBox(TGFrame *parent, Int_t id)
Create Line/Bar combo box.
TGNumberEntryField * fSldMin
Contains the minimum value of the x-Axis.
virtual void DoHistChanges()
Slot connected to the histogram type, the coordinate type, the error type and the Add combo box.
virtual void DoBinReleased1()
Slot connected to the BinNumber Slider in case of a ntuple histogram (does the Rebinning of the histo...
TGTextButton * fApply
Apply-Button to accept the rebinned histogram.
TGHSlider * fBinOffsetSld
Add an offset to the origin of the histogram.
~TH1Editor() override
Destructor of TH1 editor.
TGNumberEntryField * fBinNumberEntry
Label which shows the rebinned bin number.
TGCompositeFrame * fBinCont
Contains the Rebin Widgets for case 1.
TGCheckButton * fAddSimple
Draw a simple histogram (==HIST draw option)
TH1 * fHist
histogram object
TGCheckButton * fAddMarker
Draw a Marker on top of each bin.
TString GetHistTypeLabel()
Returns the selected histogram type (HIST, LEGO1-2, SURF1-5).
virtual void DoOffsetMoved(Int_t num)
Slot connected to the OffSetSlider.
void ChangeErrorCombo(Int_t i)
Change the error combo box entry.
TGNumberEntry * fBarWidth
Change the Bar Width.
TGHSlider * fBinSlider1
Slider to set rebinning integer value for ntuple histogram.
TGNumberEntryField * fSldMax
Contains the maximum value of the x-Axis.
TGDoubleHSlider * fSlider
Slider to set x-axis range.
TGCompositeFrame * f11
Contains the Bar Width/Offset NumberEntries.
virtual void DoHBar(Bool_t on)
Slot connected to the Horizontal Bar check button.
virtual void DoBinMoved(Int_t number)
Slot connected to the rebin slider in case of a not ntuple histogram (does the Rebinning of the histo...
static TGComboBox * BuildPercentComboBox(TGFrame *parent, Int_t id)
Create Percentage combo box for bar option.
TGHButtonGroup * fDimGroup
Radiobuttongroup to change 2D <-> 3D-Plot.
TGCheckButton * fAddB
Draw a Bar Chart.
virtual void DoAddMarker(Bool_t on)
Slot connected to the show markers check box.
static TGComboBox * BuildHistErrorComboBox(TGFrame *parent, Int_t id)
Create error type combo box.
TH1Editor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of histogram attribute GUI.
TGComboBox * fErrorCombo
Error combo box.
TGCheckButton * fDelaydraw
Delayed drawing of the new axis range.
virtual void DoAxisRange()
Slot connected to the number entry fields containing the Max/Min value of the x-axis.
virtual void DoHistView()
Slot connected to the 'Plot' button group.
TGCheckButton * fMakeHBar
Draw Horizontal Bar Chart.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGCompositeFrame * f6
Contains the Add-ComboBox (Style)
TGNumberEntryField * fOffsetNumberEntry
Shows the offset to the origin of the histogram.
TGCompositeFrame * fBinCont1
Contains the Rebin Widgets for case 2.
TGRadioButton * fDim0
3D-Plot RadioButton
TGCompositeFrame * f12
Contains fPercentCombo, fMakeHBar.
virtual void DoApply()
Slot connected to the Apply button of the Binning tab.
Int_t * Dividers(Int_t n)
Return an array of dividers of n (without the trivial divider n).
TGComboBox * fPercentCombo
Percentage of the Bar which is drawn in a different color.
TGTextButton * fCancel
Cancel-Button to reprobate the rebinned histogram.
virtual void DoCancel()
Slot connected to the Cancel button of the Binning tab.
TGHSlider * fBinSlider
Slider to set rebinning integer value.
TGRadioButton * fDim
2D-Plot RadioButton
Int_t fTitlePrec
font precision level
TGCheckButton * fAddBar
Bar Option.
virtual void DoHistComplex()
Slot connected to the 3D radio button.
virtual void DoSliderReleased()
Slot connected to the x-axis Range slider for finalizing the values of the slider movement.
Bool_t fSameOpt
flag for option "same"
virtual void DoAddB(Bool_t)
Slot connected to the bar Add check box.
TGCompositeFrame * f3
Contains Histogram Type.
virtual void DoHistSimple()
Slot connected to the 2D radio button.
virtual void DoBinReleased()
Slot connected to the rebin slider in case of a not ntuple histogram Updates some other widgets which...
TGComboBox * fTypeCombo
histogram type combo box
TGComboBox * fCoordsCombo
Coordinate System combo box.
TGTextEntry * fTitle
histogram title input field
TString GetHistAddLabel()
Return the selected shape of the histogram (C, L, LF2).
TGLayoutHints * fDim0lh
layout hints for 3D-Plot RadioButton
virtual void DoBinPressed()
Slot connected to the rebin slider in case of a not ntuple histogram.
virtual void DoAddSimple(Bool_t on)
Slot connected to fAddSimple check box for drawing a simple histogram without errors (== HIST draw op...
virtual void DoPercent()
Slot connected to the bar percentage settings.
virtual void DoBarOffset()
Slot connected to the Bar Offset of the Bar Charts.
void CreateBinTab()
Create binning tab.
virtual void DoBarWidth()
Slot connected to the Bar Width of the Bar Charts.
void SetModel(TObject *obj) override
Pick up current values of histogram attributes.
virtual void DoAddBar(Bool_t)
Slot connected to the bar Add check box.
TGNumberEntryField * fBinNumberEntry1
Label which shows the rebinned bin number for ntuple histogram.
virtual void PaintBox3D(Float_t *p1, Float_t *p2, Float_t *p3, Float_t *p4)
Paint a 3D box.
TString GetHistErrorLabel()
Return the selected error type (E,E1-5).
virtual void DoBinLabel()
Slot connected to the Bin number entry of the Rebinning tab.
TGLayoutHints * fDimlh
layout hints for 2D-Plot RadioButton
TGCompositeFrame * f15
Contains outer line CheckBox.
static TGComboBox * BuildHistCoordsComboBox(TGFrame *parent, Int_t id)
Create coordinate system type combo box.
TGNumberEntry * fBarOffset
Change the Bar Offset.
TGCompositeFrame * f9
Contains the Bar Option CheckBox.
virtual void DoOffsetReleased()
Slot connected to the OffSetSlider.
static TGComboBox * BuildHistTypeComboBox(TGFrame *parent, Int_t id)
Create histogram type combo box.
TGCompositeFrame * f7
Contains the Marker OnOff CheckBox.
TGCompositeFrame * f8
Contains the Bar Chart CheckBox.
Bool_t AcceptModel(TObject *model) override
Check if object is able to configure with this editor.
TGCompositeFrame * fBin
Contains the Binning Widgets.
virtual void DoBinLabel1()
Slot connected to the Bin number entry of the Rebinning tab.
TGComboBox * fAddCombo
Add Lines, Bars, Fill.
TGCompositeFrame * f10
Contains the Bar Option Title.
virtual void DoSliderMoved()
Slot connected to the x-Slider for redrawing of the histogram according to the new Slider range.
virtual void DoBinOffset()
Slot connected to the OffSetNumberEntry which is related to the OffSetSlider changes the origin of th...
virtual void DoOffsetPressed()
Slot connected to the OffSetSlider that saves the OldBinOffset (nessesary for delay draw mode).
virtual void DoTitle(const char *text)
Slot connected to the histogram title setting.
TString GetHistCoordsLabel()
Return the selected coordinate system of the histogram (POL,CYL,SPH,PSR).
void RecursiveRemove(TObject *obj) override
If the contained histogram obj is deleted we must set its pointer to zero.
virtual void DoBinMoved1()
Slot connected to the rebin slider in case of an ntuple histogram.
virtual void DoSliderPressed()
Slot connected to the x-axis Range slider for initialising the values of the slider movement.
TH1 is the base class of all histogram classes in ROOT.
virtual void SetDirectory(TDirectory *dir)
By default, when a histogram is created, it is added to the list of histogram objects in the current ...
virtual void SetBarOffset(Float_t offset=0.25)
Set the bar offset as fraction of the bin width for drawing mode "B".
@ kNoAxis
NOTE: Must always be 0 !!!
void SetTitle(const char *title) override
Change/set the title.
virtual Float_t GetBarWidth() const
virtual Float_t GetBarOffset() const
virtual void Reset(Option_t *option="")
Reset this histogram: contents, errors, etc.
virtual Bool_t Add(TF1 *h1, Double_t c1=1, Option_t *option="")
Performs the operation: this = this + c1*f1 if errors are defined (see TH1::Sumw2),...
virtual Double_t GetEntries() const
Return the current number of entries.
virtual TH1 * Rebin(Int_t ngroup=2, const char *newname="", const Double_t *xbins=nullptr)
Rebin this histogram.
virtual UInt_t SetCanExtend(UInt_t extendBitMask)
Make the histogram axes extendable / not extendable according to the bit mask returns the previous bi...
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
virtual void SetBins(Int_t nx, Double_t xmin, Double_t xmax)
Redefine x axis parameters.
virtual void SetBarWidth(Float_t width=0.5)
Set the width of bars as fraction of the bin width for drawing mode "B".
const char * GetTitle() const override
Returns title of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
A specialized TSelector for TTree::Draw.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Implement some of the functionality of the class TTree requiring access to extra libraries (Histogram...
virtual Double_t * GetRmax()=0
virtual Double_t * GetRmin()=0
static TVirtualTreePlayer * GetCurrentPlayer()
Static function: return the current player (if any)
leg AddEntry(h1,"Histogram filled with random numbers","f")
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.