- PadVector ans;
- Bool_t cont=kTRUE;
- do {
- if (IsNeighbour(current))
- ans.push_back(current);
- else
- cont=kFALSE;
- TVector2 nextPos = current.Position() + TVector2(
- current.Dimensions().X()*(AliMpConstants::LengthStep()+1.)*direction.GetFirst(),
- current.Dimensions().Y()*(AliMpConstants::LengthStep()+1.)*direction.GetSecond());
- current = fkSegmentation->PadByPosition(nextPos, false);
- } while (cont);
- return ans;
-}
-
-//______________________________________________________________________________
-void AliMpNeighboursPadIterator::UpdateTotalSet(PadSet& setTotal,
- const PadVector& from) const
-{
-/// Add pads from pad vector to the total set
-/// only if they are not yet included
-
- setTotal.insert(from.begin(),from.end());
-}
-
-#endif
-#ifdef WITH_ROOT
-//______________________________________________________________________________
-AliMpNeighboursPadIterator::PadVector*
-AliMpNeighboursPadIterator::PadVectorLine(const AliMpPad& from,
- const AliMpIntPair& direction) const
-{
-/// Fill a new vector with all pads which have common
-/// parts with the pad located at \a fCenterPad, in a given line
-/// starting from \a from and moving by \a direction
-
- AliMpPad current = from;
- PadVector* ans = new PadVector();