8 namespace mappingtools {
34 uint16_t
getEcondErx(uint16_t chip, uint16_t half) {
return chip * 2 + half; }
38 bool zside, uint16_t
fedid, uint16_t captureblock, uint16_t econdidx,
int cellchip,
int cellhalf,
int cellseq) {
39 uint16_t econderx =
getEcondErx(cellchip, cellhalf);
45 uint32_t
getSiDetId(
bool zside,
int moduleplane,
int moduleu,
int modulev,
int celltype,
int celliu,
int celliv) {
46 DetId::Detector det = moduleplane <= 26 ? DetId::Detector::HGCalEE : DetId::Detector::HGCalHSi;
47 int zp(
zside ? 1 : -1);
49 return HGCSiliconDetId(det, zp, celltype, moduleplane, moduleu, modulev, celliu, celliv).
rawId();
53 uint32_t
getSiPMDetId(
bool zside,
int moduleplane,
int modulev,
int celltype,
int celliu,
int celliv) {
54 int layer = moduleplane - 25;
57 int ring = (
zside ? celliu : (-1) * celliu);
58 int iphi = modulev * 8 + celliv + 1;
wrapper for a 32b data word identifying a readout channel in the raw data The format is the following...
constexpr uint32_t rawId() const
get the raw id