Skip to content

Commit

Permalink
Take comments from Carl
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Jan 23, 2020
1 parent a087266 commit de5d346
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Geometry/HGCalCommonData/src/HGCalGeomParameters.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "DetectorDescription/Core/interface/DDValue.h"
#include "DetectorDescription/Core/interface/DDVectorGetter.h"
#include "DetectorDescription/Core/interface/DDutils.h"
#include "DetectorDescription/DDCMS/interface/DDShapes.h"
#include "DetectorDescription/RegressionTest/interface/DDErrorDetection.h"
#include "Geometry/HGCalCommonData/interface/HGCalWaferIndex.h"
#include "Geometry/HGCalCommonData/interface/HGCalWaferType.h"
Expand Down Expand Up @@ -294,9 +295,10 @@ void HGCalGeomParameters::loadGeometryHexagon(cms::DDFilteredView& fv,
if (fv.isA<dd4hep::Polyhedra>()) {
rin = 0.5 * HGCalParameters::k_ScaleFromDD4Hep * (pars[5] + pars[8]);
rout = 0.5 * HGCalParameters::k_ScaleFromDD4Hep * (pars[6] + pars[9]);
} else if (fv.isA<dd4hep::Tube>()) {
rin = HGCalParameters::k_ScaleFromDD4Hep * pars[0];
rout = HGCalParameters::k_ScaleFromDD4Hep * pars[1];
} else if (fv.isATubeSeg()) {
cms::dd::DDTubs tubeSeg(fv);
rin = HGCalParameters::k_ScaleFromDD4Hep * tubeSeg.rIn();
rout = HGCalParameters::k_ScaleFromDD4Hep * tubeSeg.rOut();
}
HGCalGeomParameters::layerParameters laypar(rin, rout, zp);
layers[lay] = laypar;
Expand Down

0 comments on commit de5d346

Please sign in to comment.