|
|
Go to the documentation of this file.
58 <<
" Material " <<
material_ <<
" Names " <<
parent().name() <<
" NameSpace "
66 static const double sqrt3 =
std::sqrt(3.0);
68 double RM2 = rM / sqrt3;
70 double r = 0.5 *
R * sqrt3;
73 std::vector<double> xM = {rM, 0, -rM, -rM, 0, rM};
74 std::vector<double> yM = {RM2, 2 * RM2, RM2, -RM2, -2 * RM2, -RM2};
76 std::vector<double> zx(2, 0), zy(2, 0),
scale(2, 1.0);
83 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWafer8: " << solid.
name() <<
" extruded polygon made of " << matName
84 <<
" z|x|y|s (0) " <<
zw[0] <<
":" << zx[0] <<
":" << zy[0] <<
":" <<
scale[0]
85 <<
" z|x|y|s (1) " <<
zw[1] <<
":" << zx[1] <<
":" << zy[1] <<
":" <<
scale[1]
86 <<
" and " << xM.size() <<
" edges";
87 for (
unsigned int k = 0;
k < xM.size(); ++
k)
93 for (
int u = 0; u < 2 *
nCells_; ++u) {
100 double yp = (u - 0.5 *
v -
n2) * 2 *
r;
101 double xp = (1.5 * (
v -
nCells_) + 1.0) *
R;
103 if ((u == 0) && (
v == 0))
105 else if ((u == 0) && (
v ==
nCells_ - 1))
113 else if ((u ==
nCells_) && (
v == 0))
121 else if (u == (2 *
nCells_ - 1))
132 << glog.
name() <<
" at " << tran <<
" with no rotation";
138 edm::LogVerbatim(
"HGCalGeom") <<
"\nDDHGCalWafer8::Counter : " <<
counter <<
"\n===============================\n";
void execute(DDCompactView &cpv) override
DDName is used to identify DDD entities uniquely.
U second(std::pair< T, U > const &p)
DDMaterial is used to define and access material information.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
static int32_t packCellTypeUV(int type, int u, int v)
#define DEFINE_EDM_PLUGIN(factory, type, name)
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)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
static std::atomic< unsigned int > counter
std::vector< std::string > cellNames_
Log< level::Info, true > LogVerbatim
static std::string & ns()
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.
Represents a uniquely identifyable rotation matrix.
auto zw(V v) -> Vec2< typename std::remove_reference< decltype(v[0])>::type >
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)