92 static constexpr
double tol = 0.00001;
93 static const double sqrt3 =
std::sqrt(3.0);
95 double RM2 = rM / sqrt3;
98 std::vector<double> xM = {rM, 0, -rM, -rM, 0, rM};
99 std::vector<double> yM = {RM2, 2 * RM2, RM2, -RM2, -2 * RM2, -RM2};
101 std::vector<double> zx(2, 0), zy(2, 0),
scale(2, 1.0);
108 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalPassiveFull: " << solid.
name() <<
" extruded polygon made of " << matName
109 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
110 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
111 <<
" and " << xM.size() <<
" edges";
112 for (
unsigned int kk = 0;
kk < xM.size(); ++
kk)
117 std::vector<DDLogicalPart> glogs(
materials_.size());
118 double zi(-0.5 *
thick_), thickTot(0.0);
131 <<
" extruded polygon made of " << matN <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0]
132 <<
":" << zy[0] <<
":" <<
scale[0] <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1]
133 <<
":" << zy[1] <<
":" <<
scale[1] <<
" and " << xM.size() <<
" edges";
134 for (
unsigned int kk = 0;
kk < xM.size(); ++
kk)
143 <<
" positioned in " << glogM.
name() <<
" at " << tran0 <<
" with no rotation";
151 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" is smaller than " << thickTot
152 <<
": thickness of all its components **** ERROR ****";
154 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" does not match with " << thickTot
155 <<
" of the components";
Log< level::Info, true > LogVerbatim
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
DDMaterial is used to define and access material information.
DDName is used to identify DDD entities uniquely.
std::vector< double > layerThick_
Log< level::Error, false > LogError
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
std::vector< int > layerType_
std::vector< std::string > materials_
Abs< T >::type abs(const T &t)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
static DDSolid extrudedpolygon(const DDName &name, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &zx, const std::vector< double > &zy, const std::vector< double > &zscale)
std::vector< int > copyNumber_
auto zw(V v) -> Vec2< typename std::remove_reference< decltype(v[0])>::type >
Log< level::Warning, false > LogWarning
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
std::vector< std::string > layerNames_