9 #include <unordered_set> 21 #include "DD4hep/DetFactoryHelper.h" 37 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Creating an instance";
40 static constexpr
double tol1 = 0.01 * dd4hep::mm;
43 waferTypes_ =
args.value<
int>(
"WaferTypes");
44 passiveTypes_ =
args.value<
int>(
"PassiveTypes");
45 facingTypes_ =
args.value<
int>(
"FacingTypes");
46 orientationTypes_ =
args.value<
int>(
"OrientationTypes");
47 partialTypes_ =
args.value<
int>(
"PartialTypes");
48 placeOffset_ =
args.value<
int>(
"PlaceOffset");
49 phiBinsScint_ =
args.value<
int>(
"NPhiBinScint");
50 forFireworks_ =
args.value<
int>(
"ForFireWorks");
52 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette::Number of types of wafers: " << waferTypes_
53 <<
" passives: " << passiveTypes_ <<
" facings: " << facingTypes_
54 <<
" Orientations: " << orientationTypes_ <<
" PartialTypes: " << partialTypes_
55 <<
" PlaceOffset: " << placeOffset_ <<
"; number of cells along phi " << phiBinsScint_
56 <<
" forFireworks_: " << forFireworks_;
58 firstLayer_ =
args.value<
int>(
"FirstLayer");
59 absorbMode_ =
args.value<
int>(
"AbsorberMode");
60 sensitiveMode_ =
args.value<
int>(
"SensitiveMode");
62 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette::First Layer " << firstLayer_ <<
" and " 63 <<
"Absober:Sensitive mode " << absorbMode_ <<
":" << sensitiveMode_;
65 zMinBlock_ =
args.value<
double>(
"zMinBlock");
66 waferSize_ =
args.value<
double>(
"waferSize");
67 waferSepar_ =
args.value<
double>(
"SensorSeparation");
68 sectors_ =
args.value<
int>(
"Sectors");
69 cassettes_ =
args.value<
int>(
"Cassettes");
70 alpha_ = (1._pi) / sectors_;
71 cosAlpha_ =
cos(alpha_);
76 <<
convertRadToDeg(alpha_) <<
":" << cosAlpha_ <<
" with " << cassettes_
79 slopeB_ =
args.value<std::vector<double>>(
"SlopeBottom");
80 zFrontB_ =
args.value<std::vector<double>>(
"ZFrontBottom");
81 rMinFront_ =
args.value<std::vector<double>>(
"RMinFront");
82 slopeT_ =
args.value<std::vector<double>>(
"SlopeTop");
83 zFrontT_ =
args.value<std::vector<double>>(
"ZFrontTop");
84 rMaxFront_ =
args.value<std::vector<double>>(
"RMaxFront");
86 for (
unsigned int i = 0;
i < slopeB_.size(); ++
i)
89 for (
unsigned int i = 0;
i < slopeT_.size(); ++
i)
94 waferFull_ =
args.value<std::vector<std::string>>(
"WaferNamesFull");
95 waferPart_ =
args.value<std::vector<std::string>>(
"WaferNamesPartial");
97 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << waferFull_.size() <<
" full and " 98 << waferPart_.size() <<
" partial modules\nDDHGCalMixRotatedCassette:Full Modules:";
99 unsigned int i1max =
static_cast<unsigned int>(waferFull_.size());
100 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
101 std::ostringstream st1;
103 for (
unsigned int i =
i1;
i <
i2; ++
i)
104 st1 <<
" [" <<
i <<
"] " << waferFull_[
i];
107 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Partial Modules:";
108 i1max =
static_cast<unsigned int>(waferPart_.size());
109 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
110 std::ostringstream st1;
112 for (
unsigned int i =
i1;
i <
i2; ++
i)
113 st1 <<
" [" <<
i <<
"] " << waferPart_[
i];
117 passiveFull_ =
args.value<std::vector<std::string>>(
"PassiveNamesFull");
118 passivePart_ =
args.value<std::vector<std::string>>(
"PassiveNamesPartial");
120 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: " << passiveFull_.size() <<
" full and " 121 << passivePart_.size() <<
" partial passive modules";
122 i1max =
static_cast<unsigned int>(passiveFull_.size());
123 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
124 std::ostringstream st1;
126 for (
unsigned int i =
i1;
i <
i2; ++
i)
127 st1 <<
" [" <<
i <<
"] " << passiveFull_[
i];
130 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalSiliconRotatedCassette: Partial Modules:";
131 i1max =
static_cast<unsigned int>(passivePart_.size());
132 for (
unsigned int i1 = 0;
i1 < i1max;
i1 += 2) {
133 std::ostringstream st1;
135 for (
unsigned int i =
i1;
i <
i2; ++
i)
136 st1 <<
" [" <<
i <<
"] " << passivePart_[
i];
141 materials_ =
args.value<std::vector<std::string>>(
"MaterialNames");
142 names_ =
args.value<std::vector<std::string>>(
"VolumeNames");
143 thick_ =
args.value<std::vector<double>>(
"Thickness");
144 copyNumber_.resize(materials_.size(), 1);
146 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << materials_.size() <<
" types of volumes";
147 for (
unsigned int i = 0;
i < names_.size(); ++
i)
148 edm::LogVerbatim(
"HGCalGeom") <<
"Volume [" <<
i <<
"] " << names_[
i] <<
" of thickness " 150 <<
" first copy number " << copyNumber_[
i];
152 layers_ =
args.value<std::vector<int>>(
"Layers");
153 layerThick_ =
args.value<std::vector<double>>(
"LayerThick");
155 edm::LogVerbatim(
"HGCalGeom") <<
"There are " << layers_.size() <<
" blocks";
156 for (
unsigned int i = 0;
i < layers_.size(); ++
i)
158 <<
" with " << layers_[
i] <<
" layers";
160 layerType_ =
args.value<std::vector<int>>(
"LayerType");
161 layerSense_ =
args.value<std::vector<int>>(
"LayerSense");
162 layerOrient_ =
args.value<std::vector<int>>(
"LayerTypes");
163 for (
unsigned int k = 0;
k < layerOrient_.size(); ++
k)
166 for (
unsigned int i = 0;
i < layerOrient_.size(); ++
i)
169 if (firstLayer_ > 0) {
170 for (
unsigned int i = 0;
i < layerType_.size(); ++
i) {
171 if (layerSense_[
i] != 0) {
172 int ii = layerType_[
i];
173 copyNumber_[
ii] = firstLayer_;
175 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with " 176 << materials_[
ii] <<
" changed to " << copyNumber_[
ii];
184 edm::LogVerbatim(
"HGCalGeom") <<
"There are " << layerType_.size() <<
" layers";
185 for (
unsigned int i = 0;
i < layerType_.size(); ++
i)
186 edm::LogVerbatim(
"HGCalGeom") <<
"Layer [" <<
i <<
"] with material type " << layerType_[
i] <<
" sensitive class " 189 materialTop_ =
args.value<std::vector<std::string>>(
"TopMaterialNames");
190 namesTop_ =
args.value<std::vector<std::string>>(
"TopVolumeNames");
191 layerThickTop_ =
args.value<std::vector<double>>(
"TopLayerThickness");
192 layerTypeTop_ =
args.value<std::vector<int>>(
"TopLayerType");
193 copyNumberTop_.resize(materialTop_.size(), firstLayer_);
194 coverTypeTop_ =
args.value<
int>(
"TopCoverLayerType");
195 copyNumberCoverTop_ = firstLayer_;
197 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << materialTop_.size()
198 <<
" types of volumes in the top part; cover Type " << coverTypeTop_
199 <<
" with initial copy number " << copyNumberCoverTop_;
200 for (
unsigned int i = 0;
i < materialTop_.size(); ++
i)
201 edm::LogVerbatim(
"HGCalGeom") <<
"Volume [" <<
i <<
"] " << namesTop_[
i] <<
" of thickness " 203 <<
" first copy number " << copyNumberTop_[
i];
204 edm::LogVerbatim(
"HGCalGeom") <<
"There are " << layerTypeTop_.size() <<
" layers in the top part";
205 for (
unsigned int i = 0;
i < layerTypeTop_.size(); ++
i)
206 edm::LogVerbatim(
"HGCalGeom") <<
"Layer [" <<
i <<
"] with material type " << layerTypeTop_[
i];
208 waferIndex_ =
args.value<std::vector<int>>(
"WaferIndex");
209 waferProperty_ =
args.value<std::vector<int>>(
"WaferProperties");
210 waferLayerStart_ =
args.value<std::vector<int>>(
"WaferLayerStart");
211 cassetteShift_ =
args.value<std::vector<double>>(
"CassetteShift");
213 edm::LogVerbatim(
"HGCalGeom") <<
"waferProperties with " << waferIndex_.size() <<
" entries in " 214 << waferLayerStart_.size() <<
" layers";
215 for (
unsigned int k = 0;
k < waferLayerStart_.size(); ++
k)
217 for (
unsigned int k = 0;
k < waferIndex_.size(); ++
k)
225 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << cassetteShift_.size()
226 <<
" elements for cassette shifts";
227 unsigned int j1max = cassetteShift_.size();
228 for (
unsigned int j1 = 0; j1 < j1max; j1 += 6) {
229 std::ostringstream st1;
230 unsigned int j2 =
std::min((j1 + 6), j1max);
231 for (
unsigned int j = j1;
j < j2; ++
j)
232 st1 <<
" [" <<
j <<
"] " << std::setw(9) << cassetteShift_[
j];
236 tileRMin_ =
args.value<std::vector<double>>(
"TileRMin");
237 tileRMax_ =
args.value<std::vector<double>>(
"TileRMax");
238 tileIndex_ =
args.value<std::vector<int>>(
"TileLayerRings");
239 tilePhis_ =
args.value<std::vector<int>>(
"TilePhiRange");
240 tileLayerStart_ =
args.value<std::vector<int>>(
"TileLayerStart");
242 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette:: with " << tileRMin_.size() <<
" rings";
243 for (
unsigned int k = 0;
k < tileRMin_.size(); ++
k)
246 edm::LogVerbatim(
"HGCalGeom") <<
"TileProperties with " << tileIndex_.size() <<
" entries in " 247 << tileLayerStart_.size() <<
" layers";
248 for (
unsigned int k = 0;
k < tileLayerStart_.size(); ++
k)
250 for (
unsigned int k = 0;
k < tileIndex_.size(); ++
k)
258 cassette_.setParameter(cassettes_, cassetteShift_);
263 edm::LogVerbatim(
"HGCalGeom") <<
"==>> Constructing DDHGCalMixRotatedCassette...";
267 double zi(zMinBlock_);
269 for (
unsigned int i = 0;
i < layers_.size();
i++) {
270 double zo = zi + layerThick_[
i];
272 int laymax = laymin + layers_[
i];
275 for (
int ly = laymin; ly < laymax; ++ly) {
276 int ii = layerType_[ly];
277 int copy = copyNumber_[
ii];
278 double hthick = 0.5 * thick_[
ii];
281 thickTot += thick_[
ii];
285 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Layer " << ly <<
":" <<
ii <<
" Front " 294 if (layerSense_[ly] == 0) {
295 std::vector<double> pgonZ, pgonRin, pgonRout;
310 for (
unsigned int isec = 0; isec < pgonZ.size(); ++isec) {
312 if (layerSense_[ly] == 0 || absorbMode_ == 0)
313 pgonRout[isec] = rmax;
315 pgonRout[isec] = pgonRout[isec] * cosAlpha_ - tol1;
318 dd4hep::Solid solid =
dd4hep::Polyhedra(sectors_, -alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
323 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << solid.name() <<
" polyhedra of " << sectors_
325 <<
convertRadToDeg(-alpha_ + 2._pi) <<
" with " << pgonZ.size() <<
" sections";
326 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
331 int mode = (layerSense_[ly] > 0) ? sensitiveMode_ : absorbMode_;
334 dd4hep::Solid solid = dd4hep::Tube(rins, routs, hthick, 0.0, 2._pi);
340 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << solid.name() <<
" Tubs made of " 344 <<
", 0.0, 360.0 and positioned in: " << glog.name() <<
" number " <<
copy;
346 positionMix(ctxt,
e, glog,
name,
copy, thick_[
ii], matter, -layerSense_[ly]);
350 mother.placeVolume(glog,
copy, r1);
353 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << glog.name() <<
" number " <<
copy 355 <<
") with no rotation";
361 if (
std::abs(thickTot - layerThick_[
i]) > tol2_) {
362 if (thickTot > layerThick_[
i]) {
365 <<
": thickness of all its components **** ERROR ****";
368 <<
" does not match with " <<
cms::convert2mm(thickTot) <<
" of the components";
374 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << copies_.size() <<
" different wafer copy numbers";
376 for (std::unordered_set<int>::const_iterator itr = copies_.begin(); itr != copies_.end(); ++itr, ++
k) {
380 edm::LogVerbatim(
"HGCalGeom") <<
"<<== End of DDHGCalMixRotatedCassette construction...";
395 for (
unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
396 int ii = layerTypeTop_[ly];
397 copyNumberTop_[
ii] = copyM;
399 double hthick = 0.5 * thick;
400 double dphi = (2._pi) / phiBinsScint_;
401 double thickTot(0), zpos(-hthick);
403 for (
unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
404 int ii = layerTypeTop_[ly];
405 int copy = copyNumberTop_[
ii];
406 int layer =
copy - firstLayer_;
407 double hthickl = 0.5 * layerThickTop_[
ii];
408 thickTot += layerThickTop_[
ii];
412 int firstTile = tileLayerStart_[layer];
413 int lastTile = ((layer + 1 <
static_cast<int>(tileLayerStart_.size())) ? tileLayerStart_[layer + 1]
414 :
static_cast<int>(tileIndex_.size()));
416 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Layer " << ly <<
":" <<
ii <<
" Copy " <<
copy 417 <<
" Tiles " << firstTile <<
":" << lastTile;
419 for (
int ti = firstTile; ti < lastTile; ++ti) {
425 double phi1 = dphi * (fimin - 1);
426 double phi2 = (forFireworks_ == 1) ? (dphi * (fimax - fimin + 1)) : (dphi * fimax);
427 auto cshift = cassette_.getShift(layer + 1, 1, cassette);
430 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Layer " <<
copy <<
":" << (layer + 1) <<
" iR " 434 <<
cms::convert2mm((2.0 * hthickl)) <<
" phi " << fimin <<
":" << fimax <<
":" 436 << cassette <<
":" << cassette0 <<
" Shift " <<
cms::convert2mm(cshift.first)
441 dd4hep::Solid solid = dd4hep::Tube(r1,
r2, hthickl, phi1, phi2);
446 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << glog1.name() <<
" Tubs made of " 452 glog.placeVolume(glog1,
copy, tran);
454 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Position " << glog1.name() <<
" number " <<
copy 455 <<
" in " << glog.name() <<
" at (" <<
cms::convert2mm(cshift.first) <<
", " 457 <<
") with no rotation";
460 ++copyNumberTop_[
ii];
463 if (
std::abs(thickTot - thick) > tol2_) {
464 if (thickTot > thick) {
465 edm::LogError(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Thickness of the partition " 467 <<
": thickness of all its components in the top part **** ERROR ****";
469 edm::LogWarning(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Thickness of the partition " 471 <<
" of the components in top part";
475 int ii = coverTypeTop_;
476 int copy = copyNumberCoverTop_;
477 int layer =
copy - firstLayer_;
478 double hthickl = 0.5 * layerThickTop_[
ii];
482 int firstTile = tileLayerStart_[layer];
483 int lastTile = ((layer + 1 <
static_cast<int>(tileLayerStart_.size())) ? tileLayerStart_[layer + 1]
484 :
static_cast<int>(tileIndex_.size()));
486 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Layer " << layer <<
":" <<
ii <<
" Copy " <<
copy 487 <<
" Tiles " << firstTile <<
":" << lastTile;
489 for (
int ti = firstTile; ti < lastTile; ++ti) {
495 double phi1 = dphi * (fimin - 1);
496 double phi2 = (forFireworks_ == 1) ? (dphi * (fimax - fimin + 1)) : (dphi * fimax);
497 auto cshift = cassette_.getShift(layer + 1, 1, cassette);
500 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Layer " <<
copy <<
":" << (layer + 1) <<
" iR " 504 <<
cms::convert2mm(2.0 * hthickl) <<
" phi " << fimin <<
":" << fimax <<
":" 506 << cassette <<
":" << cassette0 <<
" Shift " <<
cms::convert2mm(cshift.first)
511 dd4hep::Solid solid = dd4hep::Tube(r1,
r2, hthickl, phi1, phi2);
516 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: " << glog1.name() <<
" Tubs made of " 522 glog.placeVolume(glog1,
copy, tran);
524 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Position " << glog1.name() <<
" number " <<
copy 525 <<
" in " << glog.name() <<
" at (" <<
cms::convert2mm(cshift.first) <<
", " 527 <<
") with no rotation";
530 ++copyNumberCoverTop_;
535 int layer = (copyM - firstLayer_);
536 static const double sqrt3 =
std::sqrt(3.0);
537 int layercenter = layerOrient_[layer];
539 int firstWafer = waferLayerStart_[layer];
540 int lastWafer = ((layer + 1 <
static_cast<int>(waferLayerStart_.size())) ? waferLayerStart_[layer + 1]
541 :
static_cast<int>(waferIndex_.size()));
542 double delx = 0.5 * (waferSize_ + waferSepar_);
543 double dely = 2.0 * delx / sqrt3;
544 double dy = 0.75 * dely;
545 const auto& xyoff = geomTools_.shiftXY(layercenter, (waferSize_ + waferSepar_));
547 int ium(0), ivm(0), kount(0);
548 std::vector<int> ntype(3, 0);
552 <<
" WaferSize " <<
cms::convert2mm((waferSize_ + waferSepar_)) <<
" index " 553 << firstWafer <<
":" << (lastWafer - 1) <<
" Copy " << copyM <<
":" << layer;
555 for (
int k = firstWafer;
k < lastWafer; ++
k) {
571 <<
"DDHGCalMixRotatedCassette::index:Property:layertype:type:part:orien:cassette:place:offsets:ind " <<
k 572 <<
":" << waferProperty_[
k] <<
":" << layertype <<
":" <<
type <<
":" <<
part <<
":" << orien <<
":" 573 << cassette <<
":" << place;
575 auto cshift = cassette_.getShift(layer + 1, -1, cassette);
576 double xpos = xyoff.first - cshift.first + nc * delx;
577 double ypos = xyoff.second + cshift.second +
nr *
dy;
579 double xorig = xyoff.first + nc * delx;
580 double yorig = xyoff.second +
nr *
dy;
581 double angle = std::atan2(yorig, xorig);
582 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette::Wafer: layer " << layer + 1 <<
" cassette " 592 i =
type * facingTypes_ * orientationTypes_ + place - placeOffset_;
594 edm::LogVerbatim(
"HGCalGeom") <<
" FullWafer type:place:ind " <<
type <<
":" << place <<
":" <<
i <<
":" 595 << waferFull_.size();
597 wafer = waferFull_[
i];
601 i = (
part - partoffset) * facingTypes_ * orientationTypes_ +
605 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:type:part:orien:cassette:place:offsets:ind " << layertype <<
":" 606 <<
type <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" << place <<
":" 608 << waferPart_.size();
610 wafer = waferPart_[
i];
616 wafer = passiveFull_[
i];
618 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:abstype:part:orien:cassette:offsets:ind " << layertype <<
":" 619 << absType <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" 620 <<
":" << partialTypes_ <<
":" << orientationTypes_ <<
" passive " <<
i <<
":" 627 i = (
part - partoffset) * facingTypes_ * orientationTypes_ +
628 (absType - 1) * facingTypes_ * orientationTypes_ * partialTypes_ + place - placeOffset_;
630 edm::LogVerbatim(
"HGCalGeom") <<
" layertype:abstype:part:orien:cassette:3Types:offset:ind " << layertype
631 <<
":" << absType <<
":" <<
part <<
":" << orien <<
":" << cassette <<
":" 632 << partialTypes_ <<
":" << facingTypes_ <<
":" << orientationTypes_ <<
":" 633 << partoffset <<
":" <<
i <<
":" << passivePart_.size();
635 wafer = passivePart_[
i];
643 <<
copy <<
" type :part:orien:ind " <<
type <<
":" <<
part <<
":" << orien <<
":" 644 <<
i <<
" layer:u:v " << (layer + firstLayer_) <<
":" << u <<
":" <<
v;
650 if (copies_.count(
copy) == 0)
651 copies_.insert(
copy);
654 glog.placeVolume(ns.
volume(wafer),
copy, tran);
657 edm::LogVerbatim(
"HGCalGeom") <<
" DDHGCalMixRotatedCassette: " << wafer <<
" number " <<
copy <<
" type " 658 << layertype <<
":" <<
type <<
" positioned in " << glog.name() <<
" at (" 664 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalMixRotatedCassette: Maximum # of u " << ium <<
" # of v " << ivm <<
" and " 665 << kount <<
" wafers (" << ntype[0] <<
":" << ntype[1] <<
":" << ntype[2] <<
") for " 674 static constexpr
double tol2_ = 0.00001 * dd4hep::mm;
Log< level::Info, true > LogVerbatim
std::vector< double > rMinFront_
static int32_t cellPlacementIndex(int32_t iz, int32_t frontBack, int32_t orient)
std::vector< int > copyNumber_
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
static constexpr int32_t WaferPartLDOffset
std::vector< double > tileRMin_
std::unordered_set< int > copies_
void positionMix(cms::DDParsingContext &ctxt, xml_h e, const dd4hep::Volume &glog, const std::string &nameM, int copyM, double thick, const dd4hep::Material &matter, int absType)
std::vector< int > tileLayerStart_
static constexpr int32_t WaferTypeOffset[3]
std::vector< std::string > namesTop_
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
std::vector< int > tilePhis_
constexpr NumType convertRadToDeg(NumType radians)
constexpr NumType convert2mm(NumType length)
std::vector< std::string > names_
std::vector< std::string > waferPart_
std::vector< double > slopeB_
std::vector< double > layerThickTop_
std::vector< double > tileRMax_
Log< level::Error, false > LogError
dd4hep::Material material(const std::string &name) const
int32_t waferOrient(const int32_t property)
static std::string to_string(const XMLCh *ch)
std::vector< double > thick_
std::vector< std::string > materialTop_
int32_t waferCassette(const int32_t property)
#define DECLARE_DDCMS_DETELEMENT(name, func)
std::vector< int > layerOrient_
std::vector< double > zFrontB_
static constexpr int32_t WaferFull
std::vector< double > cassetteShift_
std::vector< int > waferIndex_
std::vector< int > layerSense_
static constexpr long s_executed
std::vector< double > layerThick_
std::vector< int > copyNumberTop_
std::string_view name() const
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
std::vector< std::string > waferFull_
int32_t waferThick(const int32_t property)
std::vector< std::string > passivePart_
std::vector< int > layerTypeTop_
std::vector< int > layers_
std::tuple< int32_t, int32_t, int32_t > tileUnpack(int32_t index)
std::vector< int > tileIndex_
static constexpr int32_t WaferPartHDOffset
std::vector< int > waferProperty_
HGCalGeomTools geomTools_
HGCalMixRotatedCassette(cms::DDParsingContext &ctxt, xml_h e)
std::vector< int > waferLayerStart_
std::vector< double > zFrontT_
int32_t waferPartial(const int32_t property)
int32_t waferV(const int32_t index)
std::vector< int > layerType_
std::vector< double > rMaxFront_
HGCalMixRotatedCassette()
static int32_t packTypeUV(int type, int u, int v)
static constexpr int32_t WaferHDTop
Log< level::Warning, false > LogWarning
static int32_t layerType(int type)
std::vector< std::string > materials_
dd4hep::Volume addVolumeNS(dd4hep::Volume vol) const
std::vector< double > slopeT_
static int32_t layerFrontBack(int32_t layerOrient)
dd4hep::Volume volume(const std::string &name, bool exc=true) const
static int cassetteType(int det, int zside, int cassette)
dd4hep::Solid addSolidNS(const std::string &name, dd4hep::Solid solid) const
std::vector< std::string > passiveFull_
std::string prepend(const std::string &) const
T angle(T x1, T y1, T z1, T x2, T y2, T z2)