13 #include "CLHEP/Units/GlobalPhysicalConstants.h" 14 #include "CLHEP/Units/GlobalSystemOfUnits.h" 18 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAlgo info: Creating an instance";
29 if ( nArgs.find(
"StartCopyNo") != nArgs.end() ) {
30 startcn = size_t(nArgs[
"StartCopyNo"]);
34 if ( nArgs.find(
"IncrCopyNo") != nArgs.end() ) {
46 if ( nArgs.find(
"NumCopies") != nArgs.end() ) {
49 edm::LogError(
"TrackerGeom") <<
"DDTrackerPhiAlgo error: Parameter " 50 <<
"NumCopies does not agree with the size " 51 <<
"of the Phi vector. It was adjusted to " 52 <<
"be the size of the Phi vector and may " 53 <<
"lead to crashes or errors.";
59 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAlgo debug: Parameters for position" 60 <<
"ing:: " <<
" Radius " <<
radius <<
" Tilt " 61 <<
tilt/CLHEP::deg <<
" Copies " <<
phi.size()
64 LogDebug(
"TrackerGeom") <<
"\t[" <<
i <<
"] phi = " <<
phi[
i]/CLHEP::deg
65 <<
" z = " <<
zpos[
i];
70 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAlgo debug: Parent " << parentName
71 <<
"\tChild " <<
childName <<
" NameSpace " 79 double theta = 90.*CLHEP::deg;
84 double phiy = phix + 90.*CLHEP::deg;
85 double phideg =
phi[
i]/CLHEP::deg;
90 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAlgo test: Creating a new " 91 <<
"rotation: " << rotstr <<
"\t" <<
"90., " 92 << phix/CLHEP::deg <<
", 90.," 93 << phiy/CLHEP::deg <<
", 0, 0";
102 cpv.
position(child, mother, ci, tran, rotation);
103 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAlgo test: " << child <<
" number " 104 << ci <<
" positioned in " << mother <<
" at "
std::vector< double > phi
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
DDName is used to identify DDD entities uniquely.
static std::string & ns()
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)
Cos< T >::type cos(const T &t)
std::vector< double > zpos
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
~DDTrackerPhiAlgo() override
void execute(DDCompactView &cpv) override
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'