#include <HGCalMouseBite.h>
Definition at line 13 of file HGCalMouseBite.h.
◆ HGCalMouseBite()
HGCalMouseBite::HGCalMouseBite |
( |
const HGCalDDDConstants & |
hgc, |
|
|
bool |
waferRotate = false |
|
) |
| |
Definition at line 7 of file HGCalMouseBite.cc.
8 if (
hgc.waferHexagon8()) {
9 const std::vector<double>
angle = {90._deg, 30._deg};
10 std::vector<std::pair<double, double> > projXY;
11 projXY.reserve(
angle.size());
12 for (
auto ang :
angle)
13 projXY.emplace_back(std::make_pair(
cos(ang),
sin(ang)));
14 const double mousebite(
hgc.mouseBite(
true));
15 const double wafersize(
hgc.waferSize(
true));
19 <<
" axes in wafers of size " << wafersize;
20 for (
unsigned int k = 0;
k <
angle.size(); ++
k)
22 << projXY[
k].first <<
":" << projXY[
k].second;
24 static const double sqrt3 =
std::sqrt(3.0);
27 double Rf = wafersize / (3.0 * nf);
28 double rf = 0.5 * Rf * sqrt3;
29 for (
int u = 0; u < 2 * nf; ++u) {
30 for (
int v = 0;
v < 2 * nf; ++
v) {
31 if (((
v - u) < nf) && ((u -
v) <= nf)) {
33 double xp =
std::abs((1.5 * (
v - nf) + 1.0) * Rf);
34 for (
auto proj : projXY) {
35 double dist = (
rot ? (yp *
proj.first + xp *
proj.second) : (xp *
proj.first + yp *
proj.second));
46 <<
" masked u, v's among the fine grain wafers:";
53 double Rc =
hgc.getParameter()->waferSize_ / (3.0 * nc);
54 double rc = 0.5 * Rc * sqrt3;
55 for (
int u = 0; u < 2 * nc; ++u) {
56 for (
int v = 0;
v < 2 * nc; ++
v) {
57 if (((
v - u) < nc) && ((u -
v) <= nc)) {
58 double yp = (u - 0.5 *
v - nc2) * 2 * rc;
59 double xp = (1.5 * (
v - nc) + 1.0) * Rc;
60 for (
auto proj : projXY) {
61 double dist = (
rot ? (yp *
proj.first + xp *
proj.second) : (xp *
proj.first + yp *
proj.second));
71 <<
" masked u, v's among the coarse grain wafers:";
References funct::abs(), angle(), angle_units::operators::convertRadToDeg(), funct::cos(), PA_MinBiasSkim_cff::cut, HGCSiliconDetId::HGCalCoarseN, HGCSiliconDetId::HGCalFineN, dqmdumpme::k, amptDefault_cfi::proj, hcal_runs::rf, makeMuonMisalignmentScenario::rot, funct::sin(), mathSSE::sqrt(), funct::tan(), and findQualityFiles::v.
◆ exclude()
template<class T >
bool HGCalMouseBite::exclude |
( |
const T & |
id | ) |
|
|
inline |
◆ rejectCoarse_
std::vector<int> HGCalMouseBite::rejectCoarse_ |
|
private |
◆ rejectFine_
std::vector<int> HGCalMouseBite::rejectFine_ |
|
private |