24 for (
int i=1;
i!=7;
i++) {
27 end = tg.
endsetDU(det); assert(end>off);
28 for (
int j=off;
j!=
end; ++
j) {
29 assert(tg.
detUnits()[
j]->geographicalId().subdetId()==
i);
30 assert(tg.
detUnits()[
j]->subDetector()==det);
40 bool upgradeGeometry =
false;
44 if( pSet.
exists(
"trackerGeometryConstants" ))
47 upgradeGeometry = tkGeomConsts.
getParameter<
bool>(
"upgradeGeometry" );
48 BIG_PIX_PER_ROC_X = tkGeomConsts.
getParameter<
int>(
"BIG_PIX_PER_ROC_X" );
49 BIG_PIX_PER_ROC_Y = tkGeomConsts.
getParameter<
int>(
"BIG_PIX_PER_ROC_Y" );
56 std::vector<const GeometricDet*>
comp;
59 std::vector<const GeometricDet*> dets[6];
60 std::vector<const GeometricDet*> & pixB = dets[0]; pixB.reserve(comp.size());
61 std::vector<const GeometricDet*> & pixF = dets[1]; pixF.reserve(comp.size());
62 std::vector<const GeometricDet*> & tib = dets[2]; tib.reserve(comp.size());
63 std::vector<const GeometricDet*> & tid = dets[3]; tid.reserve(comp.size());
64 std::vector<const GeometricDet*> & tob = dets[4]; tob.reserve(comp.size());
65 std::vector<const GeometricDet*> & tec = dets[5]; tec.reserve(comp.size());
67 for(u_int32_t
i = 0;
i<comp.size();
i++)
68 dets[comp[
i]->geographicalID().subdetId()-1].push_back(comp[
i]);
85 verifyDUinTG(*tracker);
99 for(u_int32_t
i=0;
i<gdv.size();
i++){
101 std::string const & detName = gdv[
i]->name().fullname();
103 std::auto_ptr<const Bounds> bounds(gdv[
i]->bounds());
108 gdv[
i]->pixROCRows(),
109 gdv[
i]->pixROCCols(),
112 gdv[
i]->pixROCx(), gdv[
i]->pixROCy());
135 for(u_int32_t
i=0;
i<gdv.size();
i++){
137 std::string const & detName = gdv[
i]->name().fullname();
139 std::auto_ptr<const Bounds> bounds(gdv[
i]->bounds());
142 gdv[
i]->siliconAPVNum(),
165 std::vector<GeomDetUnit*>
const & gdu= tracker->
detUnits();
166 std::vector<DetId>
const & gduId = tracker->
detUnitIds();
168 for(u_int32_t
i=0;
i<gdu.size();
i++){
174 for(u_int32_t
jj=0;
jj<gduId.size();
jj++){
182 throw cms::Exception(
"Configuration") <<
"No partner detector found \n"
183 <<
"There is a problem on Tracker geometry configuration\n";
186 std::vector<const GeomDetUnit *> glued(2);
T getParameter(std::string const &) const
StripTopology * build(const Bounds *, double, std::string)
void setEndsetDU(SubDetector sid)
PixelTopology * build(const Bounds *bounds, bool upgradeGeometry, int ROWS_PER_ROC, int COLS_PER_ROC, int BIG_PIX_PER_ROC_X, int BIG_PIX_PER_ROC_Y, int ROCS_X, int ROCS_Y)
TrackerGeometry * build(const GeometricDet *gd, const edm::ParameterSet &pSet)
void buildGeomDet(TrackerGeometry *)
static const int BIG_PIX_PER_ROC_Y
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void buildPixel(std::vector< const GeometricDet * > const &, TrackerGeometry *, GeomDetType::SubDetector det, bool upgradeGeometry, int BIG_PIX_PER_ROC_X, int BIG_PIX_PER_ROC_Y)
unsigned int partnerDetId() const
std::map< std::string, StripGeomDetType * > theStripDetTypeMap
ResultType plane(const std::vector< const GeomDetUnit * > &dets) const
virtual const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
static const int BIG_PIX_PER_ROC_X
unsigned int endsetDU(SubDetector sid) const
unsigned int glued() const
glued
void setOffsetDU(SubDetector sid)
void buildSilicon(std::vector< const GeometricDet * > const &, TrackerGeometry *, GeomDetType::SubDetector det, const std::string &part)
PlaneBuilderFromGeometricDet::ResultType buildPlaneWithMaterial(const GeometricDet *gd, double scaleFactor=1.) const
unsigned int offsetDU(SubDetector sid) const
ResultType plane(const GeometricDet *gd) const
unsigned int stereo() const
stereo
std::map< std::string, PixelGeomDetType * > thePixelDetTypeMap
void addDetUnitId(DetId p)
void addType(GeomDetType *p)
ConstGeometricDetContainer deepComponents() const
virtual const DetIdContainer & detUnitIds() const
Returm a vector of all GeomDetUnit DetIds.
void addDetUnit(GeomDetUnit *p)
constexpr SubDetector tkDetEnum[8]