Go to the documentation of this file.
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);
#define DECLARE_DDCMS_DETELEMENT(name, func)
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
constexpr NumType convertRadToDeg(NumType radians)
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
std::string prepend(const std::string &) const
constexpr NumType convert2mm(NumType length)
static constexpr long s_executed
Log< level::Info, true > LogVerbatim
Abs< T >::type abs(const T &t)
std::string_view name() const
dd4hep::Volume volume(const std::string &name, bool exc=true) const