Next: TPhHitArrays
Up: TPhTopology - an introduction
Previous: TPhTopology - an introduction
  Contents
TPhTopoData is the means by which one can store and access data
according to a structure (e.g. FEC structure, FB structure, etc.)
defined by a TPhTopology.
The constructor to a TPhTopoData requires the existence of a TPhTopology
(see documentation in TPhTopology.cxx). If it is a topology, then
TPhTopoData(t, depth)
allocates an array corresponding to the depth. If depth = -1 then the
array has one entry per data channel. Otherwise, the array gets one
entry for each node. For instance, one might want an entry for each
chip in an FECDetector for a CMN calculation.
Useful methods:
- Begin(i) gets an iterator to channel i.
- End() gets an iterator pointing to one past the last element
- Begin(TPhTopoIter), Begin(TPhTopoPtr) gets data corresponding to
the iterator. lets one get the data for a chip, string, etc.
- Depth() counts how many depths lie beneath the root node.
- Length() counts how many data channels lie beneath the root node.
- At(int i) gets data at offset i
- Get(i) creates a new topodata representing the data for the i'th
object.
- GetDataFor(TPhTopoIter) gets a new topodata for the object pointed to
by the topooiter
Next: TPhHitArrays
Up: TPhTopology - an introduction
Previous: TPhTopology - an introduction
  Contents
Gunther Roland
2000-05-05