CMS 3D CMS Logo

TkHitPairsCacheCell Class Reference

#include <RecoTracker/TkHitPairs/interface/TkHitPairsCacheCell.h>

List of all members.

Public Types

typedef std::vector
< TkHitPairsCachedHit >
::const_iterator 
HitIter
typedef PixelRecoRange< HitIterHitIterRange
typedef ctfseeding::SeedingHit TkHitPairsCachedHit

Public Member Functions

HitIterRange range () const
HitIterRange range_from (float phiMin) const
HitIterRange range_upto (float phiMax) const
 TkHitPairsCacheCell (HitIter beg, HitIter end)
 TkHitPairsCacheCell ()

Static Public Member Functions

static bool lessPhiHitHit (const TkHitPairsCachedHit *a, const TkHitPairsCachedHit *b)
static bool lessPhiHitVal (const TkHitPairsCachedHit &a, const float &bphi)
static bool lessPhiValHit (const float &aphi, const TkHitPairsCachedHit &b)

Private Attributes

HitIter theBeg
HitIter theEnd


Detailed Description

Definition at line 9 of file TkHitPairsCacheCell.h.


Member Typedef Documentation

typedef std::vector<TkHitPairsCachedHit>::const_iterator TkHitPairsCacheCell::HitIter

Definition at line 13 of file TkHitPairsCacheCell.h.

typedef PixelRecoRange<HitIter> TkHitPairsCacheCell::HitIterRange

Definition at line 14 of file TkHitPairsCacheCell.h.

typedef ctfseeding::SeedingHit TkHitPairsCacheCell::TkHitPairsCachedHit

Definition at line 12 of file TkHitPairsCacheCell.h.


Constructor & Destructor Documentation

TkHitPairsCacheCell::TkHitPairsCacheCell (  )  [inline]

Definition at line 16 of file TkHitPairsCacheCell.h.

00016 : theBeg(0),theEnd(0) { }

TkHitPairsCacheCell::TkHitPairsCacheCell ( HitIter  beg,
HitIter  end 
) [inline]

Definition at line 17 of file TkHitPairsCacheCell.h.

00017 : theBeg(beg), theEnd(end) { } 


Member Function Documentation

static bool TkHitPairsCacheCell::lessPhiHitHit ( const TkHitPairsCachedHit a,
const TkHitPairsCachedHit b 
) [inline, static]

Definition at line 36 of file TkHitPairsCacheCell.h.

References ctfseeding::SeedingHit::phi().

Referenced by LayerHitMap::initCells().

00037                                      { return a->phi() < b->phi(); }

static bool TkHitPairsCacheCell::lessPhiHitVal ( const TkHitPairsCachedHit a,
const float &  bphi 
) [inline, static]

Definition at line 40 of file TkHitPairsCacheCell.h.

References ctfseeding::SeedingHit::phi().

Referenced by range_from().

00041       { return a.phi() < bphi; }

static bool TkHitPairsCacheCell::lessPhiValHit ( const float &  aphi,
const TkHitPairsCachedHit b 
) [inline, static]

Definition at line 38 of file TkHitPairsCacheCell.h.

References ctfseeding::SeedingHit::phi().

Referenced by LayerHitMap::initCells(), and range_upto().

00039       { return aphi < b.phi(); }

HitIterRange TkHitPairsCacheCell::range (  )  const [inline]

Definition at line 19 of file TkHitPairsCacheCell.h.

References theBeg, and theEnd.

00019 { return HitIterRange(theBeg, theEnd ); }

HitIterRange TkHitPairsCacheCell::range_from ( float  phiMin  )  const [inline]

Definition at line 21 of file TkHitPairsCacheCell.h.

References lessPhiHitVal(), theBeg, and theEnd.

00021                                               { 
00022     return HitIterRange(
00023         lower_bound(theBeg, theEnd, phiMin, lessPhiHitVal),
00024         theEnd); 
00025   }

HitIterRange TkHitPairsCacheCell::range_upto ( float  phiMax  )  const [inline]

Definition at line 27 of file TkHitPairsCacheCell.h.

References lessPhiValHit(), theBeg, and theEnd.

00027                                               { 
00028     return HitIterRange(
00029         theBeg, 
00030         upper_bound(theBeg, theEnd, phiMax, lessPhiValHit)) ; 
00031   }


Member Data Documentation

HitIter TkHitPairsCacheCell::theBeg [private]

Definition at line 45 of file TkHitPairsCacheCell.h.

Referenced by range(), range_from(), and range_upto().

HitIter TkHitPairsCacheCell::theEnd [private]

Definition at line 45 of file TkHitPairsCacheCell.h.

Referenced by range(), range_from(), and range_upto().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:33:29 2009 for CMSSW by  doxygen 1.5.4