16 #include "CLHEP/Units/PhysicalConstants.h" 17 #include "CLHEP/Units/SystemOfUnits.h" 21 LogDebug(
"PixelGeom") <<
"DDPixBarStackTrigLayerAlgo info: Creating an instance";
34 genMat = sArgs[
"GeneralMaterial"];
40 ladder = vsArgs[
"LadderName"];
45 <<
" layerR = " <<
layerR << std::endl;
53 double dphi = CLHEP::twopi/
number;
59 rtmi, rtmx, 0, CLHEP::twopi);
60 LogDebug(
"PixelGeom") <<
"DDPixBarLayerAlgo test: " 62 <<
genMat <<
" from 0 to " << CLHEP::twopi/CLHEP::deg
63 <<
" with Rin " << rtmi <<
" Rout " << rtmx
74 double phi0 = 90*CLHEP::deg;
77 double phi = phi0 +
i*dphi;
78 double phix, phiy, rrr ;
84 rrr = rtmi+ 0.5* ladderThick[0];
86 rots = idName + std::to_string(copy);
87 if (iup > 0) phix = phi-90*CLHEP::deg;
88 else phix = phi+90*CLHEP::deg;
89 phiy = phix+90.*CLHEP::deg;
91 LogDebug(
"PixelGeom") <<
"DDPixBarStackTrigLayerAlgo test: Creating a new " 92 <<
"rotation: " << rots <<
"\t90., " << phix/CLHEP::deg
93 <<
", 90.," << phiy/CLHEP::deg <<
", 0, 0";
99 cpv.
position (ladderFull, layer, copy, tran, rot);
101 LogDebug(
"PixelGeom") <<
"DDPixBarStackTrigLayerAlgo test: " << ladderFull
102 <<
" number " << copy <<
" positioned in " 103 << layer.name() <<
" at " << tran <<
" with "
DDPixBarStackTrigLayerAlgo()
virtual ~DDPixBarStackTrigLayerAlgo()
DDMaterial is used to define and access material information.
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)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
type of data representation of DDCompactView
A DDSolid represents the shape of a part.
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)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
std::vector< std::string > ladder
std::vector< double > ladderWidth
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > ladderThick