|
|
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 ";
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)
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;
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;
T const * product() const
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
std::string myprint(const PixelGeomDetUnit *pxUnit)
SiPixelFedCablingMapBuilder(edm::ConsumesCollector &&iCC, const std::string fileName, const bool phase1=false)
const PixelModuleName * module
Log< level::Info, false > LogInfo
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
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
virtual int nrows() const =0