180 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
182 double routF =
rMax(zi);
186 for (
int ly = laymin; ly < laymax; ++ly) {
195 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: Layer " << ly <<
":" << ii <<
" Front " << zi <<
", " << routF
196 <<
" Back " << zo <<
", " << rinB <<
" superlayer thickness " << layerThick_[
i];
213 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: " << solid.
name() <<
" Tubs made of " << matName
214 <<
" of dimensions " << rinB <<
", " << routF <<
", " << 0.5 *
thick_[
ii]
225 <<
" positioned in " << module.
name() <<
" at " <<
r1 <<
" with " <<
rot;
231 if (fabs(thickTot - layerThick_[
i]) < 0.00001) {
232 }
else if (thickTot > layerThick_[i]) {
233 edm::LogError(
"HGCalGeom") <<
"Thickness of the partition " << layerThick_[
i] <<
" is smaller than thickness " 234 << thickTot <<
" of all its components **** ERROR ****\n";
235 }
else if (thickTot < layerThick_[i]) {
236 edm::LogWarning(
"HGCalGeom") <<
"Thickness of the partition " << layerThick_[
i] <<
" does not match with " 237 << thickTot <<
" of the components\n";
std::vector< std::string > names_
std::vector< double > layerThick_
DDMaterial is used to define and access material information.
void positionSensitive(DDLogicalPart &glog, int type, double rin, double rout, DDCompactView &cpv)
DDName is used to identify DDD entities uniquely.
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)
constexpr long double piRadians(M_PIl)
std::vector< int > layerType_
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< int > copyNumber_
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< 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::vector< double > slopeB_
std::vector< double > thick_
std::vector< std::string > materials_
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'