#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 17 of file RecHitsSortedInPhi.h.
using RecHitsSortedInPhi::DoubleRange = std::array<int,4> |
Definition at line 41 of file RecHitsSortedInPhi.h.
typedef BaseTrackerRecHit const* RecHitsSortedInPhi::Hit |
Definition at line 20 of file RecHitsSortedInPhi.h.
typedef std::vector<HitWithPhi>::const_iterator RecHitsSortedInPhi::HitIter |
Definition at line 38 of file RecHitsSortedInPhi.h.
typedef std::pair<HitIter,HitIter> RecHitsSortedInPhi::Range |
Definition at line 39 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(), runTauDisplay::dr, drphi, du, dv, PVValHelper::dz, h, AnalysisDataFormats_SUSYBSMObjects::hp, mps_fire::i, isBarrel, create_public_lumi_plots::loc, lphi, theHits, u, v, x, y, and z.
|
inline |
Definition at line 84 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), MultiHitGeneratorFromChi2::hitSets(), and LayerHitMapCache::operator()().
|
inlinestatic |
Definition at line 115 of file RecHitsSortedInPhi.h.
References mps_fire::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(), createfilelist::int, Geom::pi(), diffTwoXMLs::r1, diffTwoXMLs::r2, theHits, and unsafeRange().
Referenced by HitPairGeneratorFromLayerPair::doublets(), and size().
|
inline |
Definition at line 45 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitPairGeneratorFromLayerPair::doublets(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), and HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs().
|
inline |
|
inline |
Definition at line 90 of file RecHitsSortedInPhi.h.
References gp(), mps_fire::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 mps_fire::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 77 of file RecHitsSortedInPhi.h.
References mps_fire::i, mps_fire::result, and theHits.
Referenced by hits(), and size().
|
inline |
Definition at line 89 of file RecHitsSortedInPhi.h.
References mps_fire::i, and theHits.
Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().
|
inline |
Definition at line 91 of file RecHitsSortedInPhi.h.
References mps_fire::i, isBarrel, u, and v.
Referenced by HitPairGeneratorFromLayerPair::doublets().
|
inline |
Definition at line 46 of file RecHitsSortedInPhi.h.
References doubleRange(), hits(), AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, mps_fire::result, theHits, and unsafeRange().
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and HitPairGeneratorFromLayerPair::doublets().
RecHitsSortedInPhi::Range RecHitsSortedInPhi::unsafeRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 106 of file RecHitsSortedInPhi.cc.
References theHits.
Referenced by doubleRange(), hits(), and size().
std::vector<float> RecHitsSortedInPhi::drphi |
Definition at line 106 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::du |
Definition at line 111 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::dv |
Definition at line 112 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), RecHitsSortedInPhi(), and HitPairGeneratorFromLayerPair::~HitPairGeneratorFromLayerPair().
bool RecHitsSortedInPhi::isBarrel |
Definition at line 101 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), gv(), MultiHitGeneratorFromChi2::hitSets(), RecHitsSortedInPhi(), and rv().
DetLayer const* RecHitsSortedInPhi::layer |
Definition at line 100 of file RecHitsSortedInPhi.h.
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
std::vector<float> RecHitsSortedInPhi::lphi |
Definition at line 113 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi().
std::vector<HitWithPhi> RecHitsSortedInPhi::theHits |
Definition at line 98 of file RecHitsSortedInPhi.h.
Referenced by all(), doubleRange(), HitPairGeneratorFromLayerPair::doublets(), empty(), hits(), phi(), RecHitsSortedInPhi(), size(), and unsafeRange().
GlobalPoint RecHitsSortedInPhi::theOrigin |
Definition at line 96 of file RecHitsSortedInPhi.h.
std::vector<float> RecHitsSortedInPhi::u |
Definition at line 109 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi(), rv(), and HitPairGeneratorFromLayerPair::~HitPairGeneratorFromLayerPair().
std::vector<float> RecHitsSortedInPhi::v |
Definition at line 110 of file RecHitsSortedInPhi.h.
Referenced by MultiHitGeneratorFromChi2::hitSets(), RecHitsSortedInPhi(), rv(), and HitPairGeneratorFromLayerPair::~HitPairGeneratorFromLayerPair().
std::vector<float> RecHitsSortedInPhi::x |
Definition at line 103 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(), HitDoublets::gp(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), HitDoublets::r(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::y |
Definition at line 104 of file RecHitsSortedInPhi.h.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), HitPairGeneratorFromLayerPair::doublets(), gp(), HitDoublets::gp(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), HitDoublets::r(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::z |
Definition at line 105 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), gp(), HitDoublets::gp(), gv(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r3D(), and RecHitsSortedInPhi().