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--) {
176 for (
int idet = posStartIndex; idet < posStartIndex + half; idet++) {
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
GeometricSearchDet::DetWithState DetWithState
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &, const Propagator &, const MeasurementEstimator &) const override
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))
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est)
std::pair< bool, double > pathLength(const Plane &plane) override
GlobalPoint globalPosition() const
std::vector< const GeomDet * > theFrontDets
const GlobalPoint & position() const
int closestDetIndex() const
TIDRing(std::vector< const GeomDet *> &innerDets, std::vector< const GeomDet *> &outerDets)
Abs< T >::type abs(const T &t)
static int endcapSide(const TrajectoryStateOnSurface &startingState, const Propagator &prop)
ReferenceCountingPointer< BoundDisk > theBackDisk
def window(xmin, xmax, ymin, ymax, x=0, y=0, width=100, height=100, xlogbase=None, ylogbase=None, minusInfinity=-1000, flipx=False, flipy=True)
const SubLayerCrossing & closest() const
int subLayerIndex() const
bool phiLess(float phi1, float phi2)
static bool add(const GeometricSearchDet &det, const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) __attribute__((hot))
const SubLayerCrossing & other() const
double transverseCurvature() const
GlobalVector globalMomentum() const
ReferenceCountingPointer< BoundDisk > theFrontDisk
ReferenceCountingPointer< BoundDisk > theDisk
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
BinFinderType theBackBinFinder
void add(std::map< std::string, TH1 *> &h, TH1 *hist)
const std::vector< const GeomDet * > & subLayer(int ind) const
static void orderAndMergeTwoLevels(std::vector< DetGroup > &&one, std::vector< DetGroup > &&two, std::vector< DetGroup > &result, int firstIndex, int firstCrossed)
PositionType position(double s) const override
std::pair< const GeomDet *, TrajectoryStateOnSurface > DetWithState
std::vector< const GeomDet * > theBackDets
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))