|
|
Go to the documentation of this file.
68 distanceZ = nArgs[
"DistZ"];
70 copyNumber =
int(nArgs[
"Number"]);
73 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Parameters for position"
77 <<
"\tDz " <<
dz <<
"\tcopyNumber " << copyNumber;
80 childName = sArgs[
"ChildName"];
83 <<
" NameSpace " << idNameSpace;
88 double thetax = 90._deg +
theta;
89 double sthx =
sin(thetax);
95 double thetay = 90._deg;
96 double phiy = 90._deg + phi;
97 double thetaz =
theta;
103 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Creating a rotation " << rotstr <<
"\t"
111 double xpos =
r *
cos(phi);
112 double ypos =
r *
sin(phi);
119 edm::LogVerbatim(
"HCalGeom") <<
"DDHCalTestBeamAlgo: " <<
DDName(childName, idNameSpace) <<
" number " << copyNumber
120 <<
" positioned in " << parentName <<
" at " << tran <<
" with " <<
rotation;
126 edm::LogInfo(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Suggested Beam position "
127 <<
"(" << xpos <<
", " << ypos <<
", " << zpos <<
") and (dist, eta, phi) = (" << (dist -
dz)
128 <<
", " <<
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)