ROOT logo
ROOT » GEOM » GEOM » TGeoElemIter

class TGeoElemIter


 TGeoElement      - base class for chemical elements
 TGeoElementRN    - class representing a radionuclide
 TGeoElemIter     - iterator for decay branches
 TGeoDecayChannel - a decay channel for a radionuclide
 TGeoElementTable - table of elements


Function Members (Methods)

public:
TGeoElemIter(const TGeoElemIter& iter)
TGeoElemIter(TGeoElementRN* top, Double_t limit = 1.e-4)
virtual~TGeoElemIter()
static TClass*Class()
TObjArray*GetBranch() const
const TGeoElementRN*GetElement() const
Int_tGetLevel() const
Double_tGetRatio() const
const TGeoElementRN*GetTop() const
virtual TClass*IsA() const
TGeoElementRN*Next()
TGeoElementRN*operator()()
TGeoElemIter&operator=(const TGeoElemIter& iter)
virtual voidPrint(Option_t* option = "") const
voidSetLimitRatio(Double_t limit)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

private:
TObjArray*fBranchCurrent branch
const TGeoElementRN*fElemCurrent element
Int_tfLevelCurrent level
Double_tfLimitRatioMinimum cumulative branching ratio
Double_tfRatioCurrent ratio
const TGeoElementRN*fTopTop element of the iteration

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGeoElemIter(TGeoElementRN* top, Double_t limit = 1.e-4)
 Default constructor.
TGeoElemIter(const TGeoElemIter& iter)
 Copy ctor.
~TGeoElemIter()
 Destructor.
TGeoElemIter & operator=(const TGeoElemIter& iter)
 Assignment.
TGeoElementRN * operator()()
 () operator.
TGeoElementRN * Up()
 Go upwards from the current location until the next branching, then down.
TGeoElementRN * Down(Int_t ibranch)
 Go downwards from current level via ibranch as low in the tree as possible.
 Return value flags if the operation was successful.
TGeoElementRN * Next()
 Return next element.
void Print(Option_t* option = "") const
 Print info about the current decay branch.
TGeoElementRN * GetElement() const
{return fElem;}
TGeoElemIter()
{}
TObjArray * GetBranch() const
{return fBranch;}
const TGeoElementRN * GetTop() const
{return fTop;}
Int_t GetLevel() const
{return fLevel;}
Double_t GetRatio() const
{return fRatio;}
void SetLimitRatio(Double_t limit)
{fLimitRatio = limit;}