45 edm::LogInfo(
"tracker geometry read")<<
"There are: "<< pDD->
dets().size() <<
" detectors";
60 edm::LogInfo(
"SiPixelFedCablingMapBuilder")<<
" pixel phase1 setup ";
64 edm::LogInfo(
"SiPixelFedCablingMapBuilder")<<
" pixel phase0 setup ";
75 edm::LogInfo(
"SiPixelFedCablingMapBuilder")<<
"pixel fedid range: "<<fedIds;
96 typedef TrackerGeometry::DetContainer::const_iterator ITG;
99 typedef std::vector<pair<PixelModuleName* , uint32_t> > UNITS;
102 for (ITG it = pDD->
dets().begin(); it != pDD->
dets().end(); it++) {
104 if (pxUnit ==
nullptr )
continue;
116 units.push_back( std::make_pair( name, geomid.
rawId() ) );
165 for (UNITS::iterator iu=units.begin(); iu != units.end(); iu++) {
169 for (
int rocDetId=0; rocDetId<16; rocDetId++) {
186 for (UNITS::iterator iu=units.begin(); iu != units.end(); iu++)
delete iu->first;
193 std::ostringstream
str;
198 local =
LocalPoint(0,0,0); global = (*pxUnit).toGlobal(local);
200 float phi = 180*atan2(global.
x(),global.
y())/
M_PI;
if (phi > 180.) phi = phi-360;
201 float r = global.
perp();
202 float z = global.
z();
203 str <<
" POSITION: "<<
" r="<<r<<
" phi="<<phi<<
" z="<<
z;
206 local =
LocalPoint(0,0,0); str <<local<<
"global: "<<(*pxUnit).toGlobal(local) <<endl;
207 local =
LocalPoint(1,0,0); str <<local<<
"global: "<<(*pxUnit).toGlobal(local) <<endl;
208 local =
LocalPoint(0,1,0); str <<local<<
"global: "<<(*pxUnit).toGlobal(local) <<endl;
209 local =
LocalPoint(0,0,1); 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)
def setup(process, global_tag, zero_tesla=False)
virtual std::string version() const =0
version
bool isThere(GeomDetEnumerators::SubDetector subdet) const
uint32_t rawId() const
get the raw id
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
std::string myprint(const PixelGeomDetUnit *pxUnit)
DetId geographicalId() const
The label of this GeomDet.
SiPixelFedCablingMapBuilder(const std::string fileName, const bool phase1=false)
const PixelModuleName * module
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
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)