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::unique_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::unique_ptr<const Bounds> bounds(gdv[
i]->bounds());
142 gdv[
i]->siliconAPVNum(),
165 auto const & gdu= tracker->
detUnits();
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
void addDet(GeomDet const *p)
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
ResultType plane(const std::vector< const GeomDetUnit * > &dets) const
virtual const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
void addDetUnit(GeomDetUnit const *p)
static const int BIG_PIX_PER_ROC_X
unsigned int endsetDU(SubDetector sid) const
unsigned int glued() const
glued
void setOffsetDU(SubDetector sid)
std::map< std::string, const StripGeomDetType * > theStripDetTypeMap
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
void addType(GeomDetType const *p)
unsigned int offsetDU(SubDetector sid) const
ResultType plane(const GeometricDet *gd) const
std::map< std::string, const PixelGeomDetType * > thePixelDetTypeMap
unsigned int stereo() const
stereo
void addDetUnitId(DetId p)
ConstGeometricDetContainer deepComponents() const
virtual const DetIdContainer & detUnitIds() const
Returm a vector of all GeomDetUnit DetIds.
constexpr SubDetector tkDetEnum[8]