14 #include "CLHEP/Units/PhysicalConstants.h"
15 #include "CLHEP/Units/SystemOfUnits.h"
18 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo info: Creating an instance";
30 nBlades = int(nArgs[
"NumberOfBlades"]);
33 zPlane = nArgs[
"BladeCommonZ"];
35 anchorR = nArgs[
"AnchorRadius"];
39 rotName = sArgs[
"RotationName"];
42 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo debug: Parent " << parentName
43 <<
"\tChild " <<
childName <<
" NameSpace "
47 <<
", " <<
bladeTilt/CLHEP::deg <<
"\tZshifts "
50 for (
int iBlade=0; iBlade<
nBlades; ++iBlade) {
51 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo: Blade " << iBlade
52 <<
" flag " <<
flagString[iBlade] <<
" zshift "
66 for (
int iBlade=0; iBlade<
nBlades; ++iBlade) {
88 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo test: Creating a new "
89 <<
"rotation: " << rotstr <<
"\t"
90 << thetx/CLHEP::deg <<
", " << phix/CLHEP::deg
91 <<
", " << thety/CLHEP::deg <<
", "
92 << phiy/CLHEP::deg <<
", " << thetz/CLHEP::deg
93 <<
", " << phiz/CLHEP::deg;
94 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);
95 rot =
DDrot(
DDName(rotstr, rotns), thetx,phix, thety,phiy, thetz,phiz);
104 cpv.
position (child, mother, copy, tran, rot);
105 LogDebug(
"TrackerGeom") <<
"DDPixFwdDiskAlgo test: " << child
106 <<
" number " << copy <<
" positioned in "
107 << mother <<
" at " << tran <<
" with " <<
rot;
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
Sin< T >::type sin(const T &t)
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.
static std::string & ns()
std::string dbl_to_string(const double &in)
Converts only the integer part of a double to a string.
type of data representation of DDCompactView
virtual ~DDPixFwdDiskAlgo()
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)
Cos< T >::type cos(const T &t)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > bladeZShift