#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 (float phiMin, float phiMax) const |
void | hits (float phiMin, float phiMax, std::vector< Hit > &result) const |
std::vector< Hit > | hits () 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 | ) |
Definition at line 6 of file RecHitsSortedInPhi.cc.
References i, and python.multivaluedict::sort().
|
inline |
Definition at line 72 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitPairGeneratorFromLayerPair::hitPairs(), and HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs().
|
inlinestaticprivate |
Definition at line 80 of file RecHitsSortedInPhi.h.
References i.
|
inline |
Definition at line 38 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitPairGeneratorFromLayerPair::hitPairs(), HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs(), and HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs().
vector< RecHitsSortedInPhi::Hit > RecHitsSortedInPhi::hits | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 35 of file RecHitsSortedInPhi.cc.
References query::result.
Referenced by HitPairGeneratorFromLayerPair::hitPairs(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs(), PixelTripletNoTipGenerator::hitTriplets(), PixelTripletLargeTipGenerator::hitTriplets(), and PixelTripletLowPtGenerator::hitTriplets().
void RecHitsSortedInPhi::hits | ( | float | phiMin, |
float | phiMax, | ||
std::vector< Hit > & | result | ||
) | const |
Definition at line 14 of file RecHitsSortedInPhi.cc.
References Geom::fpi(), Geom::ftwoPi(), and Geom::pi().
|
inline |
Definition at line 65 of file RecHitsSortedInPhi.h.
References i, query::result, and theHits.
RecHitsSortedInPhi::Range RecHitsSortedInPhi::unsafeRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 43 of file RecHitsSortedInPhi.cc.
|
private |
Definition at line 78 of file RecHitsSortedInPhi.h.