27 : map_(map), DetToFedMap(map->det2PathMap()) {
38 for (
auto it = pDD->
dets().begin(); it != pDD->
dets().end(); it++) {
39 if (dynamic_cast<PixelGeomDetUnit const*>((*it)) !=
nullptr) {
40 DetId detId = (*it)->geographicalId();
41 uint32_t
id = detId();
43 DetToFedMap.insert(pair<uint32_t, std::vector<CablingPathToDetUnit> >(
id, paths));
53 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
54 for (IT it = path.begin(); it != path.end(); ++it) {
76 std::vector<CablingPathToDetUnit>
path =
DetToFedMap.find(detId)->second;
84 std::vector<CablingPathToDetUnit>
path =
DetToFedMap.find(detId)->second;
85 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
86 for (IT it = path.begin(); it != path.end(); ++it) {
95 short link = (short)it->link;
104 std::vector<CablingPathToDetUnit>
path =
DetToFedMap.find(detId)->second;
105 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
106 for (IT it = path.begin(); it != path.end(); ++it) {
115 short rocInLink = (short)roc->
idInLink();
124 std::vector<CablingPathToDetUnit>
path =
DetToFedMap.find(detId)->second;
125 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
126 for (IT it = path.begin(); it != path.end(); ++it) {
147 std::vector<CablingPathToDetUnit>
path =
DetToFedMap.find(detId)->second;
148 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
149 for (IT it = path.begin(); it != path.end(); ++it) {
virtual std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const =0
unsigned int idInLink() const
id of this ROC in parent Link.
bool hasDetUnit(uint32_t detId) const
void buildStructure(edm::EventSetup const &)
identify pixel inside single ROC
int toCabling(sipixelobjects::ElectronicIndex &cabling, const sipixelobjects::DetectorIndex &detector) const
global coordinates (row and column in DetUnit, as in PixelDigi)
SiPixelFrameReverter(const edm::EventSetup &, const SiPixelFedCabling *map)
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
LocalPixel toLocal(const GlobalPixel &glo) const
int findFedId(uint32_t detId)
unsigned int idInDetUnit() const
id of this ROC in DetUnit etermined by token path
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
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_
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &) const =0
row and collumn in ROC representation
sipixelobjects::LocalPixel findPixelInRoc(uint32_t detId, sipixelobjects::GlobalPixel global)
short findLinkInFed(uint32_t detId, sipixelobjects::GlobalPixel global)