Public Member Functions | |
GCanvas (Bool_t build=kTRUE) | |
GCanvas (const char *name, const char *title="", Int_t form=1) | |
GCanvas (const char *name, const char *title, Int_t ww, Int_t wh) | |
GCanvas (const char *name, Int_t ww, Int_t wh, Int_t winid) | |
GCanvas (const char *name, const char *title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh, bool gui=false) | |
~GCanvas () override | |
void | Draw (Option_t *opt="") override |
TF1 * | GetLastFit () |
Int_t | GetNMarkers () |
bool | HandleArrowKeyPress (Event_t *event, UInt_t *keysym) |
void | HandleInput (int event, Int_t x, Int_t y) |
bool | HandleKeyboardPress (Event_t *event, UInt_t *keysym) |
bool | HandleMouseControlPress (Int_t event, Int_t x, Int_t y) |
bool | HandleMousePress (Int_t event, Int_t x, Int_t y) |
bool | HandleMouseShiftPress (Int_t event, Int_t x, Int_t y) |
void | SetMarkerMode (bool flag=true) |
Static Public Member Functions | |
static GCanvas * | MakeDefCanvas () |
Private Member Functions | |
void | AddMarker (int, int, TH1 *hist) |
ClassDefOverride (GCanvas, 2) | |
bool | CycleBackgroundSubtraction () |
std::vector< TH1 * > | FindAllHists () |
std::vector< TH1 * > | FindHists (int dim=1) |
void | GCanvasInit () |
void | OrderMarkers () |
bool | Process1DArrowKeyPress (Event_t *event, UInt_t *keysym) |
bool | Process1DKeyboardPress (Event_t *event, UInt_t *keysym) |
bool | Process1DMousePress (Int_t event, Int_t x, Int_t y) |
bool | Process2DArrowKeyPress (Event_t *event, UInt_t *keysym) |
bool | Process2DKeyboardPress (Event_t *event, UInt_t *keysym) |
bool | Process2DMousePress (Int_t event, Int_t x, Int_t y) |
bool | ProcessNonHistKeyboardPress (Event_t *event, UInt_t *keysym) |
void | RedrawMarkers () |
void | RemoveMarker (Option_t *opt="") |
bool | SetBackgroundMarkers () |
void | UpdateStatsInfo (int, int) |
Private Attributes | |
std::vector< GMarker * > | fBackgroundMarkers |
EBackgroundSubtraction | fBackgroundMode |
char * | fCutName |
std::vector< TCutG * > | fCuts |
bool | fGuiEnabled {false} |
bool | fMarkerMode {false} |
std::vector< GMarker * > | fMarkers |
TRootCanvas * | fRootCanvas {nullptr} |
Static Private Attributes | |
static int | lastx = 0 |
static int | lasty = 0 |
#include <GCanvas.h>
GCanvas::GCanvas | ( | Bool_t | build = kTRUE | ) |
Definition at line 88 of file GCanvas.cxx.
References GCanvasInit().
Referenced by HandleMouseShiftPress(), MakeDefCanvas(), and Process2DKeyboardPress().
GCanvas::GCanvas | ( | const char * | name, |
const char * | title = "" , |
||
Int_t | form = 1 |
||
) |
Definition at line 93 of file GCanvas.cxx.
References GCanvasInit().
GCanvas::GCanvas | ( | const char * | name, |
const char * | title, | ||
Int_t | ww, | ||
Int_t | wh | ||
) |
Definition at line 98 of file GCanvas.cxx.
References GCanvasInit().
GCanvas::GCanvas | ( | const char * | name, |
Int_t | ww, | ||
Int_t | wh, | ||
Int_t | winid | ||
) |
Definition at line 103 of file GCanvas.cxx.
References fGuiEnabled, and GCanvasInit().
GCanvas::GCanvas | ( | const char * | name, |
const char * | title, | ||
Int_t | wtopx, | ||
Int_t | wtopy, | ||
Int_t | ww, | ||
Int_t | wh, | ||
bool | gui = false |
||
) |
Definition at line 111 of file GCanvas.cxx.
References fGuiEnabled, and GCanvasInit().
|
override |
Definition at line 118 of file GCanvas.cxx.
References fCutName.
|
private |
Definition at line 139 of file GCanvas.cxx.
References fMarkers, and hist.
Referenced by HandleMousePress().
|
private |
|
private |
Definition at line 222 of file GCanvas.cxx.
References fBackgroundMarkers, fBackgroundMode, kMatchedLowerMarker, kNoBackground, kRegionBackground, kSplitTwoMarker, kTotalFraction, and Prompt().
Referenced by Process1DKeyboardPress().
|
override |
Definition at line 305 of file GCanvas.cxx.
|
private |
Definition at line 329 of file GCanvas.cxx.
Referenced by HandleMousePress().
|
private |
Definition at line 314 of file GCanvas.cxx.
References hist.
Referenced by HandleMouseShiftPress(), Process1DArrowKeyPress(), Process1DKeyboardPress(), Process2DArrowKeyPress(), and Process2DKeyboardPress().
|
private |
Definition at line 124 of file GCanvas.cxx.
References fBackgroundMode, fCutName, fGuiEnabled, fMarkerMode, and kNoBackground.
Referenced by GCanvas().
TF1 * GCanvas::GetLastFit | ( | ) |
Definition at line 469 of file GCanvas.cxx.
References hist.
|
inline |
Definition at line 137 of file GCanvas.h.
References fMarkers.
Referenced by Process1DKeyboardPress(), Process2DKeyboardPress(), and SetBackgroundMarkers().
bool GCanvas::HandleArrowKeyPress | ( | Event_t * | event, |
UInt_t * | keysym | ||
) |
Definition at line 341 of file GCanvas.cxx.
References Process1DArrowKeyPress(), and Process2DArrowKeyPress().
Referenced by GRootCanvas::HandleContainerKey().
void GCanvas::HandleInput | ( | int | event, |
Int_t | x, | ||
Int_t | y | ||
) |
Definition at line 282 of file GCanvas.cxx.
References HandleMouseControlPress(), HandleMousePress(), and HandleMouseShiftPress().
bool GCanvas::HandleKeyboardPress | ( | Event_t * | event, |
UInt_t * | keysym | ||
) |
Definition at line 356 of file GCanvas.cxx.
References Process1DKeyboardPress(), Process2DKeyboardPress(), and ProcessNonHistKeyboardPress().
Referenced by GRootCanvas::HandleContainerKey().
bool GCanvas::HandleMouseControlPress | ( | Int_t | event, |
Int_t | x, | ||
Int_t | y | ||
) |
Definition at line 456 of file GCanvas.cxx.
Referenced by HandleInput().
bool GCanvas::HandleMousePress | ( | Int_t | event, |
Int_t | x, | ||
Int_t | y | ||
) |
Definition at line 376 of file GCanvas.cxx.
References AddMarker(), FindAllHists(), fMarkerMode, and hist.
Referenced by HandleInput().
bool GCanvas::HandleMouseShiftPress | ( | Int_t | event, |
Int_t | x, | ||
Int_t | y | ||
) |
Definition at line 416 of file GCanvas.cxx.
References FindHists(), GCanvas(), and hist.
Referenced by HandleInput().
|
static |
Definition at line 261 of file GCanvas.cxx.
References GCanvas().
|
private |
Definition at line 175 of file GCanvas.cxx.
References fMarkers.
|
private |
Definition at line 488 of file GCanvas.cxx.
References GH1D::Draw(), FindHists(), GH1D::GetNext(), GH1D::GetPrevious(), hist, kMyArrowDown, kMyArrowLeft, kMyArrowRight, kMyArrowUp, and RedrawMarkers().
Referenced by HandleArrowKeyPress().
|
private |
Definition at line 606 of file GCanvas.cxx.
References AltPhotoPeakFit(), BLUE, CycleBackgroundSubtraction(), GH1D::Draw(), fBackgroundMarkers, fBackgroundMode, FindHists(), fMarkers, GausFit(), GetNMarkers(), GH1D::GetParent(), hist, kNoBackground, PhotoPeakFit(), GH1D::Project(), GH1D::Project_Background(), RemoveMarker(), RemovePeaks(), RESET_COLOR, SetBackgroundMarkers(), SetMarkerMode(), and ShowPeaks().
Referenced by HandleKeyboardPress().
|
private |
Definition at line 994 of file GCanvas.cxx.
|
private |
Moves displayed 2D histograms by 50% of the visible range left, right, up, or down
Definition at line 1000 of file GCanvas.cxx.
References FindHists(), hist, kMyArrowDown, kMyArrowLeft, kMyArrowRight, and kMyArrowUp.
Referenced by HandleArrowKeyPress().
|
private |
Definition at line 1105 of file GCanvas.cxx.
References fCutName, fCuts, FindHists(), fMarkers, GCanvas(), GH2Base::GetNextSummary(), GetNMarkers(), GH2Base::GetProjections(), hist, kXDirection, kYDirection, GH2D::ProjectionX(), GH2D::ProjectionY(), RemoveMarker(), RemovePeaks(), RESET_COLOR, GH2Base::SetSummary(), and GH2Base::SetSummaryDirection().
Referenced by HandleKeyboardPress().
|
private |
Definition at line 1457 of file GCanvas.cxx.
|
private |
Definition at line 588 of file GCanvas.cxx.
Referenced by HandleKeyboardPress().
|
private |
Definition at line 180 of file GCanvas.cxx.
References fBackgroundMarkers, and fMarkers.
Referenced by Process1DArrowKeyPress().
|
private |
Definition at line 153 of file GCanvas.cxx.
References fBackgroundMarkers, and fMarkers.
Referenced by Process1DKeyboardPress(), and Process2DKeyboardPress().
|
private |
Definition at line 194 of file GCanvas.cxx.
References fBackgroundMarkers, fBackgroundMode, fMarkers, GetNMarkers(), and kRegionBackground.
Referenced by Process1DKeyboardPress().
|
inline |
Definition at line 138 of file GCanvas.h.
References fMarkerMode.
Referenced by Process1DKeyboardPress().
|
private |
|
private |
Definition at line 154 of file GCanvas.h.
Referenced by CycleBackgroundSubtraction(), Process1DKeyboardPress(), RedrawMarkers(), RemoveMarker(), and SetBackgroundMarkers().
|
private |
Definition at line 155 of file GCanvas.h.
Referenced by CycleBackgroundSubtraction(), GCanvasInit(), Process1DKeyboardPress(), and SetBackgroundMarkers().
|
private |
Definition at line 157 of file GCanvas.h.
Referenced by GCanvasInit(), Process2DKeyboardPress(), and ~GCanvas().
|
private |
Definition at line 156 of file GCanvas.h.
Referenced by Process2DKeyboardPress().
|
private |
Definition at line 150 of file GCanvas.h.
Referenced by GCanvas(), and GCanvasInit().
|
private |
Definition at line 152 of file GCanvas.h.
Referenced by GCanvasInit(), HandleMousePress(), and SetMarkerMode().
|
private |
Definition at line 153 of file GCanvas.h.
Referenced by AddMarker(), GetNMarkers(), OrderMarkers(), Process1DKeyboardPress(), Process2DKeyboardPress(), RedrawMarkers(), RemoveMarker(), and SetBackgroundMarkers().