17 #include "CLHEP/Units/GlobalPhysicalConstants.h"
18 #include "CLHEP/Units/GlobalSystemOfUnits.h"
21 LogDebug(
"TECGeom") <<
"DDTECAxialCableAlgo info: Creating an instance";
38 width = nArgs[
"Width"];
45 if (fabs(
rangeAngle-360.0*CLHEP::deg)<0.001*CLHEP::deg) {
55 LogDebug(
"TECGeom") <<
"DDTECAxialCableAlgo debug: Parameters for creating "
56 <<
startAngle.size() <<
" axial cables and positioning "
57 <<
n <<
" copies in Service volume\n"
59 <<
" zEnd " <<
zEnd <<
" rMin " <<
rMin <<
" rMax "
60 <<
rMax <<
" Cable width " <<
width/CLHEP::deg
62 <<
dZ <<
"\n Range, Delta "
66 <<
" from Z " <<
zPos[
i] <<
" startAngle "
74 LogDebug(
"TECGeom") <<
"DDTECAxialCableAlgo debug: Parent " << parentName
75 <<
"\tChild " <<
childName <<
" NameSpace "
82 double theta = 90.*CLHEP::deg;
88 std::vector<double> pconZ, pconRmin, pconRmax;
90 pconRmin.push_back(
rMin);
91 pconRmax.push_back(
rMax);
92 pconZ.push_back(zv+
thickZ);
93 pconRmin.push_back(
rMin);
94 pconRmax.push_back(
rMax);
95 pconZ.push_back(zv+
thickZ);
97 pconRmax.push_back(
rMax);
99 pconZ.push_back(zv-
thickZ);
101 pconRmax.push_back(
rMax);
102 pconZ.push_back(zv-
thickZ);
103 pconRmin.push_back(
rMin);
104 pconRmax.push_back(
rMax);
106 pconRmin.push_back(
rMin);
107 pconRmax.push_back(
rMax);
110 pconRmax.push_back(
rMax);
113 pconRmax.push_back(
rMax);
120 LogDebug(
"TECGeom") <<
"DDTECAxialCableAlgo test: "
123 << 0.5*
width/CLHEP::deg <<
" and with " << pconZ.size()
125 for (
int ii = 0;
ii <(int)(pconZ.size());
ii++)
126 LogDebug(
"TECGeom") <<
"\t" <<
"\tZ[" <<
ii <<
"] = " << pconZ[
ii]
127 <<
"\tRmin[" <<
ii <<
"] = "<< pconRmin[
ii]
128 <<
"\tRmax[" <<
ii <<
"] = " << pconRmax[
ii];
134 for (i=0; i<
n; i++) {
136 double phiy = phix + 90.*CLHEP::deg;
137 double phideg = phix/CLHEP::deg;
144 LogDebug(
"TECGeom") <<
"DDTECAxialCableAlgo test: Creating a new"
145 <<
" rotation: " << rotstr <<
"\t90., "
146 << phix/CLHEP::deg <<
", 90.,"
147 << phiy/CLHEP::deg <<
", 0, 0";
155 LogDebug(
"TECGeom") <<
"DDTECAxialCableAlgo test "
157 <<
" positioned in " << mother <<
" at " << tran
std::vector< double > zPos
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
DDMaterial is used to define and access material information.
static DDSolid polycone(const DDName &name, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polycone (refere to Geant3 or Geant4 documentation)
Geom::Theta< T > theta() const
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.
std::vector< double > startAngle
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)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
const std::string & name() const
Returns the name.
virtual ~DDTECAxialCableAlgo()