Go to the documentation of this file.
68 angwidth = nArgs[
"AngWidth"];
69 iaxis =
int(nArgs[
"Axis"]);
70 names = vsArgs[
"Names"];
73 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalXtalAlgo::Parameters for positioning:"
74 <<
" Axis " << iaxis <<
"\tRadius " <<
radius <<
"\tOffset " <<
offset <<
"\tDx " <<
dx
77 for (
unsigned int i = 0;
i <
names.size();
i++)
81 idName = sArgs[
"ChildName"];
92 theta[1 - iaxis] = 90._deg;
100 phi[2] = iaxis * 90._deg;
103 phi[2] = (2 - 3 * iaxis) * 90._deg;
113 static const double tol = 0.01_deg;
116 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalXtalAlgo: Creating a rotation " << rotstr <<
"\t"
126 <<
" positioned in " << parentName <<
" at " << tran <<
" with " <<
rotation;
DDName is used to identify DDD entities uniquely.
constexpr NumType convertRadToDeg(NumType radians)
void execute(DDCompactView &cpv) override
~DDHCalXtalAlgo() override
Sin< T >::type sin(const T &t)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
const std::string names[nVars_]
std::vector< std::string > names
Compact representation of the geometrical detector hierarchy.
Geom::Theta< T > theta() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Log< level::Info, true > LogVerbatim
static std::string & ns()
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Represents a uniquely identifyable rotation matrix.
static AlgebraicMatrix initialize()
Abs< T >::type abs(const T &t)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)