Public Member Functions | Friends | List of all members
Acclaim::TGraphInteractive Class Reference

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)
 
GuiParentfindOriginator () 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 GuiParentgetParent () const
 
- Public Member Functions inherited from TGraphAligned
 TGraphAligned ()
 
 TGraphAligned (Int_t n)
 
TGraphAlignedoperator= (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 TGraphInteractivefindChild (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)
 

Detailed Description

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.

Inheritance diagram for Acclaim::TGraphInteractive:
Inheritance graph
[legend]
Collaboration diagram for Acclaim::TGraphInteractive:
Collaboration graph
[legend]

Member Function Documentation

virtual void Acclaim::TGraphInteractive::Draw ( Option_t *  opt = "")
inlinevirtual

Call TGraphAligned draw Satisfy pure virtual overload of GuiParent

Parameters
optis 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

Returns
the top level Graphical object

Definition at line 208 of file TGraphInteractive.cxx.

Option_t* Acclaim::TGraphInteractive::GetDrawOpt ( )
inline

Retrieve default draw option

Returns
the default draw option(fDrawOpt)

Definition at line 113 of file TGraphInteractive.h.

void Acclaim::TGraphInteractive::SetDrawOpt ( Option_t *  drawOpt)
inline

Set the default draw option This value is used if Draw() is called with default arg

Parameters
drawOptis the default draw option to set

Definition at line 104 of file TGraphInteractive.h.


The documentation for this class was generated from the following files: