33 edm::LogError(
"MTDDetLayers") <<
"temporary dummy implementation of MTDDetSector::components()!!";
34 static const vector<const GeometricSearchDet*>
result;
44 LogTrace(
"MTDDetLayers") <<
"MTDDetSector::compatible, sector: \n"
53 LogTrace(
"MTDDetLayers") <<
" DEST: not valid";
63 LogTrace(
"MTDDetLayers") <<
"MTDDetSector::compatibleDets, sector: \n"
64 << (*this) <<
"\n TS at Z,R,phi: " <<
std::fixed << std::setw(14)
69 vector<DetWithState>
result;
72 pair<bool, TrajectoryStateOnSurface> compat =
compatible(startingState, prop, est);
74 LogTrace(
"MTDDetLayers") <<
" MTDDetSector::compatibleDets: not compatible"
75 <<
" (should not have been selected!)";
82 LogTrace(
"MTDDetLayers") <<
"Starting position: " << startPos;
88 std::vector<std::pair<double, size_t> > tmpDets;
92 double dist2 = (startPos -
theDets[idet]->position()).
mag2();
93 tmpDets.emplace_back(dist2, idet);
94 if (dist2 < dist2Min) {
98 LogTrace(
"MTDDetLayers") <<
"MTDDetSector::compatibleDets " <<
std::fixed << std::setw(8) << idet <<
" "
99 <<
theDets[idet]->geographicalId().rawId() <<
" dist = " << std::setw(10)
100 <<
std::sqrt(dist2) <<
" Min idet/dist = " << std::setw(8) << idetMin <<
" "
101 << std::setw(10) <<
std::sqrt(dist2Min) <<
" " <<
theDets[idet]->position();
109 tmpDets.erase(tmpDets.begin() + endPos, tmpDets.end());
110 tmpDets.erase(tmpDets.begin(), tmpDets.begin() + iniPos);
111 std::sort(tmpDets.begin(), tmpDets.end());
113 for (
const auto& thisDet : tmpDets) {
114 if (
add(thisDet.second,
result, tsos, prop, est)) {
115 LogTrace(
"MTDDetLayers") <<
"MTDDetSector::compatibleDets found compatible det " << thisDet.second
116 <<
" detId = " <<
theDets[thisDet.second]->geographicalId().rawId() <<
" at "
117 <<
theDets[thisDet.second]->position() <<
" dist = " <<
std::sqrt(thisDet.first);
124 LogTrace(
"MTDDetLayers") <<
"MTDDetSector::compatibleDets, closest not compatible!";
126 LogTrace(
"MTDDetLayers") <<
"MTDDetSector::compatibleDets, found " <<
result.size() <<
" compatible dets";
136 std::vector<DetWithState>&)
const {
137 edm::LogError(
"MTDDetLayers") <<
"At the moment not a real implementation";
145 edm::LogInfo(
"MTDDetLayers") <<
"dummy implementation of MTDDetSector::groupedCompatibleDets()";
151 vector<DetWithState>&
result,
165 os <<
" MTDDetSector at " <<
std::fixed <<
id.specificSurface().position() << std::endl
166 <<
" L/W/T : " << std::setw(14) <<
id.specificSurface().bounds().length() <<
" / " << std::setw(14)
167 <<
id.specificSurface().bounds().width() <<
" / " << std::setw(14) <<
id.specificSurface().bounds().thickness()
169 <<
" rmin : " << std::setw(14) <<
id.specificSurface().innerRadius() << std::endl
170 <<
" rmax : " << std::setw(14) <<
id.specificSurface().outerRadius() << std::endl
171 <<
" phi ref : " << std::setw(14) <<
id.specificSurface().position().phi() << std::endl
172 <<
" phi w/2 : " << std::setw(14) <<
id.specificSurface().phiHalfExtension() << std::endl;