class TreeSearch::HitPairIter

Function Members (Methods)

public:
virtual~HitPairIter()
static TClass*Class()
const TSeqCollection*GetCollection(Int_t n = 0) const
TreeSearch::HitPairIterHitPairIter(const TreeSearch::HitPairIter& rhs)
TreeSearch::HitPairIterHitPairIter(const TSeqCollection* collA, const TSeqCollection* collB, Double_t maxdist)
virtual TClass*IsA() const
TreeSearch::HitPairIter&Next()
booloperator bool() const
booloperator!() const
booloperator!=(const TreeSearch::HitPairIter& rhs) const
TreeSearch::ObjPair_toperator()() const
TreeSearch::ObjPair_t&operator*()
TreeSearch::HitPairIter&operator++()
const TreeSearch::HitPairIteroperator++(int)
TreeSearch::HitPairIter&operator=(const TreeSearch::HitPairIter& rhs)
booloperator==(const TreeSearch::HitPairIter& rhs) const
voidReset()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TreeSearch::HitPairIterHitPairIter()

Data Members

private:
const TSeqCollection*fCollA
const TSeqCollection*fCollB
TreeSearch::ObjPair_tfCurrent
TIterator*fIterA
TIterator*fIterB
Double_tfMaxDist
TreeSearch::ObjPair_tfNext
TreeSearch::Hit*fSaveHit
TIterator*fSaveIter
Bool_tfScanning
Bool_tfStarted

Class Charts

Inheritance Chart:
TreeSearch::HitPairIter

Function documentation

HitPairIter(const TSeqCollection* collA, const TSeqCollection* collB, Double_t maxdist)
 Constructor
HitPairIter(const TreeSearch::HitPairIter& rhs)
 Copy ctor
HitPairIter& operator=(const TreeSearch::HitPairIter& rhs)
 Assignment operator
~HitPairIter()
 Destructor
void Reset()
 Reset the iterator to the start
HitPairIter& Next()
 Return next pair of hits along the wire plane. If a hit in either
 plane is unpaired (no matching hit on the other plane within maxdist)
 then only that hit is set in the returned pair object. If both
 hits returned are zero, then there are no more hits in either plane.
bool operator()( const Hit* a, const Hit* b )
HitPairIter(const TSeqCollection* collA, const TSeqCollection* collB, Double_t maxdist)
const TSeqCollection* GetCollection(Int_t n = 0) const
{ return (n==0) ? fCollA : fCollB; }
HitPairIter& operator++(int )
{ return Next(); }
const HitPairIter operator++(int )
ObjPair_t& operator*()
 Comparisons
{ return fCurrent; }
bool operator==(const TreeSearch::HitPairIter& rhs) const
bool operator!=(const TreeSearch::HitPairIter& rhs) const
{ return !(*this==rhs); }
operator bool()
{ return (fCurrent.first != 0 || fCurrent.second != 0); }
bool operator!()
{ return !((bool)*this); }

Last update: Tue Jul 7 19:26:18 2009

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.