#include <RecHitsSortedInPhi.h>
Classes | |
struct | HitLessPhi |
class | HitWithPhi |
Public Types | |
using | DoubleRange = std::array< int, 4 > |
typedef BaseTrackerRecHit const * | Hit |
typedef std::vector < HitWithPhi >::const_iterator | HitIter |
typedef std::pair< HitIter, HitIter > | Range |
Public Member Functions | |
Range | all () const |
DoubleRange | doubleRange (float phiMin, float phiMax) const |
bool | empty () const |
GlobalPoint | gp (int i) const |
float | gv (int i) 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 |
float | phi (int i) const |
RecHitsSortedInPhi (const std::vector< Hit > &hits, GlobalPoint const &origin, DetLayer const *il) | |
float | rv (int i) const |
std::size_t | size () const |
Range | unsafeRange (float phiMin, float phiMax) const |
Static Public Member Functions | |
static void | copyResult (const Range &range, std::vector< Hit > &result) |
Public Attributes | |
std::vector< float > | drphi |
std::vector< float > | du |
std::vector< float > | dv |
bool | isBarrel |
DetLayer const * | layer |
std::vector< float > | lphi |
std::vector< HitWithPhi > | theHits |
GlobalPoint | theOrigin |
std::vector< float > | u |
std::vector< float > | v |
std::vector< float > | x |
std::vector< float > | y |
std::vector< float > | z |
A RecHit container sorted in phi. Provides fast access for hits in a given phi window using binary search.
Definition at line 15 of file RecHitsSortedInPhi.h.
using RecHitsSortedInPhi::DoubleRange = std::array<int,4> |
Definition at line 39 of file RecHitsSortedInPhi.h.
typedef BaseTrackerRecHit const* RecHitsSortedInPhi::Hit |
Definition at line 18 of file RecHitsSortedInPhi.h.
typedef std::vector<HitWithPhi>::const_iterator RecHitsSortedInPhi::HitIter |
Definition at line 36 of file RecHitsSortedInPhi.h.
typedef std::pair<HitIter,HitIter> RecHitsSortedInPhi::Range |
Definition at line 37 of file RecHitsSortedInPhi.h.
RecHitsSortedInPhi::RecHitsSortedInPhi | ( | const std::vector< Hit > & | hits, |
GlobalPoint const & | origin, | ||
DetLayer const * | il | ||
) |
Definition at line 9 of file RecHitsSortedInPhi.cc.
References PV3DBase< T, PVType, FrameType >::basicVector(), drphi, du, dv, h, i, isBarrel, lphi, Basic3DVector< T >::perp(), theHits, u, v, x, y, and z.
|
inline |
Definition at line 82 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), MultiHitGeneratorFromChi2::hitSets(), and LayerHitMapCache::operator()().
|
inlinestatic |
Definition at line 113 of file RecHitsSortedInPhi.h.
References i.
Referenced by hits().
RecHitsSortedInPhi::DoubleRange RecHitsSortedInPhi::doubleRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 51 of file RecHitsSortedInPhi.cc.
References Geom::fpi(), Geom::ftwoPi(), Geom::pi(), diffTwoXMLs::r1, diffTwoXMLs::r2, theHits, and unsafeRange().
Referenced by HitPairGeneratorFromLayerPair::doublets().
|
inline |
Definition at line 43 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitPairGeneratorFromLayerPair::doublets(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), and HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs().
|
inline |
|
inline |
Definition at line 88 of file RecHitsSortedInPhi.h.
References gp(), i, isBarrel, PV3DBase< T, PVType, FrameType >::perp(), and z.
std::vector< RecHitsSortedInPhi::Hit > RecHitsSortedInPhi::hits | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 98 of file RecHitsSortedInPhi.cc.
References hits(), and query::result.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs(), PixelTripletNoTipGenerator::hitTriplets(), and PixelTripletLowPtGenerator::hitTriplets().
void RecHitsSortedInPhi::hits | ( | float | phiMin, |
float | phiMax, | ||
std::vector< Hit > & | result | ||
) | const |
Definition at line 77 of file RecHitsSortedInPhi.cc.
References copyResult(), Geom::fpi(), Geom::ftwoPi(), Geom::pi(), and unsafeRange().
|
inline |
Definition at line 75 of file RecHitsSortedInPhi.h.
References i, query::result, and theHits.
Referenced by hits().
|
inline |
|
inline |
Definition at line 89 of file RecHitsSortedInPhi.h.
References i, isBarrel, u, and v.
Referenced by HitPairGeneratorFromLayerPair::doublets().
|
inline |
Definition at line 44 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitPairGeneratorFromLayerPair::doublets().
RecHitsSortedInPhi::Range RecHitsSortedInPhi::unsafeRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 106 of file RecHitsSortedInPhi.cc.
References theHits.
Referenced by doubleRange(), and hits().
std::vector<float> RecHitsSortedInPhi::drphi |
Definition at line 104 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::du |
Definition at line 109 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::dv |
Definition at line 110 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
bool RecHitsSortedInPhi::isBarrel |
Definition at line 99 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), gv(), RecHitsSortedInPhi(), and rv().
DetLayer const* RecHitsSortedInPhi::layer |
Definition at line 98 of file RecHitsSortedInPhi.h.
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
std::vector<float> RecHitsSortedInPhi::lphi |
Definition at line 111 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi().
std::vector<HitWithPhi> RecHitsSortedInPhi::theHits |
Definition at line 96 of file RecHitsSortedInPhi.h.
Referenced by all(), doubleRange(), HitPairGeneratorFromLayerPair::doublets(), empty(), hits(), phi(), RecHitsSortedInPhi(), size(), and unsafeRange().
|
mutable |
Definition at line 94 of file RecHitsSortedInPhi.h.
Referenced by LayerHitMapCache::operator()().
std::vector<float> RecHitsSortedInPhi::u |
Definition at line 107 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi(), and rv().
std::vector<float> RecHitsSortedInPhi::v |
Definition at line 108 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi(), and rv().
std::vector<float> RecHitsSortedInPhi::x |
Definition at line 101 of file RecHitsSortedInPhi.h.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), HitPairGeneratorFromLayerPair::doublets(), gp(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::y |
Definition at line 102 of file RecHitsSortedInPhi.h.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), HitPairGeneratorFromLayerPair::doublets(), gp(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::z |
Definition at line 103 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), gp(), gv(), geometryXMLparser.Alignable::pos(), and RecHitsSortedInPhi().