30 LogDebug(
"TkDetLayers") <<
"DEBUG INFO for PixelBlade";
31 LogDebug(
"TkDetLayers") <<
"Blade z, perp, innerRadius, outerR: " << this->
position().
z() <<
" , "
36 LogDebug(
"TkDetLayers") <<
"frontDet phi,z,r: " << (*it)->position().phi() <<
" , " << (*it)->position().z()
37 <<
" , " << (*it)->position().perp();
42 LogDebug(
"TkDetLayers") <<
"backDet phi,z,r: " << (*it)->position().phi() <<
" , " << (*it)->position().z() <<
" , "
43 << (*it)->position().perp();
55 edm::LogError(
"TkDetLayers") <<
"temporary dummy implementation of PixelBlade::compatible()!!";
56 return pair<bool, TrajectoryStateOnSurface>();
62 std::vector<DetGroup>&
result)
const {
68 vector<DetGroup> closestResult;
71 if (closestResult.empty()) {
72 vector<DetGroup> nextResult;
74 if (nextResult.empty())
88 vector<DetGroup> nextResult;
106 if (!innerPath.first)
109 GlobalPoint gInnerPoint(crossing.position(innerPath.second));
113 int innerIndex =
findBin(gInnerPoint.perp(), 0);
118 if (!outerPath.first)
121 GlobalPoint gOuterPoint(crossing.position(outerPath.second));
125 int outerIndex =
findBin(gOuterPoint.perp(), 1);
129 if (innerDist < outerDist) {
140 vector<DetGroup>&
result)
const {
157 bool checkClosest)
const {
163 int negStartIndex = closestIndex - 1;
164 int posStartIndex = closestIndex + 1;
167 if (gCrossingPos.
perp() < sBlade[closestIndex]->surface().position().perp()) {
168 posStartIndex = closestIndex;
170 negStartIndex = closestIndex;
175 for (
int idet = negStartIndex; idet >= 0; idet--) {
181 for (
int idet = posStartIndex; idet < static_cast<int>(sBlade.size()); idet++) {
193 const float relativeMargin = 1.01;
201 float localX = localCrossPoint.x();
218 float rDiff =
std::abs(
R - localDets.front()->surface().position().perp());
220 for (vector<const GeomDet*>::const_iterator
i = localDets.begin();
i != localDets.end();
i++) {
221 float testDiff =
std::abs(
R - (**i).surface().position().perp());
222 if (testDiff < rDiff) {
224 theBin =
i - localDets.begin();
232 return (diskSector[
index])->surface().position();