A minimalistic extension to TGraphAligned for some GUI bells and whistles. More...
#include <TGraphInteractive.h>
Public Member Functions | |
TGraphInteractive (int n, const double *x, const double *y, Option_t *drawOpt="") | |
Default constructor. | |
TGraphInteractive (const TGraph *gr, Option_t *drawOpt) | |
virtual void | ExecuteEvent (int event, int px, int py) |
GuiParent * | findOriginator () const |
virtual void | DrawGroup (Option_t *opt="") |
Must be overloaded by children (TGraphInteractive*) to return pointer to parent | |
virtual void | Draw (Option_t *opt="") |
void | SetDrawOpt (Option_t *drawOpt) |
Option_t * | GetDrawOpt () |
virtual GuiParent * | getParent () const |
Public Member Functions inherited from TGraphAligned | |
TGraphAligned () | |
TGraphAligned (Int_t n) | |
TGraphAligned & | operator= (const TGraphAligned &) |
TGraphAligned (Int_t n, const Double_t *x, const Double_t *y) | |
TGraphAligned (const TGraph &) | |
double * | getMoments (int i, double origin, double *moments=0) const |
void | dBize (double mindB=-200) |
void | undBize () |
void | zeroMean () |
void | adopt (const TGraphAligned *g) |
void | shift (int nsamples, bool zero=true) |
void | getMeanAndRMS (Double_t *mean, Double_t *rms, Int_t istart=0, Int_t iend=-1) const |
Double_t | getSumV2 (Int_t istart=0, Int_t iend=-1) const |
Double_t | peakVal (Int_t *location=0, Int_t istart=0, Int_t iend=-1, bool abs=false) const |
Double_t | pk2pk (Int_t nthMax=0, Int_t nthMin=0, Int_t *location_max=0, Int_t *location_min=0, Int_t istart=0, Int_t iend=-1) const |
TH1 * | valueHist (int nbins=100, const double *weights=0, TH1 *out=0) const |
void | setPlottingLimits (double mult=1.1, bool sym=true, double dt_from_peak=-1) |
aligned_double_v | GetX () const |
aligned_double_v | GetY () const |
void | setBelow (double val, bool abso=true, double to=0) |
virtual | ~TGraphAligned () |
Public Member Functions inherited from Acclaim::GuiParent | |
GuiParent () | |
void | deleteChildren () |
size_t | addGuiChild (TGraphInteractive *grPtr) |
size_t | addGuiChild (const TGraph &grRef, Option_t *drawOpt) |
size_t | copyChildren (const GuiParent *that) |
const TGraphInteractive * | findChild (const char *name) |
Friends | |
class | GuiParent |
Additional Inherited Members | |
Protected Member Functions inherited from TGraphAligned | |
virtual Double_t ** | AllocateAlignedArrays (Int_t Narrays, Int_t arraySize) |
Double_t ** | Allocate (Int_t newsize) |
virtual Bool_t | CtorAllocate (void) |
virtual void | CopyAndRelease (Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin) |
ClassDef (TGraphAligned, 1) | |
A minimalistic extension to TGraphAligned for some GUI bells and whistles.
I'm thinking of using this primarily with the AnalysisReco class TODO: Try to incorporate some of the features of the now redundant TGraphFB class, inside the now redundant FourierBuffer class.
There is a parent/child model to bundle graphs together. Each TGraphInteractive can have only one parent. However, they can have any number of children. (There's a crisis of family values in TGraphInteractive land)
Definition at line 76 of file TGraphInteractive.h.
|
inlinevirtual |
Call TGraphAligned draw Satisfy pure virtual overload of GuiParent
opt | is the ROOT drawing option to use |
Implements Acclaim::GuiParent.
Definition at line 94 of file TGraphInteractive.h.
Acclaim::GuiParent * Acclaim::TGraphInteractive::findOriginator | ( | ) | const |
Go up the parent tree until we find a GuiParent where getParent() returns NULL
Definition at line 208 of file TGraphInteractive.cxx.
|
inline |
Retrieve default draw option
Definition at line 113 of file TGraphInteractive.h.
|
inline |
Set the default draw option This value is used if Draw() is called with default arg
drawOpt | is the default draw option to set |
Definition at line 104 of file TGraphInteractive.h.