174 const double tol(0.01);
175 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
181 for (
int ly = laymin; ly < laymax; ++ly) {
192 <<
"DDHGCalEEAlgo: Layer " << ly <<
":" << ii <<
" Front " << zi
193 <<
", " << routF <<
" Back " << zo <<
", " << rinB
194 <<
" superlayer thickness " << layerThick_[
i];
201 std::vector<double> pgonZ, pgonRin, pgonRout;
204 pgonZ.emplace_back(-hthick);
205 pgonZ.emplace_back(hthick);
206 pgonRin.emplace_back(rinB);
207 pgonRin.emplace_back(rinB);
208 pgonRout.emplace_back(rmax);
209 pgonRout.emplace_back(rmax);
214 for (
unsigned int isec=0; isec < pgonZ.size(); ++isec) {
216 pgonRout[isec] = pgonRout[isec]*
cosAlpha_ - tol;
221 -
alpha_, 2._pi, pgonZ, pgonRin, pgonRout);
225 <<
"DDHGCalEEAlgo: " << solid.
name() <<
" polyhedra of " <<
sectors_ 228 <<
" sections and filled with " << matName <<
":" << &matter;
229 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
231 <<
"[" <<
k <<
"] z " << pgonZ[
k] <<
" R " << pgonRin[
k] <<
":" 236 rinB, routF, 0.0, 2._pi);
240 <<
"DDHGCalEEAlgo: " << solid.
name() <<
" Tubs made of " << matName
241 <<
":" << &matter <<
" of dimensions " << rinB <<
", " << routF
242 <<
", " << hthick <<
", 0.0, 360.0 and position " << glog.
name()
243 <<
" number " <<
copy;
253 <<
"DDHGCalEEAlgo: " << glog.
name() <<
" number " << copy
254 <<
" positioned in " << module.
name() <<
" at " <<
r1 <<
" with " 261 if (
std::abs(thickTot - layerThick_[
i]) < 0.00001) {
262 }
else if (thickTot > layerThick_[i]) {
264 <<
"Thickness of the partition " << layerThick_[
i]
265 <<
" is smaller than " << thickTot <<
": thickness of all its " 266 <<
"components **** ERROR ****";
267 }
else if (thickTot < layerThick_[i]) {
269 <<
"Thickness of the partition " << layerThick_[
i]
270 <<
" does not match with " << thickTot <<
" of the components";
std::vector< double > slopeB_
std::vector< double > zFrontT_
std::vector< double > thick_
std::vector< double > layerThick_
DDMaterial is used to define and access material information.
std::vector< int > copyNumber_
std::vector< double > zFrontB_
DDName is used to identify DDD entities uniquely.
constexpr NumType convertRadToDeg(NumType radians)
std::vector< double > slopeT_
std::vector< int > layerSense_
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
Abs< T >::type abs(const T &t)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::vector< int > layerType_
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< int > layers_
std::vector< std::string > names_
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
std::vector< double > rMinFront_
void positionSensitive(const DDLogicalPart &glog, double rin, double rout, double zpos, int layertype, DDCompactView &cpv)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< std::string > materials_
std::vector< double > rMaxFront_
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)