32 #include <unordered_set> 108 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Creating an instance";
117 waferTypes_ =
static_cast<int>(nArgs[
"WaferTypes"]);
118 passiveTypes_ =
static_cast<int>(nArgs[
"PassiveTypes"]);
119 facingTypes_ =
static_cast<int>(nArgs[
"FacingTypes"]);
120 orientationTypes_ =
static_cast<int>(nArgs[
"OrientationTypes"]);
121 partialTypes_ =
static_cast<int>(nArgs[
"PartialTypes"]);
122 placeOffset_ =
static_cast<int>(nArgs[
"PlaceOffset"]);
124 edm::LogVerbatim(
"HGCalGeom") <<
"Number of types of wafers: " << waferTypes_ <<
" passives: " << passiveTypes_
125 <<
" facings: " << facingTypes_ <<
" Orientations: " << orientationTypes_
126 <<
" PartialTypes: " << partialTypes_ <<
" PlaceOffset: " << placeOffset_;
128 firstLayer_ =
static_cast<int>(nArgs[
"FirstLayer"]);
129 absorbMode_ =
static_cast<int>(nArgs[
"AbsorberMode"]);
130 sensitiveMode_ =
static_cast<int>(nArgs[
"SensitiveMode"]);
131 passiveMode_ =
static_cast<int>(nArgs[
"PassiveMode"]);
134 <<
"Absober:Sensitive mode " << absorbMode_ <<
":" << sensitiveMode_ <<
":" 137 zMinBlock_ = nArgs[
"zMinBlock"];
138 waferSize_ = nArgs[
"waferSize"];
139 waferSepar_ = nArgs[
"SensorSeparation"];
140 sectors_ =
static_cast<int>(nArgs[
"Sectors"]);
141 cassettes_ =
static_cast<int>(nArgs[
"Cassettes"]);
142 alpha_ = (1._pi) / sectors_;
143 cosAlpha_ =
cos(alpha_);
144 rotstr_ = sArgs[
"LayerRotation"];
146 edm::LogVerbatim(
"HGCalGeom") <<
"zStart " << zMinBlock_ <<
" wafer width " << waferSize_ <<
" separations " 147 << waferSepar_ <<
" sectors " << sectors_ <<
":" <<
convertRadToDeg(alpha_) <<
":" 148 << cosAlpha_ <<
" rotation matrix " << rotstr_ <<
" with " << cassettes_
151 waferFull_ = vsArgs[
"WaferNamesFull"];
152 waferPart_ = vsArgs[
"WaferNamesPartial"];
154 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << waferFull_.size() <<
" full and " 155 << waferPart_.size() <<
" partial modules";
156 unsigned int i1max =
static_cast<unsigned int>(waferFull_.size());
157 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
158 std::ostringstream st1;
160 for (
unsigned int i =
i1;
i <
i2; ++
i)
161 st1 <<
" [" <<
i <<
"] " << waferFull_[
i];
164 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Partial Modules:";
165 i1max =
static_cast<unsigned int>(waferPart_.size());
166 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
167 std::ostringstream st1;
169 for (
unsigned int i =
i1;
i <
i2; ++
i)
170 st1 <<
" [" <<
i <<
"] " << waferPart_[
i];
174 passiveFull_ = vsArgs[
"PassiveNamesFull"];
175 passivePart_ = vsArgs[
"PassiveNamesPartial"];
177 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << passiveFull_.size() <<
" full and " 178 << passivePart_.size() <<
" partial passive modules";
179 i1max =
static_cast<unsigned int>(passiveFull_.size());
180 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
181 std::ostringstream st1;
183 for (
unsigned int i =
i1;
i <
i2; ++
i)
184 st1 <<
" [" <<
i <<
"] " << passiveFull_[
i];
187 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Partial Modules:";
188 i1max =
static_cast<unsigned int>(passivePart_.size());
189 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
190 std::ostringstream st1;
192 for (
unsigned int i =
i1;
i <
i2; ++
i)
193 st1 <<
" [" <<
i <<
"] " << passivePart_[
i];
197 materials_ = vsArgs[
"MaterialNames"];
198 names_ = vsArgs[
"VolumeNames"];
199 thick_ = vArgs[
"Thickness"];
200 copyNumber_.resize(materials_.size(), 1);
202 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << materials_.size() <<
" types of volumes";
203 for (
unsigned int i = 0;
i < names_.size(); ++
i)
204 edm::LogVerbatim(
"HGCalGeom") <<
"Volume [" <<
i <<
"] " << names_[
i] <<
" of thickness " << thick_[
i]
205 <<
" filled with " << materials_[
i] <<
" first copy number " << copyNumber_[
i];
208 layerThick_ = vArgs[
"LayerThick"];
210 edm::LogVerbatim(
"HGCalGeom") <<
"There are " << layers_.size() <<
" blocks";
211 for (
unsigned int i = 0;
i < layers_.size(); ++
i)
212 edm::LogVerbatim(
"HGCalGeom") <<
"Block [" <<
i <<
"] of thickness " << layerThick_[
i] <<
" with " << layers_[
i]
216 layerSense_ =
dbl_to_int(vArgs[
"LayerSense"]);
217 layerOrient_ =
dbl_to_int(vArgs[
"LayerTypes"]);
218 for (
unsigned int k = 0;
k < layerOrient_.size(); ++
k)
221 for (
unsigned int i = 0;
i < layerOrient_.size(); ++
i)
224 if (firstLayer_ > 0) {
225 for (
unsigned int i = 0;
i < layerType_.size(); ++
i) {
226 if (layerSense_[
i] > 0) {
227 int ii = layerType_[
i];
228 copyNumber_[
ii] = (layerSense_[
i] == 1) ? firstLayer_ : (firstLayer_ + 1);
230 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with " 231 << materials_[
ii] <<
" changed to " << copyNumber_[
ii];
239 edm::LogVerbatim(
"HGCalGeom") <<
"There are " << layerType_.size() <<
" layers";
240 for (
unsigned int i = 0;
i < layerType_.size(); ++
i)
241 edm::LogVerbatim(
"HGCalGeom") <<
"Layer [" <<
i <<
"] with material type " << layerType_[
i] <<
" sensitive class " 244 slopeB_ = vArgs[
"SlopeBottom"];
245 zFrontB_ = vArgs[
"ZFrontBottom"];
246 rMinFront_ = vArgs[
"RMinFront"];
247 slopeT_ = vArgs[
"SlopeTop"];
248 zFrontT_ = vArgs[
"ZFrontTop"];
249 rMaxFront_ = vArgs[
"RMaxFront"];
251 for (
unsigned int i = 0;
i < slopeB_.size(); ++
i)
252 edm::LogVerbatim(
"HGCalGeom") <<
"Bottom Block [" <<
i <<
"] Zmin " << zFrontB_[
i] <<
" Rmin " << rMinFront_[
i]
253 <<
" Slope " << slopeB_[
i];
254 for (
unsigned int i = 0;
i < slopeT_.size(); ++
i)
255 edm::LogVerbatim(
"HGCalGeom") <<
"Top Block [" <<
i <<
"] Zmin " << zFrontT_[
i] <<
" Rmax " << rMaxFront_[
i]
256 <<
" Slope " << slopeT_[
i];
258 waferIndex_ =
dbl_to_int(vArgs[
"WaferIndex"]);
259 waferProperty_ =
dbl_to_int(vArgs[
"WaferProperties"]);
260 waferLayerStart_ =
dbl_to_int(vArgs[
"WaferLayerStart"]);
261 cassetteShift_ = vArgs[
"CassetteShift"];
263 edm::LogVerbatim(
"HGCalGeom") <<
"waferProperties with " << waferIndex_.size() <<
" entries in " 264 << waferLayerStart_.size() <<
" layers";
265 for (
unsigned int k = 0;
k < waferLayerStart_.size(); ++
k)
267 for (
unsigned int k = 0;
k < waferIndex_.size(); ++
k)
275 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << cassetteShift_.size()
276 <<
" elements for cassette shifts";
277 unsigned int j1max = cassetteShift_.size();
278 for (
unsigned int j1 = 0; j1 < j1max; j1 += 6) {
279 std::ostringstream st1;
280 unsigned int j2 =
std::min((j1 + 6), j1max);
281 for (
unsigned int j = j1;
j < j2; ++
j)
282 st1 <<
" [" <<
j <<
"] " << std::setw(9) << cassetteShift_[
j];
288 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: NameSpace " << nameSpace_ <<
":";
290 cassette_.setParameter(cassettes_, cassetteShift_);
299 edm::LogVerbatim(
"HGCalGeom") <<
"==>> Constructing DDHGCalSiliconRotatedCassette...";
304 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << copies_.size()
305 <<
" different wafer copy numbers";
307 for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++
k) {
311 edm::LogVerbatim(
"HGCalGeom") <<
"<<== End of DDHGCalSiliconRotatedCassette construction...";
316 double zi(zMinBlock_);
318 for (
unsigned int i = 0;
i < layers_.size();
i++) {
319 double zo = zi + layerThick_[
i];
321 int laymax = laymin + layers_[
i];
324 for (
int ly = laymin; ly < laymax; ++ly) {
325 int ii = layerType_[ly];
326 int copy = copyNumber_[
ii];
327 double hthick = 0.5 * thick_[
ii];
330 thickTot += thick_[
ii];
334 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Layer " << ly <<
":" <<
ii <<
" Front " << zi
335 <<
", " << routF <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " 341 if (layerSense_[ly] == 0) {
342 std::vector<double> pgonZ, pgonRin, pgonRout;
343 double rmax = routF * cosAlpha_ - tol1_;
356 for (
unsigned int isec = 0;
isec < pgonZ.size(); ++
isec) {
358 if (layerSense_[ly] == 0 || absorbMode_ == 0)
359 pgonRout[
isec] = rmax;
361 pgonRout[
isec] = pgonRout[
isec] * cosAlpha_ - tol1_;
367 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << solid.
name() <<
" polyhedra of " 370 <<
" sections and filled with " << matName;
371 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
372 edm::LogVerbatim(
"HGCalGeom") <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" << pgonRout[
k];
375 int mode = (layerSense_[ly] > 0) ? sensitiveMode_ : absorbMode_;
381 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << solid.
name() <<
" Tubs made of " 382 << matName <<
" of dimensions " << rinB <<
":" << rins <<
", " << routF <<
":" 383 << routs <<
", " << hthick <<
", 0.0, 360.0 and position " << glog.
name()
384 <<
" number " <<
copy <<
":" << layerOrient_[
copy - firstLayer_] <<
" Z " <<
zz;
386 if (layerSense_[ly] > 0) {
387 positionSensitive(glog, (
copy - firstLayer_), cpv);
388 }
else if (passiveMode_ > 0) {
389 positionPassive2(glog, (
copy - firstLayer_), -layerSense_[ly], cpv);
391 positionPassive(glog, (
copy - firstLayer_), -layerSense_[ly], cpv);
406 int inc = ((layerSense_[ly] > 0) && (facingTypes_ > 1)) ? 2 : 1;
407 copyNumber_[
ii] =
copy + inc;
410 <<
" positioned in " <<
module.name() <<
" at " << r1 <<
" with " <<
rotName 418 if (
std::abs(thickTot - layerThick_[
i]) >= tol2_) {
419 if (thickTot > layerThick_[
i]) {
420 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << layerThick_[
i] <<
" is smaller than " << thickTot
421 <<
": thickness of all its components **** ERROR ****";
423 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << layerThick_[
i] <<
" does not match with " 424 << thickTot <<
" of the components";
432 static const double sqrt3 =
std::sqrt(3.0);
433 int layercenter = layerOrient_[layer];
435 int firstWafer = waferLayerStart_[layer];
436 int lastWafer = ((layer + 1 <
static_cast<int>(waferLayerStart_.size())) ? waferLayerStart_[layer + 1]
437 :
static_cast<int>(waferIndex_.size()));
438 double delx = 0.5 * (waferSize_ + waferSepar_);
439 double dely = 2.0 * delx / sqrt3;
440 double dy = 0.75 * dely;
441 const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
443 int ium(0), ivm(0), kount(0);
444 std::vector<int> ntype(3, 0);
445 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: PositionSensitive layer " << layer <<
" r " << delx
446 <<
" R " << dely <<
" dy " <<
dy <<
" Shift " << xyoff.first <<
":" << xyoff.second
447 <<
" WaferSize " << (waferSize_ + waferSepar_) <<
" index " << firstWafer <<
":" 448 << (lastWafer - 1) <<
" Layer Center " << layercenter <<
":" << layertype;
449 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << glog.
ddname() <<
" r " << delx <<
" R " << dely
450 <<
" dy " <<
dy <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize " 451 << (waferSize_ + waferSepar_) <<
" index " << firstWafer <<
":" << (lastWafer - 1)
452 <<
" Layer Center " << layercenter <<
":" << layertype;
454 for (
int k = firstWafer;
k < lastWafer; ++
k) {
468 auto cshift = cassette_.getShift(layer + 1, -1, cassette);
469 double xpos = xyoff.first - cshift.first + nc * delx;
470 double ypos = xyoff.second + cshift.second +
nr *
dy;
472 double xorig = xyoff.first + nc * delx;
473 double yorig = xyoff.second +
nr *
dy;
474 double angle = std::atan2(yorig, xorig);
475 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette::Wafer: layer " << layer + 1 <<
" cassette " 476 << cassette <<
" Shift " << cshift.first <<
":" << cshift.second <<
" Original " 478 << ypos <<
" u|v " << u <<
":" <<
v <<
" type|part|orient|place " <<
type <<
":" 479 <<
part <<
":" << orien <<
":" << place;
484 i =
type * facingTypes_ * orientationTypes_ + place - placeOffset_;
485 edm::LogVerbatim(
"HGCalGeom") <<
"facitype " << facingTypes_ <<
":" << orientationTypes_ <<
":" << placeOffset_
486 <<
" i " <<
i <<
":" << waferFull_.size();
488 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:type:part:orien:cassette:place:offsets:ind " << layertype <<
":" 489 <<
type <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" << place <<
":" 490 << placeOffset_ <<
":" << facingTypes_ <<
":" << orientationTypes_ <<
" wafer " <<
i 491 <<
":" << waferFull_.size();
493 wafer = waferFull_[
i];
496 i = (
part - partoffset) * facingTypes_ * orientationTypes_ +
499 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:type:part:orien:cassette:place:offsets:ind " << layertype <<
":" 500 <<
type <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" << place <<
":" 502 << waferPart_.size();
504 wafer = waferPart_[
i];
510 <<
copy <<
" type:part:orien:place:ind " <<
type <<
":" <<
part <<
":" << orien <<
":" 511 << place <<
":" <<
i <<
" layer:u:v:indx " << (layer + firstLayer_) <<
":" << u <<
":" 512 <<
v <<
" pos " << xpos <<
":" << ypos;
518 if (copies_.count(
copy) == 0)
519 copies_.insert(
copy);
528 << layertype <<
":" <<
type <<
" positioned in " << glog.
ddname() <<
" at " << tran
529 <<
" with no rotation";
533 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Maximum # of u " << ium <<
" # of v " << ivm
534 <<
" and " << kount <<
" passives (" << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2]
535 <<
") for " << glog.
ddname();
545 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: positionPassive is called";
547 static const double sqrt3 =
std::sqrt(3.0);
548 int layercenter = layerOrient_[layer];
550 int firstWafer = waferLayerStart_[layer];
551 int lastWafer = ((layer + 1 <
static_cast<int>(waferLayerStart_.size())) ? waferLayerStart_[layer + 1]
552 :
static_cast<int>(waferIndex_.size()));
553 double delx = 0.5 * (waferSize_ + waferSepar_);
554 double dely = 2.0 * delx / sqrt3;
555 double dy = 0.75 * dely;
556 const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
558 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: PositionPassive Layer " << layer <<
" LayerCenter " 559 << layercenter <<
":" << layertype <<
" r " << delx <<
" R " << dely <<
" dy " <<
dy 560 <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize " 561 << (waferSize_ + waferSepar_) <<
" index " << firstWafer <<
":" << (lastWafer - 1);
562 int ium(0), ivm(0), kount(0);
563 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << glog.
ddname() <<
" r " << delx <<
" R " << dely
564 <<
" dy " <<
dy <<
" Shift " << xyoff.first <<
":" << xyoff.second <<
" WaferSize " 565 << (waferSize_ + waferSepar_) <<
" index " << firstWafer <<
":" << (lastWafer - 1)
566 <<
" Layer Center " << layercenter <<
":" << layertype;
568 for (
int k = firstWafer;
k < lastWafer; ++
k) {
581 auto cshift = cassette_.getShift(layer + 1, -1, cassette);
582 double xpos = xyoff.first - cshift.first + nc * delx;
583 double ypos = xyoff.second + cshift.second +
nr *
dy;
585 double xorig = xyoff.first + nc * delx;
586 double yorig = xyoff.second +
nr *
dy;
587 double angle = std::atan2(yorig, xorig);
589 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette::Passive: layer " << layer + 1 <<
" cassette " 590 << cassette <<
" Shift " << cshift.first <<
":" << cshift.second <<
" Original " 592 << ypos <<
" u|v " << u <<
":" <<
v <<
" type|part|orient" <<
type <<
":" <<
part 599 passive = passiveFull_[
i];
601 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:abstype:part:orien:cassette:offsets:ind " << layertype <<
":" 602 << absType <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" 603 <<
":" << partialTypes_ <<
":" << orientationTypes_ <<
" passive " <<
i <<
":" 610 i = (
part - partoffset) * facingTypes_ * orientationTypes_ +
611 (absType - 1) * facingTypes_ * orientationTypes_ * partialTypes_ + place - placeOffset_;
613 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:abstype:part:orien:cassette:3Types:offset:ind " << layertype <<
":" 614 << absType <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" << partialTypes_
615 <<
":" << facingTypes_ <<
":" << orientationTypes_ <<
":" << partoffset <<
":" <<
i 616 <<
":" << passivePart_.size();
618 passive = passivePart_[
i];
624 <<
copy <<
" type:part:orien:place:ind " <<
type <<
":" <<
part <<
":" << orien <<
":" 625 << place <<
":" <<
i <<
" layer:u:v:indx " << (layer + firstLayer_) <<
":" << u <<
":" 626 <<
v <<
" pos " << xpos <<
":" << ypos;
639 << layertype <<
":" <<
type <<
" positioned in " << glog.
ddname() <<
" at " << tran
640 <<
" with no rotation";
644 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Maximum # of u " << ium <<
" # of v " << ivm
645 <<
" and " << kount <<
" passives for " << glog.
ddname();
655 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: positionPassive2 is called";
658 for (
int k = 0;
k < cassettes_; ++
k) {
659 int cassette =
k + 1;
660 auto cshift = cassette_.getShift(layer + 1, -1, cassette);
661 double xpos = -cshift.first;
662 double ypos = cshift.second;
663 int i = layer * cassettes_ +
k;
665 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette::Passive2: layer " << layer + 1 <<
" cassette " 666 << cassette <<
" Shift " << cshift.first <<
":" << cshift.second <<
" PassiveIndex " 667 <<
i <<
":" << passiveFull_.size() <<
":" << passivePart_.size();
669 std::string passive = (absType <= waferTypes_) ? passiveFull_[
i] : passivePart_[
i];
671 edm::LogVerbatim(
"HGCalGeom") <<
" DDHGCalSiliconRotatedCassette: Passive2 " << passive <<
" number " << cassette
672 <<
" pos " << xpos <<
":" << ypos;
680 edm::LogVerbatim(
"HGCalGeom") <<
" DDHGCalSiliconRotatedCassette: " <<
name <<
" number " << cassette
681 <<
" positioned in " << glog.
ddname() <<
" at " << tran <<
" with no rotation";
685 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << kount <<
" passives of type " << absType
686 <<
" for " << glog.
ddname();
Log< level::Info, true > LogVerbatim
static AlgebraicMatrix initialize()
static int32_t cellPlacementIndex(int32_t iz, int32_t frontBack, int32_t orient)
std::vector< int > waferIndex_
void constructLayers(const DDLogicalPart &, DDCompactView &cpv)
static constexpr int32_t WaferPartLDOffset
std::vector< std::string > passivePart_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
static constexpr int32_t WaferTypeOffset[3]
std::vector< int > layerType_
DDMaterial is used to define and access material information.
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
std::unordered_set< int > copies_
constexpr NumType convertRadToDeg(NumType radians)
std::vector< double > thick_
std::vector< double > layerThick_
std::vector< int > waferProperty_
std::vector< double > rMinFront_
DDName is used to identify DDD entities uniquely.
std::vector< double > slopeB_
static std::string & ns()
Log< level::Error, false > LogError
Compact representation of the geometrical detector hierarchy.
std::vector< std::string > materials_
DDHGCalSiliconRotatedCassette()
int32_t waferOrient(const int32_t property)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
A DDSolid represents the shape of a part.
static std::string to_string(const XMLCh *ch)
Represents a uniquely identifyable rotation matrix.
static const std::string & rotName(const T &rot, const cms::DDParsingContext &context)
U second(std::pair< T, U > const &p)
int32_t waferCassette(const int32_t property)
static constexpr int32_t WaferFull
void positionSensitive(const DDLogicalPart &glog, int layer, DDCompactView &cpv)
std::vector< std::string > passiveFull_
Cos< T >::type cos(const T &t)
void positionPassive2(const DDLogicalPart &glog, int layer, int passiveType, DDCompactView &cpv)
void execute(DDCompactView &cpv) override
Abs< T >::type abs(const T &t)
void constructLayers(const cms::DDNamespace &ns, const std::vector< std::string > &wafers, const std::vector< std::string > &covers, const std::vector< int > &layerType, const std::vector< int > &layerSense, const std::vector< int > &maxModule, const std::vector< std::string > &names, const std::vector< std::string > &materials, std::vector< int > ©Number, const std::vector< double > &layerThick, const double &absorbW, const double &absorbH, const double &waferTot, const double &rMax, const double &rMaxFine, std::unordered_set< int > &copies, int firstLayer, int lastLayer, double zFront, double totalWidth, bool ignoreCenter, dd4hep::Volume &module)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::vector< double > zFrontT_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
int32_t waferThick(const int32_t property)
std::vector< double > slopeT_
std::vector< std::string > waferFull_
std::vector< double > rMaxFront_
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::vector< double > cassetteShift_
std::vector< int > copyNumber_
static constexpr int32_t WaferPartHDOffset
static constexpr int32_t WaferCenterR
std::vector< int > layerSense_
std::vector< int > waferLayerStart_
std::vector< std::string > waferPart_
std::vector< std::string > names_
int32_t waferPartial(const int32_t property)
HGCalGeomTools geomTools_
int32_t waferV(const int32_t index)
static int32_t packTypeUV(int type, int u, int v)
static constexpr int32_t WaferHDTop
#define DEFINE_EDM_PLUGIN(factory, type, name)
Log< level::Warning, false > LogWarning
static int32_t layerType(int type)
static constexpr int32_t WaferCenterB
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > zFrontB_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)
std::vector< int > layerOrient_
void positionPassive(const DDLogicalPart &glog, int layer, int passiveType, DDCompactView &cpv)
std::vector< int > layers_
T angle(T x1, T y1, T z1, T x2, T y2, T z2)