43 edm::LogInfo(
"SiPixelFedCablingMapBuilder")<<
"pixel fedid range: "<<fedIds;
57 LogDebug(
"read tracker geometry...");
60 LogDebug(
"tracker geometry read")<<
"There are: "<< pDD->dets().size() <<
" detectors";
62 typedef TrackerGeometry::DetContainer::const_iterator ITG;
65 typedef std::vector<pair<PixelModuleName* , uint32_t> >
UNITS;
68 for (ITG it = pDD->dets().begin(); it != pDD->dets().end(); it++){
70 if (pxUnit ==0 )
continue;
80 units.push_back( std::make_pair( name, geomid.
rawId() ) );
85 cout <<
" HERE PixelToFEDAssociateFromAscii"<<endl;
86 vector<FedSpec> fedSpecs(fedIds.max()-fedIds.min()+1);
87 for (
int id=fedIds.first;
id<=fedIds.second;
id++) {
88 FedSpec fs={
id, vector<PixelModuleName* >(), vector<uint32_t>()};
89 int idx =
id - fedIds.min();
92 for (UNITS::iterator iu=units.begin(); iu != units.end(); iu++) {
94 uint32_t rawId = (*iu).second;
95 int fedId = name2fed( *name);
96 if ( fedIds.inside(fedId) ) {
97 int idx = fedId - fedIds.min();
98 fedSpecs[idx].rawids.push_back(rawId);
99 fedSpecs[idx].names.push_back(name);
101 <<
"problem with numbering! "<<fedId<<
" name: " << name->
name();
104 LogDebug(
"tracker geometry read")<<
"There are: "<< npxdets<<
" pixel detetors";
106 typedef vector<FedSpec>::iterator FI;
107 for ( FI it = fedSpecs.begin(); it != fedSpecs.end(); it++) {
108 int fedId = it->fedId;
109 vector<PixelModuleName* >
names = it->names;
110 vector<uint32_t> units = it->rawids;
111 if ( names.size() == 0)
continue;
113 bool barrel = it->names.front()->isBarrel();
115 PixelFEDCabling::Links links =
120 PixelFEDCabling::Links links =
128 cout <<
" HERE PixelToLNKAssociateFromAscii"<<endl;
129 for (UNITS::iterator iu=units.begin(); iu != units.end(); iu++) {
132 for (
int rocDetId=0; rocDetId<=16; rocDetId++) {
144 for (UNITS::iterator iu=units.begin(); iu != units.end(); iu++)
delete iu->first;
Links links(const Names &n, const DetUnits &u) const
uint32_t rawId() const
get the raw id
virtual std::string version() const =0
version
virtual std::string name() const =0
associated name
DetId geographicalId() const
The label of this GeomDet.
const PixelModuleName * module
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void addFed(const PixelFEDCabling &f)
add cabling for one fed
std::string theAssociatorName
static const HistoName names[]
void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC &roc)
Links links(const Names &n, const DetUnits &u) const