11 wafer_ = std::make_unique<HGCalCell>(
24 for (
int k = 0;
k < 2; ++
k)
28 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalCalibrationCell: " <<
cells_[0].size() <<
" HD calibration cells of radius " 30 for (
unsigned int k = 0;
k <
cells_[0].size(); ++
k)
32 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalCalibrationCell: " <<
cells_[2].size() <<
" LD calibration cells of radius " 34 for (
unsigned int k = 0;
k <
cells_[2].size(); ++
k)
44 int indx = 2 * ld +
part;
46 std::ostringstream st1;
47 st1 <<
"HGCalCalibrationCell::findCell::input " <<
layer <<
":" <<
waferU <<
":" <<
waferV <<
":" << cellUV <<
":" 48 <<
xy.first <<
":" <<
xy.second <<
" Type:Part " <<
info.type <<
":" <<
info.part <<
":" << ld <<
":" <<
part 56 int cellU = (cellUV / 100) % 100;
57 int cellV = cellUV % 100;
58 auto xyc =
wafer_->cellUV2XY1(cellU, cellV, place, (1 - ld));
59 double xx =
xy.first - xyc.first;
60 double yy =
xy.second - xyc.second;
64 st1 <<
" layertype:place:cellU:cellV " << layertype <<
":" << place <<
":" << cellU <<
":" << cellV <<
" xx " 65 <<
xy.first <<
":" << xyc.first <<
":" <<
xx <<
" yy " <<
xy.second <<
":" << xyc.second <<
":" <<
yy <<
" R2 " 70 st1 <<
" Return Value " <<
ok <<
":" << retval;
Log< level::Info, true > LogVerbatim
static int32_t cellPlacementIndex(int32_t iz, int32_t frontBack, int32_t orient)
const HGCalParameters * getParameter() const
int32_t waferU(const int32_t index)
HGCalParameters::waferInfo waferInfo(int lay, int waferU, int waferV) const
std::unique_ptr< HGCalCell > wafer_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
static constexpr int32_t WaferFull
std::vector< int > calibCellPartHD_
std::vector< int > calibCellFullHD_
const HGCalDDDConstants * cons_
int32_t waferV(const int32_t index)
std::vector< int > cells_[4]
std::vector< int > calibCellPartLD_
static constexpr int32_t WaferFineThin
static constexpr int32_t WaferCenterB
int findCell(int zside, int layer, int waferU, int waferV, int cellUV, const std::pair< double, double > &xy) const
int layerType(int lay) const
std::vector< int > calibCellFullLD_