43 edm::LogInfo(
"tracker geometry read") <<
"There are: " << pDD->
dets().size() <<
" detectors";
57 edm::LogInfo(
"SiPixelFedCablingMapBuilder") <<
" pixel phase1 setup ";
61 edm::LogInfo(
"SiPixelFedCablingMapBuilder") <<
" pixel phase0 setup ";
72 edm::LogInfo(
"SiPixelFedCablingMapBuilder") <<
"pixel fedid range: " << fedIds;
93 typedef TrackerGeometry::DetContainer::const_iterator ITG;
96 typedef std::vector<pair<PixelModuleName*, uint32_t> > UNITS;
99 for (ITG it = pDD->
dets().begin(); it != pDD->
dets().end(); it++) {
101 if (pxUnit ==
nullptr)
114 units.push_back(std::make_pair(name, geomid.
rawId()));
163 for (UNITS::iterator iu = units.begin(); iu != units.end(); iu++) {
167 for (
int rocDetId = 0; rocDetId < 16; rocDetId++) {
184 for (UNITS::iterator iu = units.begin(); iu != units.end(); iu++)
190 std::ostringstream
str;
196 global = (*pxUnit).toGlobal(local);
198 float phi = 180 * atan2(global.
x(), global.
y()) /
M_PI;
201 float r = global.
perp();
202 float z = global.
z();
204 <<
" r=" << r <<
" phi=" << phi <<
" z=" <<
z;
205 str <<
" (rows,coll:" << tpl.
nrows() <<
"," << tpl.
ncolumns() <<
")";
208 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
210 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
212 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
214 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
virtual std::string name() const =0
associated name
virtual int nrows() const =0
Point3DBase< Scalar, LocalTag > LocalPoint
SiPixelFedCablingTree * produce(const edm::EventSetup &setup)
constexpr uint32_t rawId() const
get the raw id
def setup(process, global_tag, zero_tesla=False)
virtual std::string version() const =0
version
bool isThere(GeomDetEnumerators::SubDetector subdet) const
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
std::string myprint(const PixelGeomDetUnit *pxUnit)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
DetId geographicalId() const
The label of this GeomDet.
SiPixelFedCablingMapBuilder(const std::string fileName, const bool phase1=false)
const PixelModuleName * module
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
TString units(TString variable, Char_t axis)
virtual int ncolumns() const =0
T const * product() const
void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC &roc)