31 for (
int i = 1;
i != 7;
i++) {
36 for (
int j = off;
j !=
end; ++
j) {
49 if (ptp.
vpars.size() != 6) {
51 <<
"Tracker parameters block from XMLs called vPars is expected to have 6 entries, but has " << ptp.
vpars.size()
57 const int BIG_PIX_PER_ROC_X = ptp.
vpars[2];
58 const int BIG_PIX_PER_ROC_Y = ptp.
vpars[3];
64 std::vector<const GeometricDet*>
comp;
72 std::vector<GeometricDet::GDEnumType> gdsubdetmap(
76 LogDebug(
"SubDetectorGeometricDetType") <<
"GeometriDet enumerator values of the subdetectors";
77 for (
unsigned int i = 0;
i < subdetgd.size(); ++
i) {
78 assert(subdetgd[
i]->geographicalId().subdetId() > 0 && subdetgd[
i]->geographicalId().subdetId() < 7);
79 gdsubdetmap[subdetgd[
i]->geographicalId().subdetId() - 1] = subdetgd[
i]->type();
80 LogTrace(
"SubDetectorGeometricDetType")
81 <<
"subdet " <<
i <<
" type " << subdetgd[
i]->type() <<
" detid " << subdetgd[
i]->geographicalId().rawId()
82 <<
" subdetid " << subdetgd[
i]->geographicalId().subdetId();
85 std::vector<const GeometricDet*> dets[6];
86 std::vector<const GeometricDet*>& pixB = dets[0];
87 pixB.reserve(
comp.size());
88 std::vector<const GeometricDet*>& pixF = dets[1];
89 pixF.reserve(
comp.size());
90 std::vector<const GeometricDet*>& tib = dets[2];
91 tib.reserve(
comp.size());
92 std::vector<const GeometricDet*>& tid = dets[3];
93 tid.reserve(
comp.size());
94 std::vector<const GeometricDet*>& tob = dets[4];
95 tob.reserve(
comp.size());
96 std::vector<const GeometricDet*>& tec = dets[5];
97 tec.reserve(
comp.size());
100 dets[
i->geographicalId().subdetId() - 1].emplace_back(
i);
106 for (
unsigned int i = 0;
i < 6; ++
i) {
130 for (
unsigned int i = 0;
i < 6; ++
i) {
141 for (
unsigned int i = 0;
i < 6; ++
i) {
145 <<
"Subdetector " <<
i + 1 <<
" is unknown but it is not empty: " << dets[
i].size();
161 int BIG_PIX_PER_ROC_X,
162 int BIG_PIX_PER_ROC_Y)
164 LogDebug(
"BuildingGeomDetUnits") <<
" Pixel type. Size of vector: " << gdv.size()
165 <<
" GeomDetType subdetector: " << det
167 <<
" big pix per ROC x: " << BIG_PIX_PER_ROC_X <<
" y: " << BIG_PIX_PER_ROC_Y;
171 for (
auto const&
i : gdv) {
174 std::unique_ptr<const Bounds>
bounds(
i->bounds());
176 (
int)
i->pixROCRows(),
177 (
int)
i->pixROCCols(),
191 tracker->addDetUnitId(
i->geographicalId());
200 LogDebug(
"BuildingGeomDetUnits") <<
" Phase2 Pixel type. Size of vector: " << gdv.size()
201 <<
" GeomDetType subdetector: " << det
206 for (
auto const&
i : gdv) {
209 std::unique_ptr<const Bounds>
bounds(
i->bounds());
210 int BIG_PIX_PER_ROC_X =
i->bigPixelsx();
211 int BIG_PIX_PER_ROC_Y =
i->bigPixelsy();
212 float BIG_PIX_PITCH_X =
i->bigPixelsPitchx();
213 float BIG_PIX_PITCH_Y =
i->bigPixelsPitchy();
215 (
int)
i->pixROCRows(),
216 (
int)
i->pixROCCols(),
232 tracker->addDetUnitId(
i->geographicalId());
241 LogDebug(
"BuildingGeomDetUnits") <<
" Strip type. Size of vector: " << gdv.size()
242 <<
" GeomDetType subdetector: " << det
248 for (
auto const&
i : gdv) {
251 std::unique_ptr<const Bounds>
bounds(
i->bounds());
263 tracker->addDetUnitId(
i->geographicalId());
270 auto const& gdu =
tracker->detUnits();
271 auto const& gduId =
tracker->detUnitIds();
273 for (u_int32_t
i = 0;
i < gdu.size();
i++) {
276 string gduTypeName = gdu[
i]->type().name();
279 if ((gduTypeName.find(
"Ster") != std::string::npos || gduTypeName.find(
"Lower") != std::string::npos ||
280 gduTypeName.find(
"One") != std::string::npos) &&
282 int partner_pos = -1;
283 for (u_int32_t
jj = 0;
jj < gduId.size();
jj++) {
289 if (partner_pos == -1) {
290 throw cms::Exception(
"Configuration") <<
"Module Type is Stereo or Lower but no partner detector found \n" 291 <<
"There is a problem on Tracker geometry configuration\n";
296 std::vector<const GeomDetUnit*> composed(2);
300 if (gduTypeName.find(
"Ster") != std::string::npos) {
305 tracker->addDetId(composedDetId);
307 }
else if (gduTypeName.find(
"Lower") != std::string::npos) {
313 tracker->addDetId(composedDetId);
void buildPixel(std::vector< const GeometricDet *> const &, const PTrackerAdditionalParametersPerDet *const &, TrackerGeometry *, GeomDetType::SubDetector det, int BIG_PIX_PER_ROC_X, int BIG_PIX_PER_ROC_Y)
PlaneBuilderFromGeometricDet::ResultType buildPlaneWithMaterial(const GeometricDet *gd, double scaleFactor=1.) const
void buildPixelPhase2(std::vector< const GeometricDet *> const &, const PTrackerAdditionalParametersPerDet *const &, TrackerGeometry *, GeomDetType::SubDetector det)
constexpr SubDetector subDetGeom[21]
void buildGeomDet(TrackerGeometry *)
TrackerGeometry * build(const GeometricDet *gd, const PTrackerAdditionalParametersPerDet *ptitp, const PTrackerParameters &ptp, const TrackerTopology *tTopo)
std::map< std::string, const PixelGeomDetType * > thePixelDetTypeMap
unsigned int offsetDU(SubDetector sid) const
std::map< std::string, const StripGeomDetType * > theStripDetTypeMap
ResultType plane(const GeometricDet *gd) const
const DetContainer & detUnits() const override
Returm a vector of all GeomDet.
ConstGeometricDetContainer & components()
uint32_t doubleSensor(const DetId &id) const
ResultType plane(const std::vector< const GeomDetUnit *> &dets) const
PixelTopology * build(const Bounds *bounds, 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)
PixelTopology * build(const Bounds *bounds, int ROWS_PER_ROC, int COLS_PER_ROC, int BIG_PIX_PER_ROC_X, int BIG_PIX_PER_ROC_Y, float BIG_PIX_PITCH_X, float BIG_PIX_PITCH_Y, int ROCS_X, int ROCS_Y)
uint32_t stack(const DetId &id) const
unsigned int endsetDU(SubDetector sid) const
DetId partnerDetId(const DetId &id) const
std::vector< GeometricDet const * > ConstGeometricDetContainer
uint32_t glued(const DetId &id) const
const Plane & surface() const
The nominal surface of the GeomDet.
ConstGeometricDetContainer deepComponents() const
void buildSilicon(std::vector< const GeometricDet *> const &, TrackerGeometry *, GeomDetType::SubDetector det, const std::string &part)
const TrackerTopology * theTopo
constexpr SubDetector tkDetEnum[8]
StripTopology * build(const Bounds *, double, const std::string &)