#include <RecHitsSortedInPhi.h>
Classes | |
struct | HitLessPhi |
class | HitWithPhi |
Public Types | |
typedef TransientTrackingRecHit::ConstRecHitPointer | Hit |
typedef std::vector < HitWithPhi >::const_iterator | HitIter |
typedef std::pair< HitIter, HitIter > | Range |
Public Member Functions | |
Range | all () const |
bool | empty () const |
std::vector< Hit > | hits () const |
void | hits (float phiMin, float phiMax, std::vector< Hit > &result) const |
std::vector< Hit > | hits (float phiMin, float phiMax) const |
RecHitsSortedInPhi (const std::vector< Hit > &hits) | |
Range | unsafeRange (float phiMin, float phiMax) const |
Static Private Member Functions | |
static void | copyResult (const Range &range, std::vector< Hit > &result) |
Private Attributes | |
std::vector< HitWithPhi > | theHits |
A RecHit container sorted in phi. Provides fast access for hits in a given phi window using binary search.
Definition at line 13 of file RecHitsSortedInPhi.h.
Definition at line 16 of file RecHitsSortedInPhi.h.
typedef std::vector<HitWithPhi>::const_iterator RecHitsSortedInPhi::HitIter |
Definition at line 33 of file RecHitsSortedInPhi.h.
typedef std::pair<HitIter,HitIter> RecHitsSortedInPhi::Range |
Definition at line 34 of file RecHitsSortedInPhi.h.
RecHitsSortedInPhi::RecHitsSortedInPhi | ( | const std::vector< Hit > & | hits | ) |
Range RecHitsSortedInPhi::all | ( | ) | const [inline] |
Definition at line 72 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), HitPairGeneratorFromLayerPair::hitPairs(), and PixelTripletLargeTipGenerator::hitTriplets().
bool RecHitsSortedInPhi::empty | ( | void | ) | const [inline] |
Definition at line 38 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), HitPairGeneratorFromLayerPair::hitPairs(), and HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs().
{ return theHits.empty(); }
std::vector<Hit> RecHitsSortedInPhi::hits | ( | ) | const [inline] |
vector< RecHitsSortedInPhi::Hit > RecHitsSortedInPhi::hits | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 35 of file RecHitsSortedInPhi.cc.
References query::result.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), HitPairGeneratorFromLayerPair::hitPairs(), HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs(), PixelTripletNoTipGenerator::hitTriplets(), and PixelTripletLowPtGenerator::hitTriplets().
void RecHitsSortedInPhi::hits | ( | float | phiMin, |
float | phiMax, | ||
std::vector< Hit > & | result | ||
) | const |
RecHitsSortedInPhi::Range RecHitsSortedInPhi::unsafeRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
std::vector<HitWithPhi> RecHitsSortedInPhi::theHits [private] |
Definition at line 78 of file RecHitsSortedInPhi.h.