46 siPixelFedCablingMapToken_ =
48 if (!cablingMapLabel_.empty()) {
49 labeledSiPixelFedCablingMapToken_ =
54 trackerGeometryToken_ =
57 siPixelFedCablingMapToken_ =
59 if (!cablingMapLabel_.empty()) {
60 labeledSiPixelFedCablingMapToken_ =
84 log <<
"Known colum names:\n";
94 std::vector<ID> geomquantities;
109 std::vector<std::pair<std::string, TTField>> namedPartitions{
122 for (
auto&
e : namedPartitions) {
123 geomquantities.push_back(
intern(
e.first));
140 auto diskid =
intern(
"PXDisk");
143 auto disk = pxdisk(iq);
146 auto endcap = pxendcap(iq);
147 return endcap == 1 ? -disk : disk;
152 uint32_t
id = iq.sourceModule.rawId();
166 for (
DetId id : detids) {
190 iq.row = topo->
nrows() - 1;
196 iq.row = topo->
nrows() - 1;
216 auto coord = std::make_shared<SiPixelCoordinates>(
phase);
280 return from_coord(coord->signed_ladder(iq.
sourceModule()));
283 return from_coord(coord->signed_module(iq.
sourceModule()));
286 return from_coord(coord->signed_blade(iq.
sourceModule()));
301 intern(
"SignedModuleCoord"),
303 return from_coord(coord->signed_module_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
309 intern(
"SignedLadderCoord"),
311 return from_coord(coord->signed_ladder_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
317 intern(
"SignedDiskCoord"),
319 return from_coord(coord->signed_disk_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
325 intern(
"SignedDiskRingCoord"),
327 return from_coord(coord->signed_disk_ring_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
333 intern(
"SignedBladePanelCoord"),
336 return from_coord(coord->signed_blade_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
337 }
else if (
phase == 1) {
339 coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
346 phase == 1 ? 0.25 : 0.2);
348 intern(
"SignedShiftedBladePanelCoord"),
351 return from_coord(coord->signed_blade_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
352 }
else if (
phase == 1) {
354 coord->signed_shifted_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
361 phase == 1 ? 0.25 : 0.1
364 intern(
"SignedBladePanel"),
366 return from_coord(coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
373 intern(
"SignedBladePanel"),
375 return from_coord(coord->signed_blade_panel_coord(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
383 return from_coord(coord->roc(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
389 return from_coord(coord->channel(iq.
sourceModule(), std::make_pair(
int(iq.
row),
int(iq.
col))));
459 std::shared_ptr<SiPixelFrameReverter> siPixelFrameReverter =
461 std::make_shared<SiPixelFrameReverter>(labeledSiPixelFedCablingMap);
500 if (
name ==
"PXDisk" &&
val > 0)
501 value =
"_+" + std::to_string(
int(
val));
503 std::map<int, std::string> shellname{{11,
"_mI"}, {12,
"_mO"}, {21,
"_pI"}, {22,
"_pO"}};
504 if (
name ==
"HalfCylinder" ||
name ==
"Shell")
507 value =
"_UNDEFINED";