1 #include "DD4hep/DetFactoryHelper.h" 14 double eta =
args.value<
double>(
"Eta");
15 double phi =
args.value<
double>(
"Phi");
18 double distanceZ =
args.value<
double>(
"DistZ");
20 int copyNumber =
args.value<
int>(
"Number");
22 double dz =
args.value<
double>(
"Dz");
24 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Parameters for positioning-- Eta " <<
eta <<
"\tPhi " 29 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo:Parent " <<
args.parentName() <<
"\tChild " << childName
30 <<
" NameSpace " << ns.
name();
35 double thetax = 90._deg +
theta;
36 double sthx =
sin(thetax);
42 double thetay = 90._deg;
43 double phiy = 90._deg + phi;
44 double thetaz =
theta;
56 double xpos = r *
cos(phi);
57 double ypos = r *
sin(phi);
61 childName = ns.
prepend(childName);
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
Log< level::Info, true > LogVerbatim
constexpr NumType convertRadToDeg(NumType radians)
constexpr NumType convert2mm(NumType length)
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 constexpr long s_executed
std::string_view name() const
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
Log< level::Info, false > LogInfo
dd4hep::Volume volume(const std::string &name, bool exc=true) const
std::string prepend(const std::string &) const
MPlex< T, D1, D2, N > atan2(const MPlex< T, D1, D2, N > &y, const MPlex< T, D1, D2, N > &x)