Logo ROOT  
Reference Guide
TGeoElemIter Class Reference

Iterator for decay branches.

Definition at line 328 of file TGeoElement.h.

Public Member Functions

 TGeoElemIter (const TGeoElemIter &iter)
 Copy ctor. More...
 
 TGeoElemIter (TGeoElementRN *top, Double_t limit=1.e-4)
 Default constructor. More...
 
virtual ~TGeoElemIter ()
 Destructor. More...
 
TObjArrayGetBranch () const
 
const TGeoElementRNGetElement () const
 
Int_t GetLevel () const
 
Double_t GetRatio () const
 
const TGeoElementRNGetTop () const
 
TGeoElementRNNext ()
 Return next element. More...
 
TGeoElementRNoperator() ()
 () operator. More...
 
TGeoElemIteroperator= (const TGeoElemIter &iter)
 Assignment. More...
 
virtual void Print (Option_t *option="") const
 Print info about the current decay branch. More...
 
void SetLimitRatio (Double_t limit)
 

Protected Member Functions

 TGeoElemIter ()
 
TGeoElementRNDown (Int_t ibranch)
 Go downwards from current level via ibranch as low in the tree as possible. More...
 
TGeoElementRNUp ()
 Go upwards from the current location until the next branching, then down. More...
 

Private Attributes

TObjArrayfBranch
 
const TGeoElementRNfElem
 
Int_t fLevel
 
Double_t fLimitRatio
 
Double_t fRatio
 
const TGeoElementRNfTop
 

#include <TGeoElement.h>

Constructor & Destructor Documentation

◆ TGeoElemIter() [1/3]

TGeoElemIter::TGeoElemIter ( )
inlineprotected

Definition at line 339 of file TGeoElement.h.

◆ TGeoElemIter() [2/3]

TGeoElemIter::TGeoElemIter ( TGeoElementRN top,
Double_t  limit = 1.e-4 
)

Default constructor.

Definition at line 806 of file TGeoElement.cxx.

◆ TGeoElemIter() [3/3]

TGeoElemIter::TGeoElemIter ( const TGeoElemIter iter)

Copy ctor.

Definition at line 815 of file TGeoElement.cxx.

◆ ~TGeoElemIter()

TGeoElemIter::~TGeoElemIter ( )
virtual

Destructor.

Definition at line 832 of file TGeoElement.cxx.

Member Function Documentation

◆ Down()

TGeoElementRN * TGeoElemIter::Down ( Int_t  ibranch)
protected

Go downwards from current level via ibranch as low in the tree as possible.

Return value flags if the operation was successful.

Definition at line 891 of file TGeoElement.cxx.

◆ GetBranch()

TObjArray * TGeoElemIter::GetBranch ( ) const
inline

Definition at line 352 of file TGeoElement.h.

◆ GetElement()

const TGeoElementRN * TGeoElemIter::GetElement ( ) const
inline

Definition at line 354 of file TGeoElement.h.

◆ GetLevel()

Int_t TGeoElemIter::GetLevel ( ) const
inline

Definition at line 355 of file TGeoElement.h.

◆ GetRatio()

Double_t TGeoElemIter::GetRatio ( ) const
inline

Definition at line 356 of file TGeoElement.h.

◆ GetTop()

const TGeoElementRN * TGeoElemIter::GetTop ( ) const
inline

Definition at line 353 of file TGeoElement.h.

◆ Next()

TGeoElementRN * TGeoElemIter::Next ( )

Return next element.

Definition at line 907 of file TGeoElement.cxx.

◆ operator()()

TGeoElementRN * TGeoElemIter::operator() ( )

() operator.

Definition at line 858 of file TGeoElement.cxx.

◆ operator=()

TGeoElemIter & TGeoElemIter::operator= ( const TGeoElemIter iter)

Assignment.

Definition at line 840 of file TGeoElement.cxx.

◆ Print()

void TGeoElemIter::Print ( Option_t option = "") const
virtual

Print info about the current decay branch.

Definition at line 919 of file TGeoElement.cxx.

◆ SetLimitRatio()

void TGeoElemIter::SetLimitRatio ( Double_t  limit)
inline

Definition at line 358 of file TGeoElement.h.

◆ Up()

TGeoElementRN * TGeoElemIter::Up ( )
protected

Go upwards from the current location until the next branching, then down.

Definition at line 866 of file TGeoElement.cxx.

Member Data Documentation

◆ fBranch

TObjArray* TGeoElemIter::fBranch
private

Definition at line 333 of file TGeoElement.h.

◆ fElem

const TGeoElementRN* TGeoElemIter::fElem
private

Definition at line 332 of file TGeoElement.h.

◆ fLevel

Int_t TGeoElemIter::fLevel
private

Definition at line 334 of file TGeoElement.h.

◆ fLimitRatio

Double_t TGeoElemIter::fLimitRatio
private

Definition at line 335 of file TGeoElement.h.

◆ fRatio

Double_t TGeoElemIter::fRatio
private

Definition at line 336 of file TGeoElement.h.

◆ fTop

const TGeoElementRN* TGeoElemIter::fTop
private

Definition at line 331 of file TGeoElement.h.

Libraries for TGeoElemIter:
[legend]

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