11 modeUV_(hgcons_.geomMode()),
12 waferSize_(hgcons_.waferSize(
false)),
13 sensorSizeOffset_(hgcons_.getParameter()->sensorSizeOffset_),
14 guardRingOffset_(hgcons_.getParameter()->guardRingOffset_) {
42 <<
" wafer " <<
waferU <<
":" <<
waferV <<
" partial type " << partial <<
":" 44 <<
" check " <<
check;
49 std::vector<std::pair<double, double> > wxy =
53 std::ostringstream st1;
54 st1 <<
"HGCGuardRing:: Point " <<
point <<
" Partial/orient/zside/size/offset " << partial <<
":" <<
orient 56 for (
unsigned int k = 0;
k < wxy.size(); ++
k)
62 std::vector<std::pair<double, double> > wxy =
66 std::ostringstream st1;
67 st1 <<
"HGCGuardRing:: Point " <<
point <<
" Partial/frontback/orient/zside/placeemnt/size/offset " << partial
69 <<
" with " << wxy.size() <<
" points:";
70 for (
unsigned int k = 0;
k < wxy.size(); ++
k)
83 for (
unsigned i1 = 1;
i1 <= xyv.size();
i1++) {
84 unsigned i2 = (
i1 % xyv.size());
91 if ((
x1 ==
x2) || (
x <= xinter))
Log< level::Info, true > LogVerbatim
static int32_t cellPlacementIndex(int32_t iz, int32_t frontBack, int32_t orient)
const double sensorSizeOffset_
const HGCalParameters * getParameter() const
int32_t waferU(const int32_t index)
static int getPartial(int index, const HGCalParameters::waferInfo_map &wafers)
static std::vector< std::pair< double, double > > waferXY(int part, int orient, int zside, double waferSize, double offset, double xpos, double ypos)
static int getOrient(int index, const HGCalParameters::waferInfo_map &wafers)
U second(std::pair< T, U > const &p)
static constexpr int32_t WaferFull
const double guardRingOffset_
bool exclude(G4ThreeVector &point, int zside, int frontBack, int layer, int waferU, int waferV)
Abs< T >::type abs(const T &t)
int32_t waferIndex(int32_t layer, int32_t waferU, int32_t waferV, bool old=false)
const HGCalDDDConstants & hgcons_
static bool insidePolygon(double x, double y, const std::vector< std::pair< double, double > > &xyv)
HGCGuardRing(const HGCalDDDConstants &hgc)
static std::atomic< unsigned int > counter
const HGCalGeometryMode::GeometryMode modeUV_
int32_t waferV(const int32_t index)
static constexpr double sqrt3_
waferInfo_map waferInfoMap_
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point