+
class RooGraphNode
-
library: libRooFitCore
#include "RooGraphNode.h"
Display options:
Show inherited
Show non-public

class RooGraphNode: public TObject

RooGraphNode:                                                              

The purpose of this class is to create nodes, based from the TEllipse class
that have a position, name, and energy that is drawn on the graph with the 
node.  The energy is determined by the topology of the system of nodes the 
node is drawn with and the edges it is attached with and is calculated from
a system of strings that attach all the nodes in the system.               

Function Members (Methods)

public:
RooGraphNode()
RooGraphNode(const RooGraphNode&)
RooGraphNode(double x, double y)
RooGraphNode(double x, double y, double w, double l, TString text)
~RooGraphNode()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
voiddraw()
voiddraw(int color)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
voidGetDxDy(double& dx, double& dy, TList* nodessprings)
TEllipse*GetEllipse(TList* padlist)
virtual const char*TObject::GetIconName() const
virtual const char*GetName() const
voidGetNumber(double number)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
doubleGetRadius() const
virtual const char*TObject::GetTitle() const
doubleGetTotalE(TList* nodessprings, char m)
doubleGetTotalE2(TList* nodessprings, char m)
doubleGetTotalEChange(TList* nodessprings)
doubleGetTotalExy(TList* nodessprings)
virtual UInt_tTObject::GetUniqueID() const
voidGetValue(double number, TList* padlist, TList* edges)
doubleGetX1() const
doubleGetY1() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
voidNodesSprings(TList* springs, TList* nodessprings)
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooGraphNode&operator=(const RooGraphNode&)
voidpaint()
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidprint() const
virtual voidTObject::Print(Option_t* option = "") const
voidread(ifstream& file)
virtual Int_tTObject::Read(const char* name)
voidReadPDF(ifstream& file)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidRedrawEdges(TList* edges)
voidRedrawEdges(TList* edges, int color)
voidRemoveE(TList* padlist)
voidRemoveEdges(TList* edges, TList* padlist)
voidRemoveN(TList* padlist)
voidRemoveT(TList* padlist)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCoords(double x, double y)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetSize(double w, double l)
voidSetText(TString text)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
doublefR1node width
doublefR2node length
doublefX1x coordinate
doublefY1y coordinate
doublefnumber
TStringftextstring of text

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooGraphNode(const RooGraphNode& )
Node default constructor
RooGraphNode(double x, double y)
Node constructor with default radius and text
RooGraphNode(double x, double y, double w, double l, TString text)
Node standard constructor
void paint()
Paints Node to canvas by painting an ellipse and text at that location
void draw(int color)
Draws Node to canvas
void draw(int color)
Draws Node to canvas with given color
void print()
outputs location and size of the node to screen
void read(ifstream& file)
Reads the properties of the node from a file of a set format
void ReadPDF(ifstream& file)
Reads the properties of the node from a file created from the PDF info
void SetCoords(double x, double y)
Changes the coordinates of the node to the given values
void SetSize(double w, double l)
Sets the size of the node to the given values
void SetText(TString text)
Changes the name and attached string of the node to given string
void GetNumber(double number)
draws the given number value to the screen at the node location.
This is a number or value associated with the node.
void GetValue(double number, TList* padlist, TList* edges)
TEllipse * GetEllipse(TList* padlist)
Returns the ellipse that was created by drawing this ellipse to the current
canvas by finding it from the list of canvas objects.
void RemoveT(TList* padlist)
Finds and removes the text associated with this node from the list of
canvas objects
void RemoveN(TList* padlist)
Finds the number associated with this node, created from GetNumber, and
removes it from the canvas by finding it in the list of canvas objects
void RemoveE(TList* padlist)
Removes the ellipse associated with this node from the canvas
This is the only way to redraw the Node in a new location
void RemoveEdges(TList* edges, TList* padlist)
Finds all the edges associated with this node by searching a list of all
the edges on the canvas, and then finds them in the list of canvas objects
and removes them from the canvas.
This is the only way the edges can be redrawn in new location
void RedrawEdges(TList* edges)
Redraws the edges associated with this node.
void RedrawEdges(TList* edges, int color)
Redraws the edges associated with this node in the given color
void NodesSprings(TList* springs, TList* nodessprings)
Finds all the springs associated witht this node from the list of springs
existing and puts them into a list.
double GetTotalEChange(TList* nodessprings)
Returns the total change in energy for this node
double GetTotalE(TList* nodessprings, char m)
Returns the derivative of the energy of this node with respect to either
x or y, which is determined by the input character m
double GetTotalE2(TList* nodessprings, char m)
Returns the second derivative of the energy of the node with respect to
x or y, determined by the input character m
double GetTotalExy(TList* nodessprings)
Returns the double derivative of the energy of the node with respect to
both x and y
void GetDxDy(double& dx, double& dy, TList* nodessprings)
Solves for two parameters, dx and dy, which are the change in the possition
of the node necessary to reduce it's energy
RooGraphNode(const RooGraphNode& )
double GetX1()
{ return fX1; }
double GetY1()
{ return fY1; }
double GetRadius()
{ return fR1; }
const char* GetName()
{ return ftext.Data(); }

Last update: Mon Jun 25 19:44:07 2007
Copyright (c) 2000-2005, Regents of the University of California *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.