LOGO

RestFrames  v1.0.1
RestFrames HEP Event Analysis Software Library
Public Member Functions | List of all members
RestFrames::TreePlot Class Reference

Detailed Description

Definition at line 50 of file TreePlot.hh.

Inheritance diagram for RestFrames::TreePlot:
Inheritance graph
[legend]

Public Member Functions

 TreePlot (const std::string &sname, const std::string &stitle)
 Standard constructor. More...
 
virtual void Clear ()
 Clears TreePlot from all connections to other objects.
 
void SetTree (const RestFrame &frame)
 Sets a tree that shows how a frame is connected to its children. More...
 
void SetTree (const Group &group)
 Sets a tree that shows how elemnts of group have been broken apart by jigsaws. More...
 
void SetTree (const Jigsaw &jigsaw)
 Sets a tree that shows how jigsaw is connected to its children. More...
 
void AddJigsaw (const Jigsaw &jigsaw)
 Adds a jigsaw to a frame tree and shows how jigsaw could affect the tree. More...
 
void Draw (const std::string &name="", const std::string &title="", bool invert_colors=false, bool invert_node_colors=false)
 Draws tree. More...
 
- Public Member Functions inherited from RestFrames::RFPlot
 RFPlot (const std::string &sname, const std::string &stitle)
 Standard constructor. More...
 
void WriteOutput (const std::string &filename)
 Stores all plots in root file. More...
 
- Public Member Functions inherited from RestFrames::RFBase
 RFBase (const std::string &sname, const std::string &stitle, int key)
 Standard constructor. More...
 
 RFBase ()
 Empty constructor.
 
bool IsEmpty () const
 Checks whether this is default (empty) instance of class.
 
bool operator! () const
 Tests whether key is the same as this.
 
void Print (LogType type) const
 Print information associated with object.
 
virtual std::string PrintString (LogType type) const
 String of information associated with object.
 
RFKey GetKey () const
 gets object identification key
 
std::string GetName () const
 Returns object name.
 
std::string GetTitle () const
 Returns object title.
 
bool IsSame (const RFKey &key) const
 Tests whether key is the same as this.
 
bool IsSame (const RFBase &obj) const
 Tests whether obj is the same as this.
 
bool operator== (const RFKey &key) const
 Tests whether key is the same as this.
 
bool operator== (const RFBase &obj) const
 Tests whether obj is the same as this.
 
bool operator!= (const RFKey &key) const
 Tests whether key is the same as this.
 
bool operator!= (const RFBase &obj) const
 Tests whether obj is the same as this.
 

Additional Inherited Members

- Static Public Member Functions inherited from RestFrames::RFBase
static RFBaseEmpty ()
 Returns empty RFBase. More...
 
- Static Public Attributes inherited from RestFrames::RFPlot
static const TColor rf_blue0
 
static const TColor rf_blue1
 
static const TColor rf_blue2
 
static const TColor rf_blue3
 
static const TColor rf_blue4
 
static const TColor rf_green0
 
static const TColor rf_green1
 
static const TColor rf_green2
 
static const TColor rf_green3
 
static const TColor rf_green4
 
static const TColor rf_red0
 
static const TColor rf_red1
 
static const TColor rf_red2
 
static const TColor rf_red3
 
static const TColor rf_red4
 
static const TColor rf_yellow0
 
static const TColor rf_yellow1
 
static const TColor rf_yellow2
 
static const TColor rf_yellow3
 
static const TColor rf_yellow4
 
static const TColor rf_cyan0
 
static const TColor rf_cyan1
 
static const TColor rf_cyan2
 
static const TColor rf_cyan3
 
static const TColor rf_cyan4
 
static const TColor rf_lime0
 
static const TColor rf_lime1
 
static const TColor rf_lime2
 
static const TColor rf_lime3
 
static const TColor rf_lime4
 
static const TColor rf_purple0
 
static const TColor rf_purple1
 
static const TColor rf_purple2
 
static const TColor rf_purple3
 
static const TColor rf_purple4
 
static const TColor rf_orange0
 
static const TColor rf_orange1
 
static const TColor rf_orange2
 
static const TColor rf_orange3
 
static const TColor rf_orange4
 
- Protected Member Functions inherited from RestFrames::RFPlot
void AddCanvas (TCanvas *can)
 
void AddTObject (TObject *obj)
 
int GetNCanvases ()
 
std::string GetUniqueName (const std::string &name)
 
- Protected Member Functions inherited from RestFrames::RFBase
bool SetBody (bool body) const
 
bool SetMind (bool mind) const
 
bool SetSpirit (bool spirit) const
 
virtual bool IsSoundBody () const
 
virtual bool IsSoundMind () const
 
virtual bool IsSoundSpirit () const
 
void UnSoundBody (const std::string &function) const
 
void UnSoundMind (const std::string &function) const
 
void UnSoundSpirit (const std::string &function) const
 
void AddDependent (RFBase *dep)
 pointer to RFBase object owned by this one
 
- Protected Attributes inherited from RestFrames::RFPlot
TCanvas * m_CanvasPtr
 
- Protected Attributes inherited from RestFrames::RFBase
RFLog m_Log
 
RFBasem_This
 
- Static Protected Attributes inherited from RestFrames::RFBase
static const TVector3 m_Empty3Vector
 
static const TLorentzVector m_Empty4Vector
 

Constructor & Destructor Documentation

◆ TreePlot()

RestFrames::TreePlot::TreePlot ( const std::string &  sname,
const std::string &  stitle 
)

Standard constructor.

Parameters
snameclass instance name used for log statements
stitleclass instance title used in figures

Definition at line 58 of file TreePlot.cc.

Member Function Documentation

◆ AddJigsaw()

void RestFrames::TreePlot::AddJigsaw ( const Jigsaw jigsaw)

Adds a jigsaw to a frame tree and shows how jigsaw could affect the tree.

Parameters
jigsawJigsaw to add

Definition at line 170 of file TreePlot.cc.

◆ Draw()

void RestFrames::TreePlot::Draw ( const std::string &  name = "",
const std::string &  title = "",
bool  invert_colors = false,
bool  invert_node_colors = false 
)

Draws tree.

Parameters
nameName of the tree used for the canvas
titleTitle of the tree used for the canvas
invert_colorsIf true figure will have a black background with ligther frames else it will have a white background with darker frames
invert_node_colorsIf invert_colors = false, nodes will be drawn ligther and if invert_colors = true, nodes will be drawn darker. Change boolean value to flip it

Definition at line 127 of file TreePlot.cc.

◆ SetTree() [1/3]

void RestFrames::TreePlot::SetTree ( const Group group)

Sets a tree that shows how elemnts of group have been broken apart by jigsaws.

Parameters
groupGroup to show

Definition at line 185 of file TreePlot.cc.

◆ SetTree() [2/3]

void RestFrames::TreePlot::SetTree ( const Jigsaw jigsaw)

Sets a tree that shows how jigsaw is connected to its children.

Parameters
jigsawJigsaw to show how it's connected to its children

Method to set a tree of jigsaws and how jigsaw is connected to its children, it also shows how jigsaws have been applied to a correspoding group

Definition at line 197 of file TreePlot.cc.

◆ SetTree() [3/3]

void RestFrames::TreePlot::SetTree ( const RestFrame frame)

Sets a tree that shows how a frame is connected to its children.

Parameters
frameFrame to show how it's connected to its children

Definition at line 160 of file TreePlot.cc.

Collaboration diagram for RestFrames::TreePlot:
Collaboration graph
[legend]

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