|
|
Go to the documentation of this file.
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 ";
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++) {
100 const PixelGeomDetUnit* pxUnit = dynamic_cast<const PixelGeomDetUnit*>(*it);
101 if (pxUnit ==
nullptr)
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;
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;
T const * product() const
SiPixelFedCablingMapBuilder(const std::string fileName, const bool phase1=false)
std::string myprint(const PixelGeomDetUnit *pxUnit)
const PixelModuleName * module
Point3DBase< Scalar, LocalTag > LocalPoint
TString units(TString variable, Char_t axis)
virtual std::string version() const =0
version
SiPixelFedCablingTree * produce(const edm::EventSetup &setup)
virtual int ncolumns() const =0
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)
DetId geographicalId() const
The label of this GeomDet.
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
constexpr uint32_t rawId() const
get the raw id
virtual int nrows() const =0