33 : theFrontDets(innerDets.begin(), innerDets.end()), theBackDets(outerDets.begin(), outerDets.end()) {
46 LogDebug(
"TkDetLayers") <<
"DEBUG INFO for CompositeTECWedge" 48 <<
"TECWedge z, perp,innerRadius,outerR: " << this->
position().
z() <<
" , " 53 LogDebug(
"TkDetLayers") <<
"frontDet phi,z,r: " << (*it)->surface().position().phi() <<
" , " 54 << (*it)->surface().position().z() <<
" , " << (*it)->surface().position().perp();
58 LogDebug(
"TkDetLayers") <<
"backDet phi,z,r: " << (*it)->surface().phi() <<
" , " << (*it)->surface().position().z()
59 <<
" , " << (*it)->surface().position().perp();
67 throw DetLayerException(
"CompositeTECWedge doesn't have GeometricSearchDet components");
73 edm::LogError(
"TkDetLayers") <<
"temporary dummy implementation of CompositeTECWedge::compatible()!!";
74 return pair<bool, TrajectoryStateOnSurface>();
80 std::vector<DetGroup>&
result)
const {
85 std::vector<DetGroup> closestResult;
88 LogDebug(
"TkDetLayers") <<
"in CompositeTECWedge::groupedCompatibleDets,closestResult.size(): " 89 << closestResult.size();
91 if (closestResult.empty())
99 std::vector<DetGroup> nextResult;
119 if (!frontPath.first)
129 LogDebug(
"TkDetLayers") <<
"in TECWedge,front crossing r,z,phi: (" << gFrontPoint.perp() <<
"," << gFrontPoint.z()
130 <<
"," << gFrontPoint.phi() <<
")";
132 LogDebug(
"TkDetLayers") <<
"in TECWedge,back crossing r,z,phi: (" << gBackPoint.perp() <<
"," << gBackPoint.z() <<
"," 133 << gBackPoint.phi() <<
")" << endl;
154 if (frontDist < backDist) {
165 vector<DetGroup>&
result)
const {
168 LogDebug(
"TkDetLayers") <<
"in CompositeTECWedge,adding GeomDet at r,z,phi: (" 182 bool checkClosest)
const {
188 int negStartIndex = closestIndex - 1;
189 int posStartIndex = closestIndex + 1;
193 posStartIndex = closestIndex;
195 negStartIndex = closestIndex;
200 for (
int idet = negStartIndex; idet >= 0; idet--) {
207 for (
int idet = posStartIndex; idet < static_cast<int>(sWedge.size()); idet++) {
220 auto closeDist =
std::abs((myDets.front()->toLocal(startPos)).
x());
221 for (
unsigned int i = 1;
i < myDets.size();
i++) {
223 if (dist < closeDist) {
virtual const Surface::PositionType & position() const
Returns position of the surface.
std::vector< const GeomDet * > theDets
void groupedCompatibleDetsV(const TrajectoryStateOnSurface &startingState, const Propagator &prop, const MeasurementEstimator &est, std::vector< DetGroup > &result) const override __attribute__((hot))
virtual PropagationDirection propagationDirection() const final
GeometricSearchDet::DetWithState DetWithState
SubLayerCrossings computeCrossings(const TrajectoryStateOnSurface &tsos, PropagationDirection propDir) const __attribute__((hot))
Log< level::Error, false > LogError
~CompositeTECWedge() override __attribute__((cold))
bool overlapInPhi(float phi, const GeomDet &det, float phiWindow)
ReferenceCountingPointer< BoundDiskSector > theDiskSector
std::vector< const GeomDet * > theFrontDets
float computeWindowSize(const GeomDet *det, const TrajectoryStateOnSurface &tsos, const MeasurementEstimator &est)
const std::vector< const GeomDet * > & subWedge(int ind) const
std::pair< bool, double > pathLength(const Plane &plane) override
GlobalPoint globalPosition() const
std::vector< const GeomDet * > theBackDets
const GlobalPoint & position() const
int closestDetIndex() const
std::pair< bool, TrajectoryStateOnSurface > compatible(const TrajectoryStateOnSurface &ts, const Propagator &, const MeasurementEstimator &) const override __attribute__((cold))
Abs< T >::type abs(const T &t)
static int endcapSide(const TrajectoryStateOnSurface &startingState, const Propagator &prop)
int findClosestDet(const GlobalPoint &startPos, int sectorId) const
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
LocalVector toLocal(const reco::Track::Vector &v, const Surface &s)
ReferenceCountingPointer< BoundDiskSector > theBackSector
CompositeTECWedge(std::vector< const GeomDet *> &innerDets, std::vector< const GeomDet *> &outerDets) __attribute__((cold))
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
const std::vector< const GeometricSearchDet * > & components() const override __attribute__((cold))
Returns basic components, if any.
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))
double transverseCurvature() const
GlobalVector globalMomentum() const
void add(std::map< std::string, TH1 *> &h, TH1 *hist)
bool addClosest(const TrajectoryStateOnSurface &tsos, const Propagator &prop, const MeasurementEstimator &est, const SubLayerCrossing &crossing, std::vector< DetGroup > &result) const __attribute__((hot))
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
ReferenceCountingPointer< BoundDiskSector > theFrontSector