Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4FitNamed Class Reference

Extension of ROOT TNamed class. More...

#include <TGo4FitNamed.h>

Inheritance diagram for TGo4FitNamed:

TGo4FitParameter TGo4FitParsList TGo4FitSlot TGo4FitterAction TGo4FitAxisTrans TGo4FitComponent TGo4FitterAbstract TGo4FitAmplEstimation TGo4FitMinuit TGo4FitPeakFinder TGo4FitterConfig TGo4FitterOutput List of all members.

Public Member Functions

 TGo4FitNamed ()
 Default constructor.
 TGo4FitNamed (const char *Name, const char *Title, TNamed *Owner=0)
 Creates TGo4FitNamed object and set name and title.
virtual ~TGo4FitNamed ()
 Destroy TGo4FitNamed object.
const char * GetFullName ()
 Returns full name of object.
const char * GetOwnerFullName ()
 Return full name of owner.
void SetOwner (TNamed *iOwner)
 Sets owner of object.
TNamed * GetOwner ()
 Return owner of object.
void Print (Option_t *option) const

Private Attributes

TNamed * fxOwner
 Owner of object.
TString fxFullName
 String, containing full name of object.

Detailed Description

Extension of ROOT TNamed class.

In addition to TNamed class property has owner and provides additional GetFullName() method. Full name consist of full name (if exists) of owner and name of object itself, divided by dot. For instance: "OwnerName.ObjectName". If owner has its owner, the full name will look like: "Owner1Name.Owner2Name.ObjectName". Any level of ownership is supported. Thus, full name shows hierarchy of ownership for given object.

Definition at line 26 of file TGo4FitNamed.h.


Constructor & Destructor Documentation

TGo4FitNamed::TGo4FitNamed  ) 
 

Default constructor.

Definition at line 19 of file TGo4FitNamed.cxx.

TGo4FitNamed::TGo4FitNamed const char *  Name,
const char *  Title,
TNamed *  Owner = 0
 

Creates TGo4FitNamed object and set name and title.

Definition at line 22 of file TGo4FitNamed.cxx.

TGo4FitNamed::~TGo4FitNamed  )  [virtual]
 

Destroy TGo4FitNamed object.

Definition at line 26 of file TGo4FitNamed.cxx.


Member Function Documentation

const char * TGo4FitNamed::GetFullName  ) 
 

Returns full name of object.

Consist of name or full name (if exist) of owner, divided by dot.

Definition at line 37 of file TGo4FitNamed.cxx.

References fxFullName, and GetOwnerFullName().

Referenced by TGo4FitSlotList::ClearObjects(), TGo4FitterAbstract::CopyParsValuesFrom(), TGo4FitParsList::Find(), TGo4FitSlotList::FindSlot(), GetOwnerFullName(), TGo4FitParameter::Print(), TGo4FitSlotList::SetObject(), and TGo4FitSlotList::SetSaveFlagForObjects().

const char * TGo4FitNamed::GetOwnerFullName  ) 
 

Return full name of owner.

If not exist, return just name of owner.

Definition at line 29 of file TGo4FitNamed.cxx.

References GetFullName(), and GetOwner().

Referenced by TGo4FitSlotList::CheckObjects(), TGo4FitSlotList::ClearObjects(), TGo4FitParsList::Find(), GetFullName(), TGo4FitSlotList::SetObject(), and TGo4FitSlotList::SetSaveFlagForObjects().

void TGo4FitNamed::SetOwner TNamed *  iOwner  )  [inline]
 

Sets owner of object.

Owner should be a object of TNamed or derived classes. If owner derived from TGo4FitNamed class, full name of owner used for constracting of full name of object.

Definition at line 60 of file TGo4FitNamed.h.

References fxOwner.

Referenced by TGo4FitParsList::AddPar(), TGo4FitModel::AssignToData(), TGo4FitSlot::CheckOwnership(), TGo4FitSlot::SetDefaults(), and TGo4FitSlot::TGo4FitSlot().

TNamed* TGo4FitNamed::GetOwner  )  [inline]
 

Return owner of object.

Definition at line 65 of file TGo4FitNamed.h.

References fxOwner.

Referenced by TGo4FitSlot::CheckOwnership(), TGo4FitParsList::Find(), and GetOwnerFullName().

void TGo4FitNamed::Print Option_t *  option  )  const
 

Reimplemented in TGo4FitAmplEstimation, TGo4FitComponent, TGo4FitData, TGo4FitDataGraph, TGo4FitDataHistogram, TGo4FitDataProfile, TGo4FitDataRidge, TGo4FitLinearTrans, TGo4FitMatrixTrans, TGo4FitMinuit, TGo4FitModel, TGo4FitModelFormula, TGo4FitModelFromData, TGo4FitModelFunction, TGo4FitModelGauss1, TGo4FitModelGauss2, TGo4FitModelGaussN, TGo4FitModelPolynom, TGo4FitParameter, TGo4FitParsList, TGo4FitPeakFinder, TGo4FitSlot, TGo4Fitter, TGo4FitterAbstract, TGo4FitterConfig, and TGo4FitterOutput.

Definition at line 49 of file TGo4FitNamed.cxx.

Referenced by TGo4FitterOutput::Print(), TGo4FitterConfig::Print(), TGo4FitterAbstract::Print(), TGo4FitPeakFinder::Print(), TGo4FitMinuit::Print(), TGo4FitComponent::Print(), and TGo4FitAmplEstimation::Print().


Member Data Documentation

TNamed* TGo4FitNamed::fxOwner [private]
 

Owner of object.

Definition at line 74 of file TGo4FitNamed.h.

Referenced by GetOwner(), and SetOwner().

TString TGo4FitNamed::fxFullName [private]
 

String, containing full name of object.

Definition at line 79 of file TGo4FitNamed.h.

Referenced by GetFullName().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:00:58 2008 for Go4-v3.04-1 by  doxygen 1.4.2