151 double phi2 = phi1 +
dphi_;
154 std::vector<double> xM, yM;
156 xM = {rinB *
cos(phi1), routF *
cos(phi1), routF *
cos(phi2), rinB *
cos(phi2)};
157 yM = {rinB *
sin(phi1), routF *
sin(phi1), routF *
sin(phi2), rinB *
sin(phi2)};
160 std::vector<double> xTmp = {rinB *
cos(phi1),
166 std::vector<double> yTmp = {rinB *
sin(phi1),
176 std::vector<double> zx(2, 0), zy(2, 0),
scale(2, 1.0);
182 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalPassive: " << solid.
name() <<
" extruded polygon made of " << matName
183 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
184 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
185 <<
" and " << xM.size() <<
" edges";
186 for (
unsigned int kk = 0;
kk < xM.size(); ++
kk)
191 std::vector<DDLogicalPart> glogs(
materials_.size());
192 std::vector<int> copyNumber(
materials_.size(), 1);
193 double zi(-0.5 *
thick_), thickTot(0.0);
196 if (copyNumber[
i] == 1) {
206 <<
" extruded polygon made of " << matN <<
" z|x|y|s (0) " <<
zw[0] <<
":" 207 << zx[0] <<
":" << zy[0] <<
":" <<
scale[0] <<
" z|x|y|s (1) " <<
zw[1] <<
":" 208 << zx[1] <<
":" << zy[1] <<
":" <<
scale[1] <<
" and " << xM.size() <<
" edges";
209 for (
unsigned int kk = 0;
kk < xM.size(); ++
kk)
217 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalPassive: " << glogs[
i].name() <<
" number " << copyNumber[
i]
218 <<
" positioned in " << glogM.
name() <<
" at " << tran0 <<
" with no rotation";
226 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" is smaller than " << thickTot
227 <<
": thickness of all its components **** ERROR ****";
229 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " <<
thick_ <<
" does not match with " << thickTot
230 <<
" of the components";
Log< level::Info, true > LogVerbatim
std::vector< double > rMaxFront_
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.
std::vector< std::string > tagSector_
Sin< T >::type sin(const T &t)
std::vector< std::string > tagLayer_
std::vector< std::string > layerNames_
DDName is used to identify DDD entities uniquely.
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< std::string > materials_
std::vector< double > zFrontB_
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::vector< double > rMinFront_
std::vector< double > layerThick_
std::vector< int > layerType_
std::vector< double > zFrontT_
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< double > slopeB_
std::vector< double > slopeT_
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