10 using namespace sipixelobjects;
19 unsigned int fedId = (theMap.begin())->
first.fed;
22 for (
auto &
v : theMap)
v.second.initFrameConversionPhase1();
24 for (
auto &
v : theMap)
v.second.initFrameConversion();
50 if (fed < other.
fed)
return true;
51 if (fed > other.
fed)
return false;
56 if (roc < other.
roc)
return true;
57 if (roc > other.
roc)
return false;
68 for (std::vector<const PixelFEDCabling *>::const_iterator ifed=fedList.begin();
69 ifed != fedList.end(); ifed++) {
70 unsigned int fed = (**ifed).id();
71 unsigned int numLink = (**ifed).numberOfLinks();
74 if (pLink==0)
continue;
80 for (
unsigned int roc=1; roc <= numberROC; roc++) {
82 if (pROC==0)
continue;
96 for (Map::const_iterator im =
theMap.begin(); im !=
theMap.end(); im++) {
98 unsigned int fedId = im->first.fed;
99 unsigned int linkId = im->first.link;
100 tree->addItem(fedId, linkId, roc);
106 std::vector<unsigned int>
result;
107 for (Map::const_iterator im =
theMap.begin(); im !=
theMap.end(); im++) {
108 unsigned int fedId = im->first.fed;
109 if (
find(result.begin(),result.end(),
fedId) == result.end()) result.push_back(fedId);
118 Map::const_iterator inMap =
theMap.find(key);
119 if (inMap!=
theMap.end()) roc = &(inMap->second);
124 uint32_t rawDetId)
const {
126 std::vector<sipixelobjects::CablingPathToDetUnit>
result;
127 for (Map::const_iterator im =
theMap.begin(); im !=
theMap.end(); ++im) {
128 if(im->second.rawId()==rawDetId ) {
130 result.push_back(path);
const PixelROC * roc(unsigned int id) const
return ROC identified by id. ROC ids are ranged [1,numberOfROCs]
SiPixelFedCablingMap(const SiPixelFedCablingTree *cab)
bool operator<(const Key &other) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
unsigned int numberOfROCs() const
number of ROCs in fed
virtual std::vector< sipixelobjects::CablingPathToDetUnit > pathToDetUnit(uint32_t rawDetId) const
virtual const sipixelobjects::PixelROC * findItem(const sipixelobjects::CablingPathToDetUnit &path) const
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
std::vector< unsigned int > fedIds() const
std::vector< const PixelFEDCabling * > fedList() const