131 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalModuleAlgo test: \t\tInside Layers";
135 const double tol(0.01);
136 for (
unsigned int i = 0;
i <
layers.size();
i++) {
138 double routF =
rMax(zi);
139 int laymax = laymin +
layers[
i];
142 for (
int ly = laymin; ly < laymax; ++ly) {
152 <<
":" << ii <<
" Front " << zi <<
", " 153 << routF <<
" Back " << zo <<
", " << rinB
154 <<
" superlayer thickness " << layerThick[
i];
162 double rmax = routF *
cos(alpha) - tol;
163 std::vector<double> pgonZ, pgonRin, pgonRout;
164 pgonZ.emplace_back(-0.5 *
thick[ii]);
165 pgonZ.emplace_back(0.5 *
thick[ii]);
166 pgonRin.emplace_back(rinB);
167 pgonRin.emplace_back(rinB);
168 pgonRout.emplace_back(rmax);
169 pgonRout.emplace_back(rmax);
173 pgonZ, pgonRin, pgonRout);
178 <<
" sectors covering " 181 <<
" with " << pgonZ.size() <<
" sections";
182 for (
unsigned int k = 0;
k < pgonZ.size(); ++
k)
184 << pgonRin[
k] <<
":" << pgonRout[
k];
193 <<
" Tubs made of " << matName
194 <<
" of dimensions " << rinB <<
", " 195 << routF <<
", " << 0.5 *
thick[
ii]
206 << copy <<
" positioned in " << module.
name() <<
" at " <<
r1 207 <<
" with " << rot << std::endl;
213 if (fabs(thickTot - layerThick[
i]) < 0.00001) {
214 }
else if (thickTot > layerThick[i]) {
216 <<
"Thickness of the partition " << layerThick[
i]
217 <<
" is smaller than thickness " << thickTot
218 <<
" of all its components **** ERROR ****\n";
219 }
else if (thickTot < layerThick[i]) {
221 <<
"Thickness of the partition " << layerThick[
i]
222 <<
" does not match with " << thickTot <<
" of the components\n";
std::vector< int > copyNumber
std::vector< double > thick
void positionSensitive(DDLogicalPart &glog, double rin, double rout, DDCompactView &cpv)
DDMaterial is used to define and access material information.
std::vector< std::string > names
DDName is used to identify DDD entities uniquely.
constexpr NumType convertRadToDeg(NumType radians)
constexpr long double piRadians(M_PI)
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
std::vector< std::string > materials
U second(std::pair< T, U > const &p)
Cos< T >::type cos(const T &t)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< double > slopeB
std::vector< int > layerType
std::vector< int > layers
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
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)
std::vector< double > layerThick
std::vector< int > layerSense