23 TIDRing::TIDRing(std::vector<const GeomDet*>& innerDets, std::vector<const GeomDet*>& outerDets)
25 theFrontDets(innerDets.
begin(), innerDets.
end()),
26 theBackDets(outerDets.
begin(), outerDets.
end()) {
42 LogDebug(
"TkDetLayers") <<
"DEBUG INFO for TIDRing";
44 LogDebug(
"TkDetLayers") <<
"frontDet phi,z,r: " << (*it)->surface().position().phi() <<
" , "
45 << (*it)->surface().position().z() <<
" , " << (*it)->surface().position().perp();
49 LogDebug(
"TkDetLayers") <<
"backDet phi,z,r: " << (*it)->surface().position().phi() <<
" , "
50 << (*it)->surface().position().z() <<
" , " << (*it)->surface().position().perp();
63 edm::LogError(
"TkDetLayers") <<
"temporary dummy implementation of TIDRing::compatible()!!";
64 return pair<bool, TrajectoryStateOnSurface>();
70 std::vector<DetGroup>&
result)
const {
76 std::vector<DetGroup> closestResult;
78 if (closestResult.empty())
85 vector<DetGroup> nextResult;
104 if (!frontPath.first)
124 if (frontDist < backDist) {
135 vector<DetGroup>&
result)
const {
147 bool checkClosest)
const {
153 int negStartIndex = closestIndex - 1;
154 int posStartIndex = closestIndex + 1;
158 posStartIndex = closestIndex;
160 negStartIndex = closestIndex;
167 int half = sLayer.size() / 2;
168 for (
int idet = negStartIndex; idet >= negStartIndex - half; idet--) {
172 if (!
Adder::add(neighborDet, tsos, prop, est, result))
176 for (
int idet = posStartIndex; idet < posStartIndex + half; idet++) {
180 if (!
Adder::add(neighborDet, tsos, prop, est, result))
PeriodicBinFinderInPhi< float > BinFinderType
void searchNeighbors(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, float window, std::vector< DetGroup > &result, bool checkClosest) const __attribute__((hot))
std::vector< const GeomDet * > theDets
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
int binIndex(T phi) const override
returns an index in the valid range for the bin that contains phi
int closestDetIndex() const
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &) const override
GlobalPoint globalPosition() const
virtual PropagationDirection propagationDirection() const final
BinFinderType theFrontBinFinder
Log< level::Error, false > LogError
bool overlapInPhi(float phi, const GeomDet &det, float phiWindow)
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const __attribute__((hot))
const GlobalPoint & position() const
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est)
std::pair< bool, double > pathLength(const Plane &plane) override
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::vector< const GeomDet * > theFrontDets
int subLayerIndex() const
Abs< T >::type abs(const T &t)
static int endcapSide(const TrajectoryStateOnSurface &startingState, const Propagator &prop)
ReferenceCountingPointer< BoundDisk > theBackDisk
bool phiLess(float phi1, float phi2)
const SubLayerCrossing & other() const
static bool add(const GeometricSearchDet &det, const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) __attribute__((hot))
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
ReferenceCountingPointer< BoundDisk > theFrontDisk
ReferenceCountingPointer< BoundDisk > theDisk
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
BinFinderType theBackBinFinder
const SubLayerCrossing & closest() const
GlobalVector globalMomentum() const
static void orderAndMergeTwoLevels(std::vector< DetGroup > &&one, std::vector< DetGroup > &&two, std::vector< DetGroup > &result, int firstIndex, int firstCrossed)
const std::vector< const GeomDet * > & subLayer(int ind) const
PositionType position(double s) const override
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
TIDRing(std::vector< const GeomDet * > &innerDets, std::vector< const GeomDet * > &outerDets)
std::vector< const GeomDet * > theBackDets
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
double transverseCurvature() const