library: libRooFit
#include "RooGraphEdge.h"

RooGraphEdge


class description - source file - inheritance tree (.pdf)

class RooGraphEdge : public TObject

Inheritance Chart:
TObject
<-
RooGraphEdge

    public:
RooGraphEdge() RooGraphEdge(RooGraphNode* n1, RooGraphNode* n2) RooGraphEdge(RooGraphNode* n1, RooGraphNode* n2, TString es) RooGraphEdge(const RooGraphEdge&) ~RooGraphEdge() static TClass* Class() void Connect() void Connect(int color) void Connect(RooGraphNode* n1, RooGraphNode* n2) const char* Get1stNode() const const char* Get2ndNode() const RooGraphNode* GetEnd() double GetInitialDistance() RooGraphNode* GetStart() TString GetStyle() const TObject* GetType(TList* padlist) double GetX1() double GetX2() double GetY1() double GetY2() virtual TClass* IsA() const RooGraphEdge& operator=(const RooGraphEdge&) void print() void read(ifstream& file) void Set1stNode(RooGraphNode* n1) void Set2ndNode(RooGraphNode* n2) void SetType(TString es) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void SwitchNodes()

Data Members

    private:
RooGraphNode* fn1 nodes the edge RooGraphNode* fn2 connects together TString fes TString ffirstnode TString fsecondnode

Class Description

RooGraphEdge:                                                              
                                                                           
The edge class is a subset of the node class and an edge can only be made  
if there are two nodes to connect it to. It is used to show how the nodes  
depend on each other, and to help display the topology of the graph.  They 
are also necessary for finding the graph lenght for the springs.           


RooGraphEdge()
Default constructor for an edge

RooGraphEdge(RooGraphNode *n1, RooGraphNode *n2)
Edge standard constructor with default edge type

RooGraphEdge(RooGraphNode *n1, RooGraphNode *n2, TString es)
Edge standard constructor

void print()
prints the names of the nodes the edge is connected to to the screen

void read(ifstream &file)
gets the information needed to draw an edge from a file of a special format

void Set1stNode(RooGraphNode *n1)
sets the first node for the edge

void Set2ndNode(RooGraphNode *n2)
sets the second node for the edge

void Connect()
draw the edge to the canvas in the form of either a line, or arrow

void Connect(int color)
draws the egde to the canvas with the given color

void Connect(RooGraphNode *n1, RooGraphNode *n2)
draws the edge to the screen with the given imput nodes

double GetInitialDistance()
Returns the length of the edge

TObject* GetType(TList *padlist)
returns the object that represents the edge on the canvas

double GetX1()
returns the value for x1

double GetY1()
returns the value for y1

double GetX2()
returns the value for x2

double GetY2()
returns the value for y2

void SwitchNodes()
switches the nodes of the edge



Inline Functions


                 void ~RooGraphEdge()
                 void SetType(TString es)
          const char* Get1stNode() const
          const char* Get2ndNode() const
              TString GetStyle() const
        RooGraphNode* GetStart()
        RooGraphNode* GetEnd()
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
         RooGraphEdge RooGraphEdge(const RooGraphEdge&)
        RooGraphEdge& operator=(const RooGraphEdge&)


Last update: Tue Jun 28 18:12:50 2005
Copyright (c) 2000-2005, Regents of the University of California *


ROOT page - Class index - Class Hierarchy - Top of the page

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.