GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4FitNamed Class Reference

Extension of ROOT TNamed class. More...

#include <TGo4FitNamed.h>

Inheritance diagram for TGo4FitNamed:

Public Member Functions

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

Private Attributes

TString fxFullName
 String, containing full name of object.
TNamed * fxOwner {nullptr}
 Owner 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 25 of file TGo4FitNamed.h.

Constructor & Destructor Documentation

◆ TGo4FitNamed() [1/4]

◆ TGo4FitNamed() [2/4]

TGo4FitNamed::TGo4FitNamed ( const char * Name,
const char * Title,
TNamed * Owner = nullptr )

Creates TGo4FitNamed object and set name and title.

Definition at line 20 of file TGo4FitNamed.cxx.

References fxFullName, and fxOwner.

◆ ~TGo4FitNamed() [1/2]

TGo4FitNamed::~TGo4FitNamed ( )
virtual

Destroy TGo4FitNamed object.

Definition at line 25 of file TGo4FitNamed.cxx.

◆ TGo4FitNamed() [3/4]

TGo4FitNamed::TGo4FitNamed ( )

Default constructor.

◆ TGo4FitNamed() [4/4]

TGo4FitNamed::TGo4FitNamed ( const char * Name,
const char * Title,
TNamed * Owner = nullptr )

Creates TGo4FitNamed object and set name and title.

◆ ~TGo4FitNamed() [2/2]

virtual TGo4FitNamed::~TGo4FitNamed ( )
virtual

Destroy TGo4FitNamed object.

Member Function Documentation

◆ GetFullName() [1/2]

◆ GetFullName() [2/2]

const char * TGo4FitNamed::GetFullName ( )

Returns full name of object.

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

◆ GetOwner() [1/2]

◆ GetOwner() [2/2]

TNamed * TGo4FitNamed::GetOwner ( )
inline

Return owner of object.

Definition at line 64 of file TGo4FitNamed.h.

References fxOwner.

◆ GetOwnerFullName() [1/2]

const char * TGo4FitNamed::GetOwnerFullName ( )

Return full name of owner.

If not exist, return just name of owner.

Definition at line 27 of file TGo4FitNamed.cxx.

References TGo4FitNamed(), GetFullName(), and GetOwner().

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

◆ GetOwnerFullName() [2/2]

const char * TGo4FitNamed::GetOwnerFullName ( )

Return full name of owner.

If not exist, return just name of owner.

◆ Print() [1/2]

◆ Print() [2/2]

void TGo4FitNamed::Print ( Option_t * option = "") const
override

References fxOwner.

◆ SetOwner() [1/2]

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 constructing of full name of object.

Definition at line 59 of file TGo4FitNamed.h.

References fxOwner.

Referenced by TGo4FitSlot::TGo4FitSlot(), TGo4FitParsList::AddPar(), TGo4FitModel::AssignToData(), TGo4FitSlot::CheckOwnership(), TGo4Fitter::Draw(), TGo4FitParsList::InsertPar(), TGo4FitSlot::SetDefaults(), and TGo4FitParsList::SetParsOwner().

◆ SetOwner() [2/2]

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 constructing of full name of object.

Definition at line 59 of file TGo4FitNamed.h.

References fxOwner.

Field Documentation

◆ fxFullName

TString TGo4FitNamed::fxFullName
private

String, containing full name of object.

Definition at line 78 of file TGo4FitNamed.h.

Referenced by TGo4FitNamed(), TGo4FitNamed(), and GetFullName().

◆ fxOwner

TNamed * TGo4FitNamed::fxOwner {nullptr}
private

Owner of object.

Definition at line 73 of file TGo4FitNamed.h.

Referenced by TGo4FitNamed(), TGo4FitNamed(), GetOwner(), Print(), and SetOwner().


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