1 #ifndef _geometry_hgcalmapping_hgcalmappingtools_h_ 2 #define _geometry_hgcalmapping_hgcalmappingtools_h_ 11 namespace mappingtools {
38 return row[
it->second];
50 for (
size_t i = 0;
i <
header.size();
i++) {
61 bool zside, uint16_t
fedid, uint16_t captureblock, uint16_t econdidx,
int cellchip,
int cellhalf,
int cellseq);
62 uint32_t
getSiDetId(
bool zside,
int moduleplane,
int moduleu,
int modulev,
int celltype,
int celliu,
int celliv);
63 uint32_t
getSiPMDetId(
bool zside,
int moduleplane,
int modulev,
int celltype,
int celliu,
int celliv);
68 template <
class T1,
class T2>
70 std::pair<int32_t, int32_t>
key(-1, -1);
77 for (
int i = 0;
i <
modules.view().metadata().size();
i++) {
79 if (imod.detid() != modid)
87 for (
int j = 0;
j <
cells.view().metadata().size();
j++) {
88 auto jcell =
cells.view()[
j];
89 if (jcell.typeidx() != imod.typeidx())
91 if (jcell.detid() != cellid)
106 template <
class T1,
class T2>
108 std::pair<int32_t, int32_t>
idx = getModuleCellIndicesForSiCell<T1, T2>(
modules,
cells, detid);
109 if (
idx.first < 0 ||
idx.first < 0)
key
prepare the HTCondor submission files and eventually submit them
constexpr int32_t cellU() const
get the cell #'s in u,v or in x,y
constexpr HGCSiliconDetId moduleId() const
constexpr uint32_t rawId() const
get the raw id
constexpr int32_t cellV() const