14 #include "CLHEP/Units/PhysicalConstants.h"
15 #include "CLHEP/Units/SystemOfUnits.h"
18 LogDebug(
"TrackerGeom") <<
"DDPixPhase1FwdDiskAlgo info: Creating an instance";
30 nBlades = int(nArgs[
"NumberOfBlades"]);
33 zPlane = nArgs[
"BladeCommonZ"];
35 anchorR = nArgs[
"AnchorRadius"];
39 rotName = sArgs[
"RotationName"];
42 LogDebug(
"TrackerGeom") <<
"DDPixPhase1FwdDiskAlgo debug: Parent " << parentName
43 <<
"\tChild " <<
childName <<
" NameSpace "
47 <<
", " <<
bladeTilt/CLHEP::deg <<
"\tZshifts "
50 for (
int iBlade=0; iBlade<
nBlades; ++iBlade) {
51 LogDebug(
"TrackerGeom") <<
"DDPixPhase1FwdDiskAlgo: Blade " << iBlade
52 <<
" flag " <<
flagString[iBlade] <<
" zshift "
66 for (
int iBlade=0; iBlade<
nBlades; ++iBlade) {
86 LogDebug(
"TrackerGeom") <<
"DDPixPhase1FwdDiskAlgo test: Creating a new "
87 <<
"rotation: " << rotstr <<
"\t"
88 << thetx/CLHEP::deg <<
", " << phix/CLHEP::deg
89 <<
", " << thety/CLHEP::deg <<
", "
90 << phiy/CLHEP::deg <<
", " << thetz/CLHEP::deg
91 <<
", " << phiz/CLHEP::deg;
92 LogDebug(
"TrackerGeom") <<
"Rotation Matrix (" << phi/CLHEP::deg <<
", " <<
bladeAngle/CLHEP::deg <<
", " <<
bladeTilt/CLHEP::deg <<
") " <<
std::cos(phi)*
std::cos(
bladeAngle) <<
", " << (-
std::sin(phi)*
std::cos(
bladeTilt)+
std::cos(phi)*
std::sin(
bladeAngle)*
std::sin(
bladeTilt)) <<
", " << (
std::sin(phi)*
std::sin(
bladeTilt)+
std::cos(phi)*
std::sin(
bladeAngle)*
std::cos(
bladeTilt)) <<
", " <<
std::sin(phi)*
std::cos(
bladeAngle) <<
", " << (
std::cos(phi)*
std::cos(
bladeTilt)+
std::sin(phi)*
std::sin(
bladeAngle)*
std::sin(
bladeTilt)) <<
", " << (-
std::cos(phi)*
std::sin(
bladeTilt)+
std::sin(phi)*
std::sin(
bladeAngle)*
std::cos(
bladeTilt)) <<
", " << -
std::sin(
bladeAngle) <<
", " <<
std::cos(
bladeAngle)*
std::sin(
bladeTilt) <<
", " <<
std::cos(
bladeAngle)*
std::cos(
bladeTilt);
93 rot =
DDrot(
DDName(rotstr, rotns), thetx,phix, thety,phiy, thetz,phiz);
99 cpv.
position (child, mother, copy, tran, rot);
100 LogDebug(
"TrackerGeom") <<
"DDPixPhase1FwdDiskAlgo test: " << child
101 <<
" number " << copy <<
" positioned in "
102 << mother <<
" at " << tran <<
" with " <<
rot;
Sin< T >::type sin(const T &t)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
DDName is used to identify DDD entities uniquely.
virtual ~DDPixPhase1FwdDiskAlgo()
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)
void execute(DDCompactView &cpv)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > bladeZShift