1 #ifndef DETECTOR_DESCRIPTION_DD_ALGO_ARGUMENTS_H 2 #define DETECTOR_DESCRIPTION_DD_ALGO_ARGUMENTS_H 5 #include "DD4hep/DetElement.h" 15 using DD3Vector = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<double>>;
21 return !str[
h] ? 5381 : (
hash( str,
h+1 )*33 ) ^ str[
h];
26 return hash( str.c_str());
30 double thetaY,
double phiY,
31 double thetaZ,
double phiZ );
34 double thetaY,
double phiY,
35 double thetaZ,
double phiZ );
std::string childName() const
Access value of child'name from the xml element.
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
T value(const std::string &name) const
int integer(const std::string &nam) const
Shortcut to access integer arguments.
dd4hep::Rotation3D makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
xml_h rawArgument(const std::string &name) const
Access raw argument as a string by name.
static constexpr long s_executed
~DDAlgoArguments()=default
dd4hep::Rotation3D makeRotReflect(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
constexpr unsigned int hash(const char *str, int h=0)
Namespace of DDCMS conversion namespace.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >> DD3Vector
DDAlgoArguments & operator=(const DDAlgoArguments ©)=delete
std::vector< double > vecDble(const std::string &nam) const
Shortcut to access vector<double> arguments.
double dble(const std::string &nam) const
Shortcut to access double arguments.
cms::DDParsingContext & context
std::vector< std::string > vecStr(const std::string &nam) const
Shortcut to access vector<string> arguments.
bool find(const std::string &name) const
Check the existence of an argument by name.
std::vector< int > vecInt(const std::string &nam) const
Shortcut to access vector<int> arguments.
std::string resolved_scalar_arg(const std::string &name) const
Access namespace resolved argument as a string by name.
std::string parentName() const
Access value of rParent child node.
std::string str(const std::string &nam) const
Shortcut to access string arguments.
T angle(T x1, T y1, T z1, T x2, T y2, T z2)