13 #include "CLHEP/Units/PhysicalConstants.h" 14 #include "CLHEP/Units/SystemOfUnits.h" 17 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo info: Creating an instance";
32 zPlane = nArgs[
"BladeCommonZ"];
34 anchorR = nArgs[
"AnchorRadius"];
38 rotName = sArgs[
"RotationName"];
41 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo debug: Parent " << parentName
42 <<
"\tChild " <<
childName <<
" NameSpace " 46 <<
", " <<
bladeTilt/CLHEP::deg <<
"\tZshifts " 49 for (
int iBlade=0; iBlade<
nBlades; ++iBlade) {
50 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo: Blade " << iBlade
51 <<
" flag " <<
flagString[iBlade] <<
" zshift " 65 for (
int iBlade=0; iBlade<
nBlades; ++iBlade) {
87 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo test: Creating a new " 88 <<
"rotation: " << rotstr <<
"\t" 89 << thetx/CLHEP::deg <<
", " << phix/CLHEP::deg
90 <<
", " << thety/CLHEP::deg <<
", " 91 << phiy/CLHEP::deg <<
", " << thetz/CLHEP::deg
92 <<
", " << phiz/CLHEP::deg;
93 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);
94 rot =
DDrot(
DDName(rotstr, rotns), thetx,phix, thety,phiy, thetz,phiz);
103 cpv.
position (child, mother, copy, tran, rot);
104 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo test: " << child
105 <<
" number " << copy <<
" positioned in " 106 << mother <<
" at " << tran <<
" with " <<
rot;
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
~DDPixFwdDiskAlgo() override
Sin< T >::type sin(const T &t)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
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 position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > bladeZShift
void execute(DDCompactView &cpv) override