1 #ifndef HGCalCommonData_HGCalWaferMask_h 2 #define HGCalCommonData_HGCalWaferMask_h 22 static bool maskCell(
int u,
int v,
int N,
int ncor,
int fcor,
int corners);
26 static bool goodCell(
int u,
int v,
int waferType);
31 static std::pair<int, int>
getTypeMode(
const double& xpos,
40 const bool&
debug =
false);
51 const bool&
debug =
false);
54 static std::vector<std::pair<double, double> >
waferXY(
const int&
part,
57 const double& waferSize,
64 static std::vector<std::pair<double, double> >
waferXY(
const int&
part,
66 const double& wafersize,
72 static std::array<double, 4>
maskCut(
73 const int&
part,
const int& place,
const double& waferSize,
const double&
offset,
const bool& v17OrLess);
76 static constexpr
double sqrt3_ = 1.732050807568877;
80 static constexpr std::array<double, 12>
tan_1 = {
81 {-
sqrt3_,
sqrt3_, 0.0, -
sqrt3_,
sqrt3_, 0.0,
sqrt3_, -
sqrt3_, 0.0,
sqrt3_, -
sqrt3_, 0.0}};
82 static constexpr std::array<double, 12>
cos_1 = {{0.5, -0.5, -1.0, -0.5, 0.5, 1.0, -0.5, 0.5, 1.0, 0.5, -0.5, -1.0}};
83 static constexpr std::array<double, 12>
cot_1 = {
84 {
sqrt3_, -
sqrt3_, 0.0,
sqrt3_, -
sqrt3_, 0.0, -
sqrt3_,
sqrt3_, 0.0, -
sqrt3_,
sqrt3_, 0.0}};
static constexpr std::array< double, 12 > cos_1
static bool goodCell(int u, int v, int N, int type, int rotn)
static constexpr double sqrt3_
static int getRotation(int zside, int type, int rotn)
static constexpr double sin_60_
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)
static constexpr double tan_60_
static std::pair< int, int > getTypeMode(const double &xpos, const double &ypos, const double &delX, const double &delY, const double &rin, const double &rout, const int &waferType, const int &mode, const bool &v17, const bool &debug=false)
static std::array< double, 4 > maskCut(const int &part, const int &place, const double &waferSize, const double &offset, const bool &v17OrLess)
static constexpr std::array< double, 12 > cot_1
static bool goodTypeMode(const double &xpos, const double &ypos, const double &delX, const double &delY, const double &rin, const double &rout, const int &part, const int &rotn, const bool &v17, const bool &debug=false)
static constexpr double cos_60_
static constexpr std::array< double, 12 > tan_1
static bool maskCell(int u, int v, int N, int ncor, int fcor, int corners)