Go to the documentation of this file. 1 #include "DD4hep/DetFactoryHelper.h"
13 double eta =
args.value<
double>(
"Eta");
14 double phi =
args.value<
double>(
"Phi");
17 double distanceZ =
args.value<
double>(
"DistZ");
19 int copyNumber =
args.value<
int>(
"Number");
21 double dz =
args.value<
double>(
"Dz");
23 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Parameters for position"
28 <<
"\tcopyNumber " << copyNumber;
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);
73 edm::LogInfo(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Suggested Beam position "
75 <<
") and (dist, eta, phi) = (" <<
convertCmToMm(dist -
dz) <<
", " <<
eta <<
", " << phi
#define DECLARE_DDCMS_DETELEMENT(name, func)
constexpr NumType convertRadToDeg(NumType radians)
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
Log< level::Info, false > LogInfo
Sin< T >::type sin(const T &t)
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
Cos< T >::type cos(const T &t)
std::string prepend(const std::string &) const
Geom::Theta< T > theta() const
constexpr NumType convertCmToMm(NumType centimeters)
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