27 for (
int i=1;
i!=7;
i++) {
31 for (
int j=off;
j!=
end; ++
j) {
50 std::vector<const GeometricDet*>
comp;
58 LogDebug(
"SubDetectorGeometricDetType") <<
"GeometriDet enumerator values of the subdetectors";
59 for(
unsigned int i=0;
i<subdetgd.size();++
i) {
60 assert(subdetgd[
i]->geographicalId().subdetId()>0 && subdetgd[
i]->geographicalId().subdetId()<7);
61 gdsubdetmap[subdetgd[
i]->geographicalId().subdetId()-1]= subdetgd[
i]->type();
62 LogTrace(
"SubDetectorGeometricDetType") <<
"subdet " <<
i
63 <<
" type " << subdetgd[
i]->type()
64 <<
" detid " << subdetgd[
i]->geographicalId()
65 <<
" subdetid " << subdetgd[
i]->geographicalId().subdetId();
68 std::vector<const GeometricDet*> dets[6];
69 std::vector<const GeometricDet*> & pixB = dets[0]; pixB.reserve(comp.size());
70 std::vector<const GeometricDet*> & pixF = dets[1]; pixF.reserve(comp.size());
71 std::vector<const GeometricDet*> & tib = dets[2]; tib.reserve(comp.size());
72 std::vector<const GeometricDet*> & tid = dets[3]; tid.reserve(comp.size());
73 std::vector<const GeometricDet*> & tob = dets[4]; tob.reserve(comp.size());
74 std::vector<const GeometricDet*> & tec = dets[5]; tec.reserve(comp.size());
76 for(u_int32_t
i = 0;
i<comp.size();
i++)
77 dets[comp[
i]->geographicalID().subdetId()-1].push_back(comp[
i]);
83 for(
unsigned int i=0;i<6;++
i) {
121 for(
unsigned int i=0;i<6;++
i) {
128 for(
unsigned int i=0;i<6;++
i) {
130 if(dets[i].
size()!=0)
throw cms::Exception(
"NotEmptyUnknownSubDet") <<
"Subdetector " << i+1 <<
" is unknown but it is not empty: " << dets[
i].size();
136 verifyDUinTG(*tracker);
144 bool upgradeGeometry,
148 LogDebug(
"BuildingGeomDetUnits") <<
" Pixel type. Size of vector: " << gdv.size()
149 <<
" GeomDetType subdetector: " << det
151 <<
" big pix per ROC x: " << BIG_PIX_PER_ROC_X <<
" y: " << BIG_PIX_PER_ROC_Y
152 <<
" is upgrade: " << upgradeGeometry;
156 for(u_int32_t
i=0;
i<gdv.size();
i++){
158 std::string const & detName = gdv[
i]->name().fullname();
160 std::unique_ptr<const Bounds> bounds(gdv[
i]->bounds());
165 gdv[
i]->pixROCRows(),
166 gdv[
i]->pixROCCols(),
169 gdv[
i]->pixROCx(), gdv[
i]->pixROCy());
189 LogDebug(
"BuildingGeomDetUnits") <<
" Strip type. Size of vector: " << gdv.size()
190 <<
" GeomDetType subdetector: " << det
196 for(u_int32_t
i=0;
i<gdv.size();
i++){
198 std::string const & detName = gdv[
i]->name().fullname();
200 std::unique_ptr<const Bounds> bounds(gdv[
i]->bounds());
203 gdv[
i]->siliconAPVNum(),
226 auto const & gdu= tracker->
detUnits();
229 for(u_int32_t
i=0;
i<gdu.size();
i++){
235 for(u_int32_t
jj=0;
jj<gduId.size();
jj++){
243 throw cms::Exception(
"Configuration") <<
"No partner detector found \n"
244 <<
"There is a problem on Tracker geometry configuration\n";
247 std::vector<const GeomDetUnit *> glued(2);
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)
void buildGeomDet(TrackerGeometry *)
static const int BIG_PIX_PER_ROC_Y
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
ConstGeometricDetContainer & components()
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
std::vector< GeometricDet const * > ConstGeometricDetContainer
unsigned int stereo() const
stereo
SubDetector subDetGeom[18]
void addDetUnitId(DetId p)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerParameters &ptp)
ConstGeometricDetContainer deepComponents() const
virtual const DetIdContainer & detUnitIds() const
Returm a vector of all GeomDetUnit DetIds.
tuple size
Write out results.