#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 19 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 7 of file RecHitsSortedInPhi.cc.
References PV3DBase< T, PVType, FrameType >::basicVector(), runTheMatrix::const, l1ctLayer1_cff::dr, drphi, du, dv, PVValHelper::dz, h, hits(), trackingPlots::hp, mps_fire::i, isBarrel, lphi, Basic3DVector< T >::perp(), jetUpdater_cfi::sort, 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 112 of file RecHitsSortedInPhi.h.
References mps_fire::i, FastTimerService_cff::range, and mps_fire::result.
Referenced by hits().
RecHitsSortedInPhi::DoubleRange RecHitsSortedInPhi::doubleRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 52 of file RecHitsSortedInPhi.cc.
References Geom::fpi(), Geom::ftwoPi(), createfilelist::int, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, Geom::pi(), diffTwoXMLs::r1, diffTwoXMLs::r2, theHits, and unsafeRange().
Referenced by HitPairGeneratorFromLayerPair::doublets().
|
inline |
Definition at line 45 of file RecHitsSortedInPhi.h.
References theHits.
Referenced by HitPairGeneratorFromLayerPair::doublets(), HitQuadrupletGeneratorFromLayerPairForPhotonConversion::hitPairs(), and HitPairGeneratorFromLayerPairForPhotonConversion::hitPairs().
|
inline |
Definition at line 90 of file RecHitsSortedInPhi.h.
References mps_fire::i, x, y, and z.
Referenced by gv().
|
inline |
Definition at line 88 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 93 of file RecHitsSortedInPhi.cc.
References hits(), AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, 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 76 of file RecHitsSortedInPhi.cc.
References copyResult(), Geom::fpi(), Geom::ftwoPi(), AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, Geom::pi(), mps_fire::result, and unsafeRange().
|
inline |
Definition at line 76 of file RecHitsSortedInPhi.h.
References mps_fire::i, mps_fire::result, and theHits.
Referenced by hits(), and RecHitsSortedInPhi().
|
inline |
Definition at line 87 of file RecHitsSortedInPhi.h.
References mps_fire::i, and theHits.
Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), datamodel.Object::p4(), and ntupleDataFormat.Track::phiPull().
|
inline |
Definition at line 89 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 theHits.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and HitPairGeneratorFromLayerPair::doublets().
RecHitsSortedInPhi::Range RecHitsSortedInPhi::unsafeRange | ( | float | phiMin, |
float | phiMax | ||
) | const |
Definition at line 99 of file RecHitsSortedInPhi.cc.
References LaserClient_cfi::low, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, theHits, and pfDeepBoostedJetPreprocessParams_cfi::upper_bound.
Referenced by doubleRange(), and hits().
std::vector<float> RecHitsSortedInPhi::drphi |
Definition at line 103 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::du |
Definition at line 108 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::dv |
Definition at line 109 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), and RecHitsSortedInPhi().
bool RecHitsSortedInPhi::isBarrel |
Definition at line 98 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), gv(), MultiHitGeneratorFromChi2::hitSets(), RecHitsSortedInPhi(), and rv().
DetLayer const* RecHitsSortedInPhi::layer |
Definition at line 97 of file RecHitsSortedInPhi.h.
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
std::vector<float> RecHitsSortedInPhi::lphi |
Definition at line 110 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi().
std::vector<HitWithPhi> RecHitsSortedInPhi::theHits |
Definition at line 95 of file RecHitsSortedInPhi.h.
Referenced by all(), doubleRange(), HitPairGeneratorFromLayerPair::doublets(), empty(), hits(), phi(), RecHitsSortedInPhi(), size(), and unsafeRange().
GlobalPoint RecHitsSortedInPhi::theOrigin |
Definition at line 93 of file RecHitsSortedInPhi.h.
std::vector<float> RecHitsSortedInPhi::u |
Definition at line 106 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi(), and rv().
std::vector<float> RecHitsSortedInPhi::v |
Definition at line 107 of file RecHitsSortedInPhi.h.
Referenced by RecHitsSortedInPhi(), and rv().
std::vector<float> RecHitsSortedInPhi::x |
Definition at line 100 of file RecHitsSortedInPhi.h.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), HitPairGeneratorFromLayerPair::doublets(), gp(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::y |
Definition at line 101 of file RecHitsSortedInPhi.h.
Referenced by svgfig.Ellipse::__repr__(), HitPairGeneratorFromLayerPair::doublets(), gp(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), ntupleDataFormat._HitObject::r3D(), and RecHitsSortedInPhi().
std::vector<float> RecHitsSortedInPhi::z |
Definition at line 102 of file RecHitsSortedInPhi.h.
Referenced by HitPairGeneratorFromLayerPair::doublets(), gp(), gv(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r3D(), and RecHitsSortedInPhi().