12 using namespace sipixelobjects;
15 : theFedId(fedId), theMap(map)
22 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
23 for (IT it=paths.begin(); it!=paths.end();++it) {
24 if(it->fed==static_cast<unsigned int>(
theFedId))
return true;
33 static_cast<unsigned int>(cabling.
link),
34 static_cast<unsigned int>(cabling.
roc)};
39 <<
", link="<<cabling.
link
40 <<
", roc="<<cabling.
roc;
45 if (!local.
valid())
return 3;
62 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
63 for (IT it = path.begin(); it != path.end(); ++it) {
66 if (! roc->
rawId() == detector.
rawId)
return 3;
75 if(!local.
valid())
continue;
77 static_cast<int>(it->roc), local.
dcol(), local.
pxid()};
GlobalPixel toGlobal(const LocalPixel &loc) const
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &) const =0
virtual std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const =0
SiPixelFrameConverter(const SiPixelFedCabling *map, int fedId)
identify pixel inside single ROC
global coordinates (row and column in DetUnit, as in PixelDigi)
LocalPixel toLocal(const GlobalPixel &gp) const
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
std::vector< LinkConnSpec >::const_iterator IT
double collumn and pixel ID in double collumn representation
int toCabling(sipixelobjects::ElectronicIndex &cabling, const sipixelobjects::DetectorIndex &detector) const
const SiPixelFedCabling * theMap
bool hasDetUnit(uint32_t radId) const
int toDetector(const sipixelobjects::ElectronicIndex &cabling, sipixelobjects::DetectorIndex &detector) const