CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DDPolyhedra Class Reference

#include <DDSolid.h>

Inheritance diagram for DDPolyhedra:
DDPolySolid DDSolid DDBase< DDName, std::unique_ptr< DDI::Solid > >

Public Member Functions

 DDPolyhedra (const DDSolid &s)
 
 DDPolyhedra (void)=delete
 
double deltaPhi (void) const
 
std::vector< double > rMaxVec (void) const
 
std::vector< double > rMinVec (void) const
 
std::vector< double > rVec (void) const
 
int sides (void) const
 
double startPhi (void) const
 
std::vector< double > zVec (void) const
 
- Public Member Functions inherited from DDPolySolid
 DDPolySolid (const DDSolid &s)
 
 DDPolySolid (void)=delete
 
- Public Member Functions inherited from DDSolid
 DDSolid (void)
 Uninitialilzed solid reference-object; for further details on reference-objects see documentation of DDLogicalPart. More...
 
 DDSolid (const DDName &name)
 Creates a reference-object to a solid named name. More...
 
const std::vector< double > & parameters (void) const
 Give the parameters of the solid. More...
 
DDSolidShape shape (void) const
 The type of the solid. More...
 
double volume (void) const
 Returns the volume of the given solid (does not work with boolean soids !) More...
 
- Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDI::Solid > >
void create (const DDName &name, std::unique_ptr< DDI::Solid >vals)
 
void create (const DDName &name)
 
 DDBase ()
 
const DDNameddname () const
 
def_type isDefined () const
 
bool isValid () const
 true, if the wrapped pointer is valid More...
 
const DDNamename () const
 
 operator bool () const
 
bool operator< (const DDBase &b) const
 
bool operator== (const DDBase &b) const
 
bool operator> (const DDBase &b) const
 
const DDI::rep_traits< DDName,
std::unique_ptr< DDI::Solid >
>::reference 
rep () const
 
DDI::rep_traits< DDName,
std::unique_ptr< DDI::Solid >
>::reference 
rep ()
 
std::string toString () const
 
const DDI::rep_traits< DDName,
std::unique_ptr< DDI::Solid >
>::reference 
val () const
 
const DDI::rep_traits< DDName,
std::unique_ptr< DDI::Solid >
>::reference 
val ()
 
virtual ~DDBase ()
 

Additional Inherited Members

- Public Types inherited from DDBase< DDName, std::unique_ptr< DDI::Solid > >
using def_type = std::pair< const DDName *, bool >
 
using StoreT = DDI::Singleton< DDI::Store< DDName, std::unique_ptr< DDI::Solid > > >
 
- Static Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDI::Solid > >
static auto begin ()
 
static auto end ()
 
- Protected Member Functions inherited from DDPolySolid
virtual std::vector< double > getVec (const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const
 note defaults please. More...
 

Detailed Description

Definition at line 235 of file DDSolid.h.

Constructor & Destructor Documentation

DDPolyhedra::DDPolyhedra ( const DDSolid s)

Definition at line 307 of file DDSolid.cc.

References ddpolyhedra_rrz, ddpolyhedra_rz, Exception, DDName::name(), DDBase< N, C >::name(), DDName::ns(), DDSolid::shape(), and AlCaHLTBitMon_QueryRunRegistry::string.

307  : DDPolySolid(s) {
309  std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDPolyhedra.\n";
310  ex = ex + "Use a different solid interface!";
311  throw cms::Exception("DDException") << ex;
312  }
313 }
const N & name() const
Definition: DDBase.h:59
DDPolySolid(void)=delete
const std::string & ns() const
Returns the namespace.
Definition: DDName.cc:52
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123
const std::string & name() const
Returns the name.
Definition: DDName.cc:41
DDPolyhedra::DDPolyhedra ( void  )
delete

Member Function Documentation

double DDPolyhedra::deltaPhi ( void  ) const
std::vector< double > DDPolyhedra::rMaxVec ( void  ) const

Definition at line 342 of file DDSolid.cc.

References ddpolyhedra_rrz, DDPolySolid::getVec(), and DDSolid::shape().

Referenced by DDDividedPolyhedraRho::DDDividedPolyhedraRho(), DDDividedPolyhedraRho::getMaxParameter(), HGCalGeomParameters::loadGeometryHexagon(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

342  {
343  std::vector<double> tvec;
345  tvec = getVec(2, 3, 3);
346  return tvec;
347 }
virtual std::vector< double > getVec(const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const
note defaults please.
Definition: DDSolid.cc:252
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123
std::vector< double > DDPolyhedra::rMinVec ( void  ) const

Definition at line 335 of file DDSolid.cc.

References ddpolyhedra_rrz, DDPolySolid::getVec(), and DDSolid::shape().

Referenced by DDDividedPolyhedraRho::DDDividedPolyhedraRho(), DDDividedPolyhedraRho::getMaxParameter(), HGCalGeomParameters::loadGeometryHexagon(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

335  {
336  std::vector<double> tvec;
338  tvec = getVec(1, 3, 3);
339  return tvec;
340 }
virtual std::vector< double > getVec(const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const
note defaults please.
Definition: DDSolid.cc:252
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123
std::vector< double > DDPolyhedra::rVec ( void  ) const

Definition at line 321 of file DDSolid.cc.

References ddpolyhedra_rz, DDPolySolid::getVec(), and DDSolid::shape().

Referenced by DDCoreToDDXMLOutput::solid().

321  {
322  std::vector<double> tvec;
324  tvec = getVec(1, 3, 2);
325  return tvec;
326 }
virtual std::vector< double > getVec(const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const
note defaults please.
Definition: DDSolid.cc:252
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123
int DDPolyhedra::sides ( void  ) const

Definition at line 315 of file DDSolid.cc.

References DDSolid::parameters(), and DDBase< DDName, std::unique_ptr< DDI::Solid > >::rep().

Referenced by DDDividedPolyhedraPhi::checkParametersValidity(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

315 { return int(rep().parameters()[0]); }
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
Definition: DDSolid.cc:125
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference rep() const
Definition: DDBase.h:65
double DDPolyhedra::startPhi ( void  ) const

Definition at line 317 of file DDSolid.cc.

References DDBase< DDName, std::unique_ptr< DDI::Solid > >::rep().

Referenced by DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

317 { return rep().parameters()[1]; }
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference rep() const
Definition: DDBase.h:65
std::vector< double > DDPolyhedra::zVec ( void  ) const

Definition at line 328 of file DDSolid.cc.

References ddpolyhedra_rz, DDPolySolid::getVec(), and DDSolid::shape().

Referenced by DDDividedPolyhedraZ::checkParametersValidity(), DDDividedPolyhedraZ::DDDividedPolyhedraZ(), DDDividedPolyhedraZ::getMaxParameter(), HGCalGeomParameters::loadGeometryHexagon(), DDDividedPolyhedraRho::makeDDLogicalPart(), DDDividedPolyhedraPhi::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDLogicalPart(), DDDividedPolyhedraZ::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().

328  {
330  return getVec(0, 3, 2);
331  else // (shape() == ddpolycone_rrz)
332  return getVec(0, 3, 3);
333 }
virtual std::vector< double > getVec(const size_t &which, const size_t &offset=0, const size_t &nVecs=1) const
note defaults please.
Definition: DDSolid.cc:252
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123