28 using namespace sipixelobjects;
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 ";
92 typedef TrackerGeometry::DetContainer::const_iterator ITG;
95 typedef std::vector<pair<PixelModuleName*, uint32_t> > UNITS;
98 for (ITG it = pDD->dets().begin(); it != pDD->dets().end(); it++) {
100 if (pxUnit ==
nullptr)
113 units.push_back(std::make_pair(name, geomid.
rawId()));
162 for (UNITS::iterator iu = units.begin(); iu != units.end(); iu++) {
166 for (
int rocDetId = 0; rocDetId < 16; rocDetId++) {
183 for (UNITS::iterator iu = units.begin(); iu != units.end(); iu++)
189 std::ostringstream
str;
195 global = (*pxUnit).toGlobal(local);
197 float phi = 180 * atan2(global.
x(), global.
y()) /
M_PI;
200 float r = global.
perp();
201 float z = global.
z();
203 <<
" r=" << r <<
" phi=" << phi <<
" z=" <<
z;
204 str <<
" (rows,coll:" << tpl.
nrows() <<
"," << tpl.
ncolumns() <<
")";
207 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
209 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
211 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
213 str << local <<
"global: " << (*pxUnit).toGlobal(local) << endl;
Point3DBase< Scalar, LocalTag > LocalPoint
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
SiPixelFedCablingTree * produce(const edm::EventSetup &setup)
SiPixelFedCablingMapBuilder(edm::ConsumesCollector &&iCC, const std::string fileName, const bool phase1=false)
virtual int ncolumns() const =0
constexpr uint32_t rawId() const
get the raw id
virtual int nrows() const =0
virtual std::string version() const =0
version
std::string myprint(const PixelGeomDetUnit *pxUnit)
virtual std::string name() const =0
associated name
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.
const PixelModuleName * module
Log< level::Info, false > LogInfo
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
T const * product() const
TString units(TString variable, Char_t axis)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void addItem(unsigned int fedId, unsigned int linkId, const sipixelobjects::PixelROC &roc)