1 #include "StiSortedHitIterator.h"
17 vector<StiDetector*>::iterator firstDet,
18 vector<StiDetector*>::iterator lastDet): _currentHit(0)
20 _hitContainer = hitContainer;
22 for ( _currentDet = firstDet; _currentDet<_lastDet; ++_currentDet) {
23 if (_hitContainer->hasDetector(*_currentDet) ) {
24 _currentDetHit = _hitContainer->hitsBegin(*_currentDet);
25 _lastDetHit = _hitContainer->hitsEnd(*_currentDet);
26 if (_currentDetHit<_lastDetHit) {
27 _currentHit = *_currentDetHit;
32 _currentDetHit = _lastDetHit;
34 if (! _currentHit) _currentDet = _lastDet;
39 : _currentHit(iter._currentHit),
40 _hitContainer(iter._hitContainer),
41 _currentDet(iter._currentDet),
42 _firstDet(iter._firstDet),
43 _lastDet(iter._lastDet),
44 _currentDetHit(iter._currentDetHit),
45 _lastDetHit(iter._lastDetHit)
StiSortedHitIterator()
Default constructor used to create an iterator that points to no hit (e.g. to be returned by end()) ...