37 static constexpr
double tol1 = 0.01 * dd4hep::mm;
46 materials_ =
args.value<std::vector<std::string>>(
"MaterialNames");
87 edm::LogVerbatim(
"HGCalGeom") <<
"First copy number for layer type " <<
i <<
":" <<
ii <<
" with " 103 namesTop_ =
args.value<std::vector<std::string>>(
"TopVolumeNames");
109 <<
" types of volumes in the top part";
119 namesBot_ =
args.value<std::vector<std::string>>(
"BottomVolumeNames");
126 <<
" types of volumes in the bottom part";
160 slopeB_ =
args.value<std::vector<double>>(
"SlopeBottom");
161 zFrontB_ =
args.value<std::vector<double>>(
"ZFrontBottom");
163 slopeT_ =
args.value<std::vector<double>>(
"SlopeTop");
164 zFrontT_ =
args.value<std::vector<double>>(
"ZFrontTop");
167 for (
unsigned int i = 0;
i <
slopeB_.size(); ++
i)
170 for (
unsigned int i = 0;
i <
slopeT_.size(); ++
i)
173 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEFileAlgo: NameSpace " << ns.name();
187 for (
int ly = laymin; ly < laymax; ++ly) {
198 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEFileAlgo: Layer " << ly <<
":" <<
ii <<
" Front " 208 std::vector<double> pgonZ, pgonRin, pgonRout;
223 for (
unsigned int isec = 0;
isec < pgonZ.size(); ++
isec) {
226 pgonRout[
isec] = rmax;
232 ns.addSolidNS(ns.prepend(
name), solid);
234 ns.addVolumeNS(glog);
239 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
248 dd4hep::Solid solid = dd4hep::Tube(rins, routs, hthick, 0.0, 2._pi);
249 ns.addSolidNS(ns.prepend(
name), solid);
251 ns.addVolumeNS(glog);
254 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEFileAlgo: " << solid.name() <<
" Tubs made of " << matter.name()
257 <<
cms::convert2mm(hthick) <<
", 0.0, 360.0 and positioned in: " << glog.name()
258 <<
" number " <<
copy;
260 positionMix(ctxt,
e, glog,
name,
copy,
thickness_[
ii], matter, rins,
rMixLayer_[
i], routs,
zz);
264 mother.placeVolume(glog,
copy,
r1);
267 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalHEFileAlgo: " << glog.name() <<
" number " <<
copy <<
" positioned in " 278 <<
": thickness of all its components **** ERROR ****";
281 <<
" does not match with " <<
cms::convert2mm(thickTot) <<
" of the components";
289 for (std::unordered_set<int>::const_iterator itr =
copies_.begin(); itr !=
copies_.end(); ++itr, ++
k) {
293 edm::LogVerbatim(
"HGCalGeom") <<
"<<== End of DDHGCalHEFileAlgo construction...";
Log< level::Info, true > LogVerbatim
std::vector< std::string > namesBot_
std::vector< int > copyNumberBot_
std::vector< std::string > materialsBot_
std::vector< double > rMinFront_
int32_t waferU(const int32_t index)
int32_t waferLayer(const int32_t index)
static constexpr double tol2_
constexpr NumType convertRadToDeg(NumType radians)
constexpr NumType convert2mm(NumType length)
std::vector< double > layerThickBot_
std::vector< int > layerTypeTop_
std::vector< double > thickness_
Log< level::Error, false > LogError
std::vector< double > layerThickTop_
std::vector< double > slopeB_
std::vector< std::string > namesTop_
std::vector< int > copyNumber_
int32_t waferOrient(const int32_t property)
static std::string to_string(const XMLCh *ch)
std::vector< int > copyNumberTop_
std::vector< std::string > materialsTop_
std::vector< std::string > volumeNames_
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
std::vector< double > zFrontT_
int32_t waferThick(const int32_t property)
std::unordered_set< int > copies_
std::vector< std::string > waferNames_
std::vector< int > waferProperty_
std::vector< double > slopeT_
std::vector< int > waferIndex_
std::vector< int > layerTypeBot_
std::vector< int > layerNumbers_
void positionMix(cms::DDParsingContext &ctxt, xml_h e, const dd4hep::Volume &glog, const std::string &nameM, int copyM, double thick, const dd4hep::Material &matter, double rin, double rmid, double rout, double zz)
std::vector< int > layerSense_
int32_t waferPartial(const int32_t property)
std::vector< double > rMaxFront_
std::vector< double > layerThick_
std::vector< int > layerSenseBot_
int32_t waferV(const int32_t index)
std::vector< double > zFrontB_
std::vector< int > layerCenter_
std::vector< int > layerType_
Log< level::Warning, false > LogWarning
std::vector< std::string > materials_
std::vector< double > rMixLayer_