181 for (
unsigned int i = 0;
i <
layers_.size();
i++) {
183 double routF =
rMax(zi);
187 for (
int ly = laymin; ly < laymax; ++ly) {
196 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalTBModule: Layer " << ly <<
":" << ii <<
" Front " << zi <<
", " << routF
197 <<
" 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";
Log< level::Info, true > LogVerbatim
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=nullptr)
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::string to_string(const V &value)
Log< level::Error, false > LogError
std::vector< int > layerSense_
A DDSolid represents the shape of a part.
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
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_
std::vector< double > slopeB_
std::vector< double > thick_
std::vector< std::string > materials_
Log< level::Warning, false > LogWarning
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation