24 for (
auto it = trackerGeometry->
dets().begin(); it != trackerGeometry->
dets().end(); it++) {
25 if (dynamic_cast<PixelGeomDetUnit const*>((*it)) !=
nullptr) {
27 uint32_t
id =
detId();
29 DetToFedMap.insert(pair<uint32_t, std::vector<CablingPathToDetUnit> >(
id,
paths));
39 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
40 for (
IT it =
path.begin(); it !=
path.end(); ++it) {
71 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
72 for (
IT it =
path.begin(); it !=
path.end(); ++it) {
81 short link = (short)it->link;
91 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
92 for (
IT it =
path.begin(); it !=
path.end(); ++it) {
101 short rocInLink = (short)
roc->idInLink();
111 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
112 for (
IT it =
path.begin(); it !=
path.end(); ++it) {
121 short rocInDet = (short)
roc->idInDetUnit();
134 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
135 for (
IT it =
path.begin(); it !=
path.end(); ++it) {
int toCabling(sipixelobjects::ElectronicIndex &cabling, const sipixelobjects::DetectorIndex &detector) const
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &) const =0
virtual std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const =0
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
identify pixel inside single ROC
global coordinates (row and column in DetUnit, as in PixelDigi)
int findFedId(uint32_t detId)
std::vector< LinkConnSpec >::const_iterator IT
short findRocInLink(uint32_t detId, sipixelobjects::GlobalPixel global)
short findRocInDet(uint32_t detId, sipixelobjects::GlobalPixel global)
std::map< uint32_t, std::vector< sipixelobjects::CablingPathToDetUnit > > DetToFedMap
const SiPixelFedCabling * map_
void buildStructure(const TrackerGeometry *)
SiPixelFrameReverter(const SiPixelFedCabling *map)
row and collumn in ROC representation
bool hasDetUnit(uint32_t detId) const
sipixelobjects::LocalPixel findPixelInRoc(uint32_t detId, sipixelobjects::GlobalPixel global)
short findLinkInFed(uint32_t detId, sipixelobjects::GlobalPixel global)