FEDRA emulsion software from the OPERA Collaboration
|
IndexCell volume iterator. More...
#include <TIndexCell.h>
Public Member Functions | |
const TIndexCell * | GetCell () const |
int | LevelDown () |
TIndexCell const * | Next () |
TIndexCell const * | NextAll () |
void | Reset () |
void | Test () |
TIndexCellIterV (const TIndexCell *cell, int level, long vcent[], long vdiff[], Bool_t dir=kIterForward) | |
~TIndexCellIterV () | |
Private Member Functions | |
TIndexCellIterV () | |
Private Attributes | |
const TIndexCell * | fCell |
cell being iterated More... | |
Bool_t | fDirection |
iteration direction More... | |
Int_t | fLevel |
current level More... | |
Int_t | fLevel0 |
level to be iterated on More... | |
Int_t | fPass |
number of cells iterated More... | |
Long_t * | fVcent |
central subcell More... | |
Long_t * | fVdiff |
volume to be iterated around Vcent More... | |
Int_t * | fVind |
current position in array More... | |
Long_t * | fVval |
values corresponding to Vind More... | |
IndexCell volume iterator.
|
inlineprivate |
TIndexCellIterV::TIndexCellIterV | ( | const TIndexCell * | cell, |
int | level, | ||
long | vcent[], | ||
long | vdiff[], | ||
Bool_t | dir = kIterForward |
||
) |
Create cell iterator. By default the iteration direction is kIterForward. To go backward use kIterBackward.
|
inline |
|
inline |
int TIndexCellIterV::LevelDown | ( | ) |
TIndexCell const * TIndexCellIterV::Next | ( | ) |
Return next object in the defined volume.
Returns 0 when no more objects in the cell.
TODO: inefficient cycle ! put here find...
TIndexCell const * TIndexCellIterV::NextAll | ( | ) |
Return next object in cell. Returns 0 when no more objects in cell.
void TIndexCellIterV::Reset | ( | ) |
void TIndexCellIterV::Test | ( | ) |
|
private |
cell being iterated
|
private |
iteration direction
|
private |
current level
|
private |
level to be iterated on
|
private |
number of cells iterated
|
private |
central subcell
|
private |
volume to be iterated around Vcent
|
private |
current position in array
|
private |
values corresponding to Vind