144 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo test: \t\tInside Layers";
148 for (
unsigned int i = 0;
i <
layers.size();
i++) {
150 int laymax = laymin +
layers[
i];
153 for (
int ly = laymin; ly < laymax; ++ly) {
161 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo test: Layer " << ly <<
":" << ii <<
" Front " << zi
162 <<
" Back " << zo <<
" superlayer thickness " << layerThick[
i];
172 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo: " << solid.
name() <<
" Box made of " << matName
173 <<
" of dimensions " << 0.5 *
widths[0] <<
", " << 0.5 *
heights[0] <<
", " 181 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo: " << solid.
name() <<
" Box made of " << matName
182 <<
" of dimensions " << 0.5 *
widths[1] <<
", " << 0.5 *
heights[1] <<
", " 192 edm::LogVerbatim(
"HGCalGeom") <<
"DDAHcalModuleAlgo: " << glog.
name() <<
" number " << copy <<
" positioned in " 193 << module.
name() <<
" at " <<
r1 <<
" with " <<
rot;
199 if (fabs(thickTot - layerThick[
i]) < 0.00001) {
200 }
else if (thickTot > layerThick[i]) {
201 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << layerThick[
i] <<
" is smaller than thickness " 202 << thickTot <<
" of all its components **** ERROR ****\n";
203 }
else if (thickTot < layerThick[i]) {
204 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << layerThick[
i] <<
" does not match with " 205 << thickTot <<
" of the components\n";
std::vector< int > layerType
std::vector< std::string > materials
std::vector< double > widths
std::vector< int > copyNumber
DDMaterial is used to define and access material information.
DDName is used to identify DDD entities uniquely.
std::vector< double > heights
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)
std::vector< double > thick
std::vector< std::string > names
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
std::vector< double > layerThick
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
std::vector< int > layers
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< int > layerSense
void positionSensitive(DDLogicalPart &glog, DDCompactView &cpv)