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;
94 typedef std::vector<pair<PixelModuleName*, uint32_t> > UNITS;
97 for (ITG
it = pDD->
dets().begin();
it != pDD->
dets().end();
it++) {
99 if (pxUnit ==
nullptr)
160 for (UNITS::iterator iu =
units.begin(); iu !=
units.end(); iu++) {
164 for (
int rocDetId = 0; rocDetId < 16; rocDetId++) {
181 for (UNITS::iterator iu =
units.begin(); iu !=
units.end(); iu++)
187 std::ostringstream
str;
193 global = (*pxUnit).toGlobal(
local);
195 float phi = 180 * atan2(global.
x(), global.
y()) /
M_PI;
198 float r = global.
perp();
199 float z = global.
z();
201 <<
" r=" <<
r <<
" phi=" <<
phi <<
" z=" <<
z;
205 str <<
local <<
"global: " << (*pxUnit).toGlobal(
local) << endl;
207 str <<
local <<
"global: " << (*pxUnit).toGlobal(
local) << endl;
209 str <<
local <<
"global: " << (*pxUnit).toGlobal(
local) << endl;
211 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
virtual int nrows() const =0
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
virtual std::string version() const =0
version
T const * product() const
std::string myprint(const PixelGeomDetUnit *pxUnit)
bool isThere(GeomDetEnumerators::SubDetector subdet) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
const PixelModuleName * module
DetId geographicalId() const
The label of this GeomDet.
Log< level::Info, false > LogInfo
constexpr uint32_t rawId() const
get the raw id
TString units(TString variable, Char_t axis)
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_