129 double waferSize =
hgc.waferSize(
false);
131 const bool v17OrLess =
hgc.v17OrLess();
134 edm::LogVerbatim(
"HGCalSim") <<
"HGCalTestGuardRing: Wafer Szie " << waferSize <<
" v17OrLess " << v17OrLess;
138 for (std::map<HGCSiliconDetId, int>::const_iterator itr =
waferID_.begin(); itr !=
waferID_.end(); ++itr) {
145 int partial = ((itr->second) % 100);
146 int orient = (((itr->second) / 100) % 100);
147 int type =
id.type();
149 for (
int u = 0; u < 2 *
nCells; ++u) {
157 std::pair<double, double>
xy = wafer.cellUV2XY1(u,
v, placeIndex,
type);
158 std::vector<std::pair<double, double> > wxy1 =
161 std::ostringstream st1;
162 for (
unsigned int k1 = 0; k1 < wxy1.size(); ++k1)
163 st1 <<
" (" << wxy1[k1].
first <<
", " << wxy1[k1].
second <<
")";
165 <<
"First " << hid <<
" Type:Partial:Orient:Place " <<
type <<
":" << partial <<
":" <<
orient 166 <<
":" << placeIndex <<
" Boundary with " << wxy1.size() <<
" points: " << st1.str() <<
" check " 167 << check1 <<
" for (" <<
xy.first <<
", " <<
xy.second <<
")";
169 std::vector<std::pair<double, double> > wxy2 =
172 std::ostringstream st2;
173 for (
unsigned int k1 = 0; k1 < wxy2.size(); ++k1)
174 st2 <<
" (" << wxy2[k1].
first <<
", " << wxy2[k1].
second <<
")";
176 <<
" points: " << st2.str() <<
" check " << check2 <<
" for (" <<
xy.first
177 <<
", " <<
xy.second <<
")";
Log< level::Info, true > LogVerbatim
auto const good
min quality of good
static constexpr int32_t waferFrontBack(int32_t index)
int32_t waferU(const int32_t index)
std::map< HGCSiliconDetId, int > waferID_
const double guardRingOffset_
const edm::ESGetToken< HGCalGeometry, IdealGeometryRecord > geomToken_
static std::vector< std::pair< double, double > > waferXY(const int &part, const int &orient, const int &zside, const double &waferSize, const double &offset, const double &xpos, const double &ypos, const bool &v17)
U second(std::pair< T, U > const &p)
const std::string nameSense_
static bool insidePolygon(double x, double y, const std::vector< std::pair< double, double > > &xyv)
ALPAKA_FN_ACC ALPAKA_FN_INLINE void uint32_t const uint32_t CACellT< TrackerTraits > uint32_t * nCells
int32_t waferV(const int32_t index)