68 label =
new TGLabel(scf,
"ScaleAbsolute:");
73 fScaleAbs->Connect(
"Toggled(Bool_t)",
"TEveCaloVizEditor",
this,
"DoScaleAbs()");
82 fMaxValAbs->Connect(
"ValueSet(Double_t)",
"TEveCaloVizEditor",
this,
"DoMaxValAbs()");
95 fMaxTowerH->Connect(
"ValueSet(Double_t)",
"TEveCaloVizEditor",
this,
"DoMaxTowerH()");
108 TGFont *myfont =
gClient->GetFont(
"-adobe-times-bold-r-*-*-12-*-*-*-*-*-iso8859-1");
109 label =
new TGLabel(labfr,
"Plot:");
115 fPlotE->Connect(
"Clicked()",
"TEveCaloVizEditor",
this,
"DoPlot()");
119 fPlotEt->Connect(
"Clicked()",
"TEveCaloVizEditor",
this,
"DoPlot()");
128 fEtaRng->SetLabelWidth(labelW);
130 fEtaRng->GetSlider()->SetWidth(195);
132 fEtaRng->Connect(
"ValueSet()",
"TEveCaloVizEditor",
this,
"DoEtaRange()");
137 fPhi->SetLabelWidth(labelW);
138 fPhi->SetNELength(6);
141 fPhi->Connect(
"ValueSet(Double_t)",
"TEveCaloVizEditor",
this,
"DoPhi()");
149 fPhiOffset->Connect(
"ValueSet(Double_t)",
"TEveCaloVizEditor",
this,
"DoPhi()");
161 Int_t ns =
fM->GetData()->GetNSlices();
166 for (
Int_t i=nf; i<ns; ++i)
176 threshold->
Connect(
"ValueSet(Double_t)",
"TEveCaloVizEditor",
this,
"DoSliceThreshold()");
181 color->Connect(
"ColorSelected(Pixel_t)",
"TEveCaloVizEditor",
this,
"DoSliceColor(Pixel_t)");
189 transparency->
Connect(
"ValueSet(Long_t)",
"TEveCaloVizEditor",
this,
"DoSliceTransparency(Long_t)");
198 for (
Int_t i=0; i<nf; ++i)
260 fM->GetData()->GetEtaLimits(min, max);
264 fM->GetData()->GetPhiLimits(min, max);
267 if (
fM->GetData()->GetWrapTwoPi())
269 fPhi->SetToolTip(
"Center angle in radians");
278 fPhiOffset->SetToolTip(
"Phi range in radians");
324 if (
id ==
fPlotE->WidgetId())
377 fM->GetData()->SetSliceTransparency(cs->
WidgetId(), t);
407 fFrameTransparency->GetNumberEntry()->SetToolTipText(
"Transparency: 0 is opaque, 100 fully transparent.");
409 fFrameTransparency->Connect(
"ValueSet(Long_t)",
"TEveCalo3DEditor",
this,
"DoFrameTransparency()");
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
char Char_t
Character 1 byte (char).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
double Double_t
Double 8 bytes.
short Color_t
Color number (short).
float Float_t
Float 4 bytes (float).
virtual Bool_t IsEmpty() const
static Int_t GetColor(const char *hexcolor)
static ULong_t Number2Pixel(Int_t ci)
void DoFrameTransparency()
Slot for frame transparency.
void SetModel(TObject *obj) override
Set model object.
TGNumberEntry * fFrameTransparency
TEveCalo3DEditor(const TEveCalo3DEditor &)
Visualization of a calorimeter event data in 3D.
void DoMaxValAbs()
Slot for setting max E in for absolute scale.
TEveGValuator * fPhiOffset
void DoPlot()
Slot for setting E/Et plot.
void SetModel(TObject *obj) override
Set model object.
void DoEtaRange()
Slot for setting eta range.
TEveCaloVizEditor(const TEveCaloVizEditor &)
void DoScaleAbs()
Slot for enabling/disabling absolute scale.
TEveGDoubleValuator * fEtaRng
TGCheckButton * fScaleAbs
TGVerticalFrame * fSliceFrame
void DoSliceTransparency(Long_t transp)
Slot for slice transparency.
TEveGValuator * fMaxTowerH
TGVerticalFrame * fDataFrame
void DoMaxTowerH()
Slot for setting max tower height.
void DoSliceColor(Pixel_t color)
Slot for slice info Color.
void DoSliceThreshold()
Slot for SliceThreshold.
void MakeSliceInfo()
Create slice info gui.
TEveGValuator * fMaxValAbs
void DoPhi()
Slot for setting phi range.
Base class for calorimeter data visualization.
Composite GUI element for selection of range (label, two number-entries and double-slider).
void SetLabelWidth(Int_t w)
void SetShowSlider(Bool_t s=kTRUE)
void SetNELength(Int_t l)
Composite GUI element for single value selection (supports label, number-entry and slider).
void Build(Bool_t connect=kTRUE) override
Create sub-components (label, number entry, slider).
void SetLimits(Int_t min, Int_t max)
Set limits of the represented value for integer values.
virtual void SetValue(Float_t v, Bool_t emit=kFALSE)
Set value, optionally emit signal.
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
Encapsulate fonts used in the GUI system.
void MapWindow() override
map window
void UnmapWindow() override
unmap window
virtual void SetHeight(UInt_t h)
A composite frame that layout their children in horizontal way.
TGHotString is a string with a "hot" character underlined.
This class handles GUI labels.
virtual void SetText(TGString *newText)
Set new text in label.
virtual void SetTextFont(TGFont *font, Bool_t global=kFALSE)
Changes text font specified by pointer to TGFont object.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
TGNumberEntryField * GetNumberEntry() const
Get the number entry field.
virtual void SetNumber(Double_t val, Bool_t emit=kTRUE)
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
virtual TGCompositeFrame * GetEditorTab(const char *name)
Find or create tab with name.
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.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
TGedEditor * GetGedEditor()
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
Mother of all ROOT objects.
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.