CMS 3D CMS Logo

List of all members | Static Public Member Functions
DDSolidFactory Struct Reference

#include <DDSolid.h>

Static Public Member Functions

static DDSolid box (const DDName &name, double xHalf, double yHalf, double zHalf)
 Creates a box with side length 2*xHalf, 2*yHalf, 2*zHalf. More...
 
static DDSolid cons (const DDName &name, double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double phiFrom, double deltaPhi)
 
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)
 
static DDSolid ellipsoid (const DDName &name, double xSemiAxis, double ySemiAxis, double zSemiAxis, double zBottomCut=0., double zTopCut=0.)
 
static DDSolid ellipticalTube (const DDName &name, double xSemiAxis, double ySemiAxis, double zHeight)
 
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)
 
static DDSolid intersection (const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
 
static DDSolid multiUnionSolid (const DDName &name, const std::vector< DDSolid > &a, const std::vector< DDTranslation > &t, const std::vector< DDRotation > &r)
 
static DDSolid orb (const DDName &name, double radius)
 
static DDSolid parallelepiped (const DDName &name, double xHalf, double yHalf, double zHalf, double alpha, double theta, double phi)
 
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) More...
 
static DDSolid polycone (const DDName &name, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &r)
 Creates a polycone (refere to Geant4 documentation) More...
 
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) More...
 
static DDSolid polyhedra (const DDName &name, int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &r)
 Creates a polyhedra (refere to Geant4 documentation) More...
 
static DDSolid pseudoTrap (const DDName &name, double pDx1, double pDx2, double pDy1, double pDy2, double pDz, double radius, bool atMinusZ)
 
static DDSolid reflection (const DDName &name, const DDSolid &s)
 
static DDSolid shapeless (const DDName &name)
 
static DDSolid sphere (const DDName &name, double innerRadius, double outerRadius, double startPhi, double deltaPhi, double startTheta, double deltaTheta)
 
static DDSolid subtraction (const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
 
static DDSolid torus (const DDName &name, double rMin, double rMax, double rTorus, double startPhi, double deltaPhi)
 
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 truncTubs (const DDName &name, double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
 
static DDSolid tubs (const DDName &name, double zhalf, double rIn, double rOut, double startPhi, double deltaPhi)
 
static DDSolid unionSolid (const DDName &name, const DDSolid &a, const DDSolid &b, const DDTranslation &t, const DDRotation &r)
 

Detailed Description

Definition at line 456 of file DDSolid.h.

Member Function Documentation

DDSolid DDSolidFactory::box ( const DDName name,
double  xHalf,
double  yHalf,
double  zHalf 
)
static
DDSolid DDSolidFactory::cons ( const DDName name,
double  zhalf,
double  rInMinusZ,
double  rOutMinusZ,
double  rInPlusZ,
double  rOutPlusZ,
double  phiFrom,
double  deltaPhi 
)
static

Definition at line 959 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDHCalFibreBundle::execute(), DDDividedConsRho::makeDDLogicalPart(), DDDividedConsPhi::makeDDLogicalPart(), DDDividedConsZ::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), and DDLCone::processElement().

967 {
968  return DDSolid(name, new DDI::Cons(zhalf,
969  rInMinusZ, rOutMinusZ,
970  rInPlusZ, rOutPlusZ,
971  phiFrom, deltaPhi));
972 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
Definition: Cons.h:9
DDSolid DDSolidFactory::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 
)
static

Definition at line 995 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDCutTubsFromPoints::execute(), and DDLTubs::processElement().

1001 {
1002  return DDSolid(name, new DDI::CutTubs(zhalf,rIn,rOut,phiFrom,deltaPhi,lx,ly,lz,tx,ty,tz));
1003 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::ellipsoid ( const DDName name,
double  xSemiAxis,
double  ySemiAxis,
double  zSemiAxis,
double  zBottomCut = 0.,
double  zTopCut = 0. 
)
static

Definition at line 1033 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLEllipsoid::processElement().

1040 {
1041  return DDSolid(name, new DDI::Ellipsoid( xSemiAxis,
1042  ySemiAxis,
1043  zSemiAxis,
1044  zBottomCut,
1045  zTopCut
1046  ));
1047 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::ellipticalTube ( const DDName name,
double  xSemiAxis,
double  ySemiAxis,
double  zHeight 
)
static

Definition at line 1026 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLEllipticalTube::processElement().

1028 {
1029  return DDSolid(name, new DDI::EllipticalTube(xSemiAxis, ySemiAxis, zHeight));
1030 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::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 
)
static

Definition at line 869 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLPgonGenerator::processElement().

876 {
877  return DDSolid( name, new DDI::ExtrudedPolygon( x, y, z, zx, zy, zscale ));
878 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::intersection ( const DDName name,
const DDSolid a,
const DDSolid b,
const DDTranslation t,
const DDRotation r 
)
static

Definition at line 908 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLBooleanSolid::processElement().

912 {
913  return DDSolid(name, new DDI::Intersection(a,b,t,r));
914 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::multiUnionSolid ( const DDName name,
const std::vector< DDSolid > &  a,
const std::vector< DDTranslation > &  t,
const std::vector< DDRotation > &  r 
)
static

Definition at line 890 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLMultiUnionSolid::processElement().

894 {
895  return DDSolid(name, new DDI::MultiUnion(a,t,r));
896 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
double a
Definition: hdecay.h:121
DDSolid DDSolidFactory::orb ( const DDName name,
double  radius 
)
static

Definition at line 1020 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLOrb::processElement().

1021 {
1022  return DDSolid(name, new DDI::Orb(radius));
1023 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
Definition: Orb.h:13
DDSolid DDSolidFactory::parallelepiped ( const DDName name,
double  xHalf,
double  yHalf,
double  zHalf,
double  alpha,
double  theta,
double  phi 
)
static

Definition at line 1050 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLParallelepiped::processElement().

1053 {
1054  return DDSolid(name, new DDI::Parallelepiped(xHalf, yHalf, zHalf,
1055  alpha, theta, phi));
1056 }
float alpha
Definition: AMPTWrapper.h:95
Geom::Theta< T > theta() const
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::polycone ( const DDName name,
double  startPhi,
double  deltaPhi,
const std::vector< double > &  z,
const std::vector< double > &  rmin,
const std::vector< double > &  rmax 
)
static

Creates a polycone (refere to Geant3 or Geant4 documentation)

The center of the polycone (for positioning) is the center of coordinates of the polycone definition (x=y=z=0)

Definition at line 828 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDTIBRadCableAlgo_MTCC::execute(), DDTOBRadCableAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTECAxialCableAlgo::execute(), DDEcalBarrelNewAlgo::execute(), DDEcalBarrelAlgo::execute(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), and DDLPolyGenerator::processElement().

832 {
833  return DDSolid(name, new DDI::Polycone(startPhi, deltaPhi, z, rmin, rmax));
834 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::polycone ( const DDName name,
double  startPhi,
double  deltaPhi,
const std::vector< double > &  z,
const std::vector< double > &  r 
)
static

Creates a polycone (refere to Geant4 documentation)

The center of the polycone (for positioning) is the center of coordinates of the polycone definition (x=y=z=0)

Definition at line 837 of file DDSolid.cc.

References DDSolid::DDSolid().

840 {
841  return DDSolid(name, new DDI::Polycone(startPhi, deltaPhi, z, r));
842 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::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 
)
static
DDSolid DDSolidFactory::polyhedra ( const DDName name,
int  sides,
double  startPhi,
double  deltaPhi,
const std::vector< double > &  z,
const std::vector< double > &  r 
)
static

Creates a polyhedra (refere to Geant4 documentation)

The center of the polyhedra (for positioning) is the center of coordinates of the polyhedra definition (x=y=z=0)

Definition at line 858 of file DDSolid.cc.

References DDSolid::DDSolid().

864 {
865  return DDSolid(name, new DDI::Polyhedra( sides, startPhi, deltaPhi, z, r ));
866 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::pseudoTrap ( const DDName name,
double  pDx1,
double  pDx2,
double  pDy1,
double  pDy2,
double  pDz,
double  radius,
bool  atMinusZ 
)
static

if true, the cut-out or rounding is applied at -dz, else at +dz

Parameters
pDx1Half-length along x at the surface positioned at -dz
pDx2Half-length along x at the surface positioned at +dz
pDy1Half-length along y at the surface positioned at -dz
pDy2Half-length along y at the surface positioned at +dz
pDzHalf of the height of the pseudo trapezoid along z
radiusradius of the cut-out (negative sign) or rounding (pos. sign)
atMinusZif true, the cut-out or rounding is applied at -dz, else at +dz

Definition at line 931 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLPseudoTrap::processElement().

940 {
941  return DDSolid(name, new DDI::PseudoTrap(pDx1, pDx2, pDy1, pDy2, pDz, radius, atMinusZ));
942 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::reflection ( const DDName name,
const DDSolid s 
)
static

Definition at line 1065 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLReflectionSolid::processElement().

1067 {
1068  return DDSolid(name, new DDI::Reflection(s));
1069 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::shapeless ( const DDName name)
static

Definition at line 1059 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLShapelessSolid::processElement(), and regressionTest_setup().

1060 {
1061  return DDSolid(name, new DDI::Shapeless());
1062 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::sphere ( const DDName name,
double  innerRadius,
double  outerRadius,
double  startPhi,
double  deltaPhi,
double  startTheta,
double  deltaTheta 
)
static

Definition at line 1006 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLSphere::processElement().

1013 {
1014  return DDSolid(name, new DDI::Sphere(innerRadius, outerRadius,
1015  startPhi, deltaPhi,
1016  startTheta, deltaTheta));
1017 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::subtraction ( const DDName name,
const DDSolid a,
const DDSolid b,
const DDTranslation t,
const DDRotation r 
)
static
DDSolid DDSolidFactory::torus ( const DDName name,
double  rMin,
double  rMax,
double  rTorus,
double  startPhi,
double  deltaPhi 
)
static

Definition at line 975 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDTOBRadCableAlgo::execute(), and DDLTorus::processElement().

981 {
982  return DDSolid(name, new DDI::Torus(rMin, rMax, rTorus, startPhi, deltaPhi));
983 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::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 DDSolidFactory::truncTubs ( const DDName name,
double  zHalf,
double  rIn,
double  rOut,
double  startPhi,
double  deltaPhi,
double  cutAtStart,
double  cutAtDelta,
bool  cutInside 
)
static
Parameters
zHalfhalf-length of the z-axis
rIninner radius of the tube-section
rOutouter radius of the tube-section
startPhistarting angle of the tube-section
deltaPhispanning angle of the tube-section
cutAtStarttructation
cutAtDeltatruncation at deltaPhi side

Definition at line 945 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDLTubs::processElement().

954 {
955  return DDSolid(name, new DDI::TruncTubs(zHalf,rIn,rOut,startPhi,deltaPhi,cutAtStart,cutAtDelta,cutInside));
956 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38
DDSolid DDSolidFactory::tubs ( const DDName name,
double  zhalf,
double  rIn,
double  rOut,
double  startPhi,
double  deltaPhi 
)
static
DDSolid DDSolidFactory::unionSolid ( const DDName name,
const DDSolid a,
const DDSolid b,
const DDTranslation t,
const DDRotation r 
)
static

Definition at line 881 of file DDSolid.cc.

References DDSolid::DDSolid().

Referenced by DDEcalPreshowerAlgo::doLadders(), DDEcalPreshowerAlgo::doLayers(), DDCutTubsFromPoints::execute(), and DDLBooleanSolid::processElement().

885 {
886  return DDSolid(name, new DDI::Union(a,b,t,r));
887 }
A DDSolid represents the shape of a part.
Definition: DDSolid.h:38