Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::Package Class Reference
Inheritance diagram for Hal::Package:

Public Member Functions

 Package ()
 
 Package (const TObject *object, Bool_t cut_template=kFALSE)
 
void AddObject (TObject *object)
 
void Add (const Package *pack)
 
virtual Long64_t Merge (TCollection *collection)
 
void SetName (TString name)
 
void SetComment (TString name)
 
void PrintInfo (Int_t max_deep=0) const
 
void PrintStruct () const
 
void SetAdditionalCounter (Int_t counter)
 
void RemoveObjectByName (TString name, Int_t index=0, Bool_t delete_obj=kTRUE)
 
virtual void Browse (TBrowser *b)
 
Int_t GetEntries () const
 
Int_t GetMerged () const
 
Bool_t Exist (TString name, Int_t index=0, Option_t *opt=" ") const
 
TObject * GetObject (Int_t i) const
 
TObject * GetObjectByName (TString name, Int_t index=0, Bool_t quited=kFALSE) const
 
TObject * GetObjectByClassName (TString name, Int_t index=0) const
 
const char * GetName () const
 
TString GetComment () const
 
PackageReport () const
 
Packageoperator+ (const Package &rhs)
 

Detailed Description

Definition at line 26 of file Package.h.

Constructor & Destructor Documentation

◆ Package() [1/2]

Hal::Package::Package ( )

basic constructor

Definition at line 24 of file Package.cxx.

◆ Package() [2/2]

Hal::Package::Package ( const TObject * object,
Bool_t cut_template = kFALSE )

create class from object

Parameters
objectobject that give name for this class
cut_templateif true then only first part of name is used as class name (e.g. ClassA_A will be named as ClassA

Definition at line 34 of file Package.cxx.

◆ ~Package()

Hal::Package::~Package ( )
virtual

Definition at line 204 of file Package.cxx.

Member Function Documentation

◆ Add()

void Hal::Package::Add ( const Package * pack)

add object of the same structure to this

Parameters
packpacakge to add

Definition at line 254 of file Package.cxx.

◆ AddObject()

void Hal::Package::AddObject ( TObject * object)

add object to array of objects

Parameters
objectobject to add

Definition at line 209 of file Package.cxx.

◆ Browse()

void Hal::Package::Browse ( TBrowser * b)
virtual

used to by TBrowser

Parameters
b

Definition at line 195 of file Package.cxx.

◆ Exist()

Bool_t Hal::Package::Exist ( TString name,
Int_t index = 0,
Option_t * opt = " " ) const
Parameters
nameobject name
indexindex of object (if few with the same name exists)
optif " " search by name and index, if "classname" find by classname not name of object if "index" search only by index
Returns
true if object exist

Definition at line 300 of file Package.cxx.

◆ GetComment()

TString Hal::Package::GetComment ( ) const
Returns
comment

Definition at line 63 of file Package.cxx.

◆ GetEntries()

Int_t Hal::Package::GetEntries ( ) const
Returns
number objects inside this object

Definition at line 61 of file Package.cxx.

◆ GetMerged()

Int_t Hal::Package::GetMerged ( ) const
Returns
number of merging this object if 1 then object has never been merged

Definition at line 140 of file Package.cxx.

◆ GetName()

const char * Hal::Package::GetName ( ) const
Returns
GetClassName()

Definition at line 167 of file Package.cxx.

◆ GetObject()

TObject * Hal::Package::GetObject ( Int_t i) const
Parameters
iobject index
Returns
found ojbect

Definition at line 52 of file Package.cxx.

◆ GetObjectByClassName()

TObject * Hal::Package::GetObjectByClassName ( TString name,
Int_t index = 0 ) const

search for object

Parameters
nameclass name of object
indexused if few object have the same classname
Returns
found object

Definition at line 169 of file Package.cxx.

◆ GetObjectByName()

TObject * Hal::Package::GetObjectByName ( TString name,
Int_t index = 0,
Bool_t quited = kFALSE ) const

search for object by name

Parameters
namename of object
indexindex of object (if few have the same name)
quitetif true supress warnings
Returns
found object

Definition at line 67 of file Package.cxx.

◆ Merge()

Long64_t Hal::Package::Merge ( TCollection * collection)
virtual

used to merge similar objects

Parameters
collection

Definition at line 348 of file Package.cxx.

◆ operator+()

Package & Hal::Package::operator+ ( const Package & rhs)

add objects

Parameters
rhsobject to add
Returns
this

Definition at line 218 of file Package.cxx.

◆ PrintInfo()

void Hal::Package::PrintInfo ( Int_t max_deep = 0) const

print info about this object

Parameters
max_deepif 0 then objects that have internal structure don print their inner objects

Definition at line 273 of file Package.cxx.

◆ PrintStruct()

void Hal::Package::PrintStruct ( ) const

print structure of this object without additional information

Definition at line 292 of file Package.cxx.

◆ RemoveObjectByName()

void Hal::Package::RemoveObjectByName ( TString name,
Int_t index = 0,
Bool_t delete_obj = kTRUE )

remove object by name

Parameters
namename of object
indexindex (if more than one object with the same name exist)
delete_objif true the destructor for removed object is called

Definition at line 331 of file Package.cxx.

◆ Report()

Package * Hal::Package::Report ( ) const

create package from package

Returns
created packages

Definition at line 129 of file Package.cxx.

◆ SetAdditionalCounter()

void Hal::Package::SetAdditionalCounter ( Int_t counter)

add number to name of parent class (e.g. parentClass_1

Parameters
counternumber to add

Definition at line 50 of file Package.cxx.

◆ SetComment()

void Hal::Package::SetComment ( TString name)

set comment to this package

Parameters
namecomment

Definition at line 65 of file Package.cxx.

◆ SetName()

void Hal::Package::SetName ( TString name)

overwrite name of class that is creator of this package

Parameters
namenew name of parent class for this object

Definition at line 298 of file Package.cxx.


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