12 using namespace sipixelobjects;
15 : theFedId(fedId), theMap(map),
17 theFed(theTree ? theTree->fed(fedId) :
nullptr)
23 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
24 for (IT it=paths.begin(); it!=paths.end();++it) {
25 if(it->fed==static_cast<unsigned int>(
theFedId))
return true;
33 static_cast<unsigned int>(link),
34 static_cast<unsigned int>(roc)};
52 typedef std::vector<CablingPathToDetUnit>::const_iterator
IT;
53 for (IT it = path.begin(); it != path.end(); ++it) {
56 if (! roc->
rawId() == detector.
rawId)
return 3;
65 if(!local.
valid())
continue;
67 static_cast<int>(it->roc), local.
dcol(), local.
pxid()};
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 &glo) const
tuple path
else: Piece not in the list, fine.
SiPixelFedCablingTree const * theTree
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
std::vector< LinkConnSpec >::const_iterator IT
int toCabling(sipixelobjects::ElectronicIndex &cabling, const sipixelobjects::DetectorIndex &detector) const
const SiPixelFedCabling * theMap
sipixelobjects::PixelROC const * toRoc(int link, int roc) const
bool hasDetUnit(uint32_t radId) const
const sipixelobjects::PixelROC * findItemInFed(const sipixelobjects::CablingPathToDetUnit &path, const PixelFEDCabling *aFed) const
const PixelFEDCabling * theFed