6 #include "DD4hep/DetFactoryHelper.h" 14 double startAngle =
args.value<
double>(
"startAngle");
15 double stepAngle =
args.value<
double>(
"stepAngle");
16 double zoffset =
args.value<
double>(
"zoffset");
17 double roffset =
args.value<
double>(
"roffset");
18 int n =
args.value<
int>(
"n");
19 int startCopyNo =
args.value<
int>(
"startCopyNo");
20 int incrCopyNo =
args.value<
int>(
"incrCopyNo");
22 edm::LogVerbatim(
"ForwardGeom") <<
"DDTotemAngular: Parameters for positioning-- " <<
n <<
" copies in steps of " 24 <<
" \tZoffset " << zoffset <<
" \tRoffset " << roffset
25 <<
"\tStart and inremental copy nos " << startCopyNo <<
", " << incrCopyNo;
34 double phi = startAngle;
35 int copyNo = startCopyNo;
37 for (
int ii = 0;
ii <
n;
ii++) {
40 edm::LogVerbatim(
"ForwardGeom") <<
"DDTotemAngular: Creating a new rotation \t90, " 48 edm::LogVerbatim(
"ForwardGeom") <<
"DDTotemAngular: " <<
child.name() <<
" number " << copyNo <<
" positioned in " Log< level::Info, true > LogVerbatim
constexpr NumType convertRadToDeg(NumType radians)
Sin< T >::type sin(const T &t)
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
#define DECLARE_DDCMS_DETELEMENT(name, func)
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
Cos< T >::type cos(const T &t)
dd4hep::Volume volume(const std::string &name, bool exc=true) const
std::string prepend(const std::string &) const