14 #include "CLHEP/Units/GlobalPhysicalConstants.h"
15 #include "CLHEP/Units/GlobalSystemOfUnits.h"
19 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo info: Creating an instance";
34 number = int (nArgs[
"Number"]);
38 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo debug: Parameters for "
39 <<
"positioning--" <<
"\tStartAngle "
49 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo debug: Parent " << parentName
50 <<
"\tChild " <<
childName <<
" NameSpace "
57 double theta = 90.*CLHEP::deg;
64 double phiy = phix + 90.*CLHEP::deg;
65 double phideg = phix/CLHEP::deg;
71 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo test: Creating a new "
72 <<
"rotation " << rotstr <<
"\t"
73 << theta/CLHEP::deg <<
", " << phix/CLHEP::deg
74 <<
", " << theta/CLHEP::deg <<
", "
75 << phiy/CLHEP::deg <<
", 0, 0";
81 if (
i%2 == 0) zpos =
zIn;
84 cpv.
position(child, mother, copyNo, tran, rotation);
85 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo test: " << child <<
" number "
86 << copyNo <<
" positioned in " << mother <<
" at "
Geom::Theta< T > theta() const
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
const reco::GenParticle * mother(const reco::GenParticle &p, unsigned int imoth=0)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
std::string dbl_to_string(const double &in)
Converts only the integer part of a double to a string.
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
type of data representation of DDCompactView
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
void execute(DDCompactView &cpv)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'