Definition at line 11 of file DDHGCalWaferAlgo.cc.
References particleFlowDisplacedVertex_cfi::angles, writedatasetfile::args, cms::convert2mm(), angle_units::operators::convertDegToRad(), filterCSVwithJSON::copy, PVValHelper::dx, PVValHelper::dy, MillePedeFileConverter_cfg::e, versionedElectronIDProducer_cfi::idName, dqmdumpme::k, cms::makeRotation3D(), Skims_PA_cff::name, cms::DDNamespace::name(), HGCalTypes::packCellType6(), PixelTestBeamValidation_cfi::Position, cms::DDNamespace::prepend(), idealTransformation::rotation, cms::s_executed, AlCaHLTBitMon_QueryRunRegistry::string, funct::tan(), and cms::DDNamespace::volume().
16 const auto& cellSize =
args.value<
double>(
"CellSize");
17 const auto& cellType =
args.value<
int>(
"CellType");
18 const auto& childNames =
args.value<std::vector<std::string> >(
"ChildNames");
19 const auto& positionX =
args.value<std::vector<int> >(
"PositionX");
20 const auto& positionY =
args.value<std::vector<int> >(
"PositionY");
21 const auto&
angles =
args.value<std::vector<double> >(
"Angles");
22 const auto& detectorType =
args.value<std::vector<int> >(
"DetectorType");
24 edm::LogVerbatim(
"HGCalGeom") << childNames.size() <<
" children: " << childNames[0] <<
"; " << childNames[1]
25 <<
" positioned " << positionX.size() <<
" times with cell size " << cellSize;
26 for (
unsigned int k = 0;
k < positionX.size(); ++
k)
32 edm::LogVerbatim(
"HGCalGeom") <<
"DDHGCalWaferAlgo debug: Parent " <<
idName <<
" NameSpace " << ns.name();
36 double dx = 0.5 * cellSize;
37 double dy = 0.5 *
dx *
tan(30._deg);
39 for (
unsigned int k = 0;
k < positionX.size(); ++
k) {
47 << (
angles[
k] + 90) <<
", 0, 0";
51 double xpos =
dx * positionX[
k];
52 double ypos =
dy * positionY[
k];
55 mother.placeVolume(ns.volume(
name),
copy, dd4hep::Transform3D(
rotation, tran));
Log< level::Info, true > LogVerbatim
constexpr double convertDegToRad(NumType degrees)
constexpr NumType convert2mm(NumType length)
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
static constexpr long s_executed
Tan< T >::type tan(const T &t)
static int32_t packCellType6(int type, int cell)