41 siPixelFedCablingMapToken_ =
43 if (!cablingMapLabel_.empty()) {
44 labeledSiPixelFedCablingMapToken_ =
49 trackerGeometryToken_ =
52 siPixelFedCablingMapToken_ =
54 if (!cablingMapLabel_.empty()) {
55 labeledSiPixelFedCablingMapToken_ =
79 log <<
"Known colum names:\n";
80 for (
const auto&
e :
ids)
89 std::vector<ID> geomquantities;
104 std::vector<std::pair<std::string, TTField>> namedPartitions{
117 for (
auto&
e : namedPartitions) {
118 geomquantities.push_back(
intern(
e.first));
135 auto diskid =
intern(
"PXDisk");
138 auto disk = pxdisk(iq);
141 auto endcap = pxendcap(iq);
142 return endcap == 1 ? -disk : disk;
147 uint32_t
id = iq.sourceModule.rawId();
160 auto detids = trackerGeometry.
detIds();
161 for (
DetId id : detids) {
185 iq.row = topo->
nrows() - 1;
191 iq.row = topo->
nrows() - 1;
211 auto coord = std::make_shared<SiPixelCoordinates>(
phase);
216 coord->init(&trackerTopology, &trackerGeometry, &siPixelFedCablingMap);
275 return from_coord(coord->signed_ladder(iq.
sourceModule()));
278 return from_coord(coord->signed_module(iq.
sourceModule()));
281 return from_coord(coord->signed_blade(iq.
sourceModule()));
296 intern(
"SignedModuleCoord"),
298 return from_coord(coord->signed_module_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
304 intern(
"SignedLadderCoord"),
306 return from_coord(coord->signed_ladder_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
312 intern(
"SignedDiskCoord"),
314 return from_coord(coord->signed_disk_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
320 intern(
"SignedDiskRingCoord"),
322 return from_coord(coord->signed_disk_ring_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
328 intern(
"SignedBladePanelCoord"),
331 return from_coord(coord->signed_blade_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
332 }
else if (
phase == 1) {
334 coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
341 phase == 1 ? 0.25 : 0.2);
343 intern(
"SignedShiftedBladePanelCoord"),
346 return from_coord(coord->signed_blade_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
347 }
else if (
phase == 1) {
349 coord->signed_shifted_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
356 phase == 1 ? 0.25 : 0.1
359 intern(
"SignedBladePanel"),
361 return from_coord(coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
368 intern(
"SignedBladePanel"),
370 return from_coord(coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
378 return from_coord(coord->roc(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
384 return from_coord(coord->channel(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
454 std::shared_ptr<SiPixelFrameReverter> siPixelFrameReverter =
456 std::make_shared<SiPixelFrameReverter>(labeledSiPixelFedCablingMap);
495 if (
name ==
"PXDisk" &&
val > 0)
496 value =
"_+" + std::to_string(
int(
val));
498 std::map<int, std::string> shellname{{11,
"_mI"}, {12,
"_mO"}, {21,
"_pI"}, {22,
"_pO"}};
499 if (
name ==
"HalfCylinder" ||
name ==
"Shell")
502 value =
"_UNDEFINED";