5 #include "DD4hep/DetFactoryHelper.h" 14 int n =
args.value<
int>(
"n");
15 int startCopyNo =
args.value<
int>(
"startCopyNo");
16 int incrCopyNo =
args.value<
int>(
"incrCopyNo");
17 double rangeAngle =
args.value<
double>(
"rangeAngle");
18 double startAngle =
args.value<
double>(
"startAngle");
19 double shiftX =
args.value<
double>(
"shiftX");
20 double shiftY =
args.value<
double>(
"shiftY");
21 double zoffset =
args.value<
double>(
"zoffset");
24 childName = ns.
prepend(childName);
28 double dphi = rangeAngle /
n;
30 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalAngular: Parameters for positioning::" 31 <<
" n " <<
n <<
" Start, Range, Delta " <<
convertRadToDeg(startAngle) <<
" " 34 << mother.name() <<
"\tChild " <<
child.name() <<
" NameSpace " << ns.
name();
36 int copy = startCopyNo;
37 double phix = startAngle;
38 for (
int ii = 0;
ii <
n; ++
ii) {
53 double xpos = shiftX *
cos(phix) - shiftY *
sin(phix);
54 double ypos = shiftX *
sin(phix) + shiftY *
cos(phix);
Log< level::Info, true > LogVerbatim
constexpr NumType convertRadToDeg(NumType radians)
constexpr NumType convert2mm(NumType length)
Sin< T >::type sin(const T &t)
#define DECLARE_DDCMS_DETELEMENT(name, func)
static constexpr long s_executed
std::string_view name() const
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
dd4hep::Volume volume(const std::string &name, bool exc=true) const
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
std::string prepend(const std::string &) const