23 theFrontDets(frontDets),
24 theBackDets(backDets),
25 front_radius_range_(
std::make_pair(0, 0)),
26 back_radius_range_(
std::make_pair(0, 0)) {
35 LogDebug(
"TkDetLayers") <<
"DEBUG INFO for Phase1PixelBlade";
36 LogDebug(
"TkDetLayers") <<
"Blade z, perp, innerRadius, outerR[disk, front, back]: " << this->
position().
z() <<
" , "
43 LogDebug(
"TkDetLayers") <<
"frontDet phi,z,r: " << (*it)->position().phi() <<
" , " << (*it)->position().z()
44 <<
" , " << (*it)->position().perp() <<
" , "
45 <<
" rmin: " << (*it)->surface().rSpan().first
46 <<
" rmax: " << (*it)->surface().rSpan().second << std::endl;
50 LogDebug(
"TkDetLayers") <<
"backDet phi,z,r: " << (*it)->position().phi() <<
" , " << (*it)->position().z() <<
" , "
51 << (*it)->position().perp() <<
" , "
52 <<
" rmin: " << (*it)->surface().rSpan().first
53 <<
" rmax: " << (*it)->surface().rSpan().second << std::endl;
64 edm::LogError(
"TkDetLayers") <<
"temporary dummy implementation of Phase1PixelBlade::compatible()!!";
65 return pair<bool, TrajectoryStateOnSurface>();
71 std::vector<DetGroup>&
result)
const {
78 vector<DetGroup> closestResult;
81 if (closestResult.empty()) {
82 vector<DetGroup> nextResult;
84 if (nextResult.empty())
102 vector<DetGroup> nextResult;
123 if (!innerPath.first)
126 GlobalPoint gInnerPoint(crossing.position(innerPath.second));
132 int innerIndex =
findBin2(gInnerPoint, 0);
140 if (!outerPath.first)
143 GlobalPoint gOuterPoint(crossing.position(outerPath.second));
148 int outerIndex =
findBin2(gOuterPoint, 1);
155 if (innerDist < outerDist) {
166 vector<DetGroup>&
result)
const {
184 bool checkClosest)
const {
189 int negStartIndex = closestIndex - 1;
190 int posStartIndex = closestIndex + 1;
193 if (gCrossingPos.
perp() < sBlade[closestIndex]->surface().position().perp()) {
194 posStartIndex = closestIndex;
196 negStartIndex = closestIndex;
201 for (
int idet = negStartIndex; idet >= 0; idet--) {
207 for (
int idet = posStartIndex; idet < static_cast<int>(sBlade.size()); idet++) {
219 const float relativeMargin = 1.01;
227 float localX = localCrossPoint.x();
244 float rDiff =
std::abs(
R - localDets.front()->surface().position().perp());
245 for (vector<const GeomDet*>::const_iterator
i = localDets.begin();
i != localDets.end();
i++) {
246 float testDiff =
std::abs(
R - (**i).surface().position().perp());
247 if (testDiff < rDiff) {
249 theBin =
i - localDets.begin();
259 float sDiff = (thispoint - localDets.front()->surface().position()).
mag();
261 for (vector<const GeomDet*>::const_iterator
i = localDets.begin();
i != localDets.end();
i++) {
262 float testDiff = (thispoint - (**i).surface().position()).
mag();
263 if (testDiff < sDiff) {
265 theBin =
i - localDets.begin();
273 return (diskSector[
index])->surface().position();
279 for (
auto i : current_dets)
280 posSum += (*i).surface().position().basicVector();
285 const Plane& tmpplane = current_dets.front()->surface();
294 if (planePosition.
x() * planeXAxis.
x() + planePosition.
y() * planeXAxis.
y() > 0.) {
301 if (planeZAxis.
z() * planePosition.
z() > 0.) {
317 for (
auto it : current_dets) {
319 for (
const auto&
i : corners) {
326 return std::make_pair(rmin, rmax);