38 os << *(defined.first) <<
" ";
41 solid.
rep().stream(os);
44 os <<
"* solid not defined * ";
48 os <<
"* solid not declared * ";
71 std::vector<double>
dummy;
89 solid =
new DDI::Trap(0,0,0,0,0,0,0,0,0,0,0);
125 solid =
new DDI::CutTubs(0.,0.,0.,0.,0.,0.,0.,1.,0.,0.,-1.);
131 throw cms::Exception(
"DDException") <<
"DDSolid::DDSolid(DDName,DDSolidShape,std::vector<double>: wrong shape";
140 return rep().volume();
146 return rep().shape();
149 const std::vector<double> &
152 return rep().parameters();
159 ex = ex +
"Use a different solid interface!";
202 ex = ex +
"Use a different solid interface!";
235 ex = ex +
"Use a different solid interface!";
266 ex = ex +
"Use a different solid interface!";
273 {
return rep().parameters()[0]; }
277 {
return rep().parameters()[1]; }
281 {
return rep().parameters()[2]; }
298 ex = ex +
"Use a different solid interface!";
308 ex = ex +
"Use a different solid interface!";
318 ex = ex +
"Use a different solid interface!";
328 ex = ex +
"Use a different solid interface!";
338 ex = ex +
"Use a different solid interface!";
350 const size_t& numVecs)
const 355 edm::LogError (
"DDSolid") <<
"Could not find equal sized components of std::vectors in a PolySolid description." 356 <<
"rep().parameters().size()=" <<
rep().parameters().size() <<
" numVecs=" << numVecs
357 <<
" offset=" << offset << std::endl;
359 std::vector<double> tvec;
360 for(
size_t i = offset + which;
i <
rep().parameters().size();
i =
i + numVecs ) {
371 ex = ex +
"Use a different solid interface!";
383 std::vector<double> tvec;
399 std::vector<double> tvec;
407 std::vector<double> tvec;
418 ex = ex +
"Use a different solid interface!";
434 std::vector<double> tvec;
450 std::vector<double> tvec;
458 std::vector<double> tvec;
469 ex = ex +
"Use a different solid interface!";
496 return rep().parameters()[0];
502 return std::vector<double>(
rep().parameters().begin() + 1,
509 return std::vector<double>(
rep().parameters().begin() + 1 +
xyPointsSize(),
538 rep().parameters().end());
545 ex = ex +
"Use a different solid interface!";
575 ex = ex +
"Use a different solid interface!";
599 ex = ex +
"Use a different solid interface!";
625 const std::vector<DDSolid> &
631 const std::vector<DDTranslation> &
637 const std::vector<DDRotation> &
677 ex = ex +
"Use a different solid interface!";
704 ex = ex +
"Use a different solid interface!";
716 ex = ex +
"Use a different solid interface!";
733 std::string ex =
"Solid [" + s.
name().
ns() +
":" + s.
name().
name() +
"] is not a DDEllipsoid (or truncated ellipsoid).\n";
734 ex = ex +
"Use a different solid interface!";
758 ex = ex +
"Use a different solid interface!";
785 ex = ex +
"Use a different solid interface!";
805 std::array<double, 3>
807 return std::array<double, 3>{{
rep().parameters()[5],
rep().parameters()[6],
rep().parameters()[7]}};
810 std::array<double, 3>
812 return std::array<double, 3>{{
rep().parameters()[8],
rep().parameters()[9],
rep().parameters()[10]}};
829 const std::vector<double> &
z,
830 const std::vector<double> & rmin,
831 const std::vector<double> & rmax)
838 const std::vector<double> &
z,
839 const std::vector<double> &
r)
850 const std::vector<double> &
z,
851 const std::vector<double> & rmin,
852 const std::vector<double> & rmax)
862 const std::vector<double> &
z,
863 const std::vector<double> &
r)
870 const std::vector<double> &
x,
871 const std::vector<double> &
y,
872 const std::vector<double> &
z,
873 const std::vector<double> & zx,
874 const std::vector<double> & zy,
875 const std::vector<double> & zscale )
891 const std::vector<DDSolid> &
a,
892 const std::vector<DDTranslation> &
t,
893 const std::vector<DDRotation> &
r )
919 double pTheta,
double pPhi,
920 double pDy1,
double pDx1,
double pDx2,
922 double pDy2,
double pDx3,
double pDx4,
926 pDy1, pDx1, pDx2, pAlp1,
927 pDy2, pDx3, pDx4, pAlp2));
955 return DDSolid(name,
new DDI::TruncTubs(zHalf,rIn,rOut,startPhi,deltaPhi,cutAtStart,cutAtDelta,cutInside));
969 rInMinusZ, rOutMinusZ,
999 double lx,
double ly,
double lz,
1000 double tx,
double ty,
double tz)
1002 return DDSolid(name,
new DDI::CutTubs(zhalf,rIn,rOut,phiFrom,deltaPhi,lx,ly,lz,tx,ty,tz));
1016 startTheta, deltaTheta));
1027 double xSemiAxis,
double ySemiAxis,
double zHeight)
1051 double xHalf,
double yHalf,
double zHalf,
1055 alpha, theta, phi));
DDPseudoTrap(void)=delete
DDExtrudedPolygon(void)=delete
static DDSolid torus(const DDName &name, double rMin, double rMax, double rTorus, double startPhi, double deltaPhi)
double startPhi(void) const
double cutAtStart(void) const
truncation at begin of the tube-section
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDI::rep_traits< N, C >::reference rep() const
double xSemiAxis(void) const
double halfZ(void) const
half of the z-Axis
def_type isDefined() const
bool cutInside(void) const
true, if truncation is on the inner side of the tube-section
std::vector< double > rVec(void) const
const std::vector< DDRotation > & rotations(void) const
double x1(void) const
Half-length along x of the side at y=-pDy1 of the face at -pDz.
double zHalf(void) const
half of the z-Axis
const DDTranslation & t() const
double y2(void) const
half length along y on +z
auto zSectionsSize(void) const -> std::size_t
double startTheta(void) const
std::vector< double > rMaxVec(void) const
double deltaPhi(void) const
angular span of the tube-section
static DDSolid pseudoTrap(const DDName &name, double pDx1, double pDx2, double pDy1, double pDy2, double pDz, double radius, bool atMinusZ)
double deltaPhi(void) const
std::vector< double > rMaxVec(void) const
static DDSolid parallelepiped(const DDName &name, double xHalf, double yHalf, double zHalf, double alpha, double theta, double phi)
Abstract class for DDPolycone and DDPolyhedra. Basically a common member function.
double phi(void) const
Azimuthal angle of the line joining the centres of the faces at -/+pDz.
static DDSolid multiUnionSolid(const DDName &name, const std::vector< DDSolid > &a, const std::vector< DDTranslation > &t, const std::vector< DDRotation > &r)
virtual std::vector< double > getVec(const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const
note defaults please.
const std::vector< DDSolid > & solids(void) const
static DDSolid cons(const DDName &name, double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double phiFrom, double deltaPhi)
std::array< double, 3 > highNorm(void) const
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)
double rTorus(void) const
std::vector< double > rVec(void) const
double cutAtDelta(void) const
truncation at end of the tube-section
std::vector< double > yVec(void) const
double phiFrom(void) const
Geom::Theta< T > theta() const
DDReflectionSolid(void)=delete
double zTopCut(void) const
const std::string & ns() const
Returns the namespace.
DDName is used to identify DDD entities uniquely.
double radius(void) const
double rIn(void) const
inner radius
const DDSolid & a() const
double rOutMinusZ(void) const
const std::vector< DDTranslation > & t() const
double rOutPlusZ(void) const
std::vector< double > zyVec(void) const
const DDRotation & r() const
DDTranslation translation(void) const
double ySemiAxis(void) const
DDIntersection(void)=delete
double innerRadius(void) const
A DDSolid represents the shape of a part.
double y1(void) const
half length along y on -z
DDSolid solidB(void) const
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
std::vector< double > xVec(void) const
static DDSolid cuttubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi, double lx, double ly, double lz, double tx, double ty, double tz)
std::array< double, 3 > lowNorm(void) const
void setParameters(std::vector< double > const &p)
static value_type & instance()
double outerRadius(void) const
static const char *const name(DDSolidShape s)
DDSolid unreflected(void) const
auto xyPointsSize(void) const -> std::size_t
double x4(void) const
Half-length along x of the side at y=+pDy2 of the face at +pDz.
DDI::BooleanSolid * boolean_
static DDSolid intersection(const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
DDRotation rotation(void) const
std::ostream & operator<<(std::ostream &os, const DDSolid &solid)
bool atMinusZ(void) const
true, if cut-out or rounding is on the -z side
double halfZ(void) const
half of the z-Axis
std::vector< double > rMinVec(void) const
DDParallelepiped(void)=delete
double startPhi(void) const
double startPhi(void) const
double xSemiAxis(void) const
static DDSolid sphere(const DDName &name, double innerRadius, double outerRadius, double startPhi, double deltaPhi, double startTheta, double deltaTheta)
static DDSolid orb(const DDName &name, double radius)
const DDSolid & b() const
DDI::Reflection * reflected_
double deltaPhi(void) const
static DDSolid ellipsoid(const DDName &name, double xSemiAxis, double ySemiAxis, double zSemiAxis, double zBottomCut=0., double zTopCut=0.)
double startPhi(void) const
double y1(void) const
Half-length along y of the face at -pDz.
double rInMinusZ(void) const
DDSolidShape shape(void) const
The type of the solid.
double deltaTheta(void) const
static DDSolid tubs(const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
double ySemiAxis(void) const
static DDSolid truncTubs(const DDName &name, double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
static DDSolid trap(const DDName &name, double pDz, double pTheta, double pPhi, double pDy1, double pDx1, double pDx2, double pAlp1, double pDy2, double pDx3, double pDx4, double pAlp2)
static DDSolid box(const DDName &name, double xHalf, double yHalf, double zHalf)
Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf.
std::vector< double > rMinVec(void) const
double deltaPhi(void) const
DDMultiUnion(void)=delete
DDSolid solidA(void) const
double deltaPhi(void) const
double deltaPhi(void) const
double startPhi(void) const
std::vector< double > zVec(void) const
std::vector< double > zxVec(void) const
static DDSolid ellipticalTube(const DDName &name, double xSemiAxis, double ySemiAxis, double zHeight)
std::vector< double > zVec(void) const
double deltaPhi(void) const
static DDSolid extrudedpolygon(const DDName &name, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &zx, const std::vector< double > &zy, const std::vector< double > &zscale)
const std::vector< DDTranslation > & translations(void) const
static DDSolid subtraction(const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
double alpha1(void) const
Angle with respect to the y axis from the centre of the side at y=-pDy1 to the centre at y=+pDy1 of t...
double alpha2(void) const
Angle with respect to the y axis from the centre of the side at y=-pDy2 to the centre at y=+pDy2 of t...
double startPhi(void) const
angular start of the tube-section
double zBottomCut(void) const
const std::vector< DDSolid > & solids() const
double x2(void) const
Half-length along x of the side at y=+pDy1 of the face at -pDz.
static DDSolid reflection(const DDName &name, const DDSolid &s)
static DDSolid shapeless(const DDName &name)
DDEllipticalTube(void)=delete
DDShapelessSolid(void)=delete
double zHeight(void) const
double zSemiAxis(void) const
const std::vector< DDRotation > & r() const
double deltaPhi(void) const
double y2(void) const
Half-length along y of the face at +pDz.
DDBooleanSolid(void)=delete
DDSubtraction(void)=delete
double rInPlusZ(void) const
DDSolid(void)
Uninitialilzed solid reference-object; for further details on reference-objects see documentation of ...
static DDSolid unionSolid(const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
double x2(void) const
half length along x on +z
const DDSolid & solid() const
double rOut(void) const
outer radius
double theta(void) const
Polar angle of the line joining the centres of the faces at -/+pDz.
DDMultiUnionSolid(void)=delete
std::vector< double > zscaleVec(void) const
const std::string & name() const
Returns the name.
static DDSolid polyhedra(const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Creates a polyhedra (refere to Geant3 or Geant4 documentation)
double x3(void) const
Half-length along x of the side at y=-pDy2 of the face at +pDz.
double volume(void) const
Returns the volume of the given solid (does not work with boolean soids !)
std::vector< double > zVec(void) const
double x1(void) const
half length along x on -z
double startPhi(void) const
double radius(void) const
radius of the cut-out (neg.) or rounding (pos.)