|
|
Go to the documentation of this file.
69 distanceZ = nArgs[
"DistZ"];
71 copyNumber =
int(nArgs[
"Number"]);
74 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Parameters for position"
78 <<
"\tDz " <<
dz <<
"\tcopyNumber " << copyNumber;
81 childName = sArgs[
"ChildName"];
84 <<
" NameSpace " << idNameSpace;
89 double thetax = 90._deg +
theta;
90 double sthx =
sin(thetax);
96 double thetay = 90._deg;
97 double phiy = 90._deg + phi;
98 double thetaz =
theta;
104 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Creating a rotation " << rotstr <<
"\t"
112 double xpos =
r *
cos(phi);
113 double ypos =
r *
sin(phi);
120 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: " <<
DDName(childName, idNameSpace) <<
" number " << copyNumber
121 <<
" positioned in " << parentName <<
" at " << tran <<
" with " <<
rotation;
127 edm::LogInfo(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Suggested Beam position "
128 <<
"(" << xpos <<
", " << ypos <<
", " << zpos <<
") and (dist, eta, phi) = (" << (dist -
dz)
129 <<
", " <<
eta <<
", " << phi <<
")";
~DDHCalTestBeamAlgo() override
DDName is used to identify DDD entities uniquely.
constexpr NumType convertRadToDeg(NumType radians)
Log< level::Info, false > LogInfo
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
void execute(DDCompactView &cpv) override
Geom::Theta< T > theta() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
Log< level::Info, true > LogVerbatim
static std::string & ns()
Represents a uniquely identifyable rotation matrix.
static AlgebraicMatrix initialize()
Abs< T >::type abs(const T &t)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)