CMS 3D CMS Logo

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 (const DDName &name)
 Creates a reference-object to a solid named name. More...
 
 DDSolid (void)
 Uninitialilzed solid reference-object; for further details on reference-objects see documentation of DDLogicalPart. 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)
 
void create (const DDName &name, std::unique_ptr< DDI::Solid > vals)
 
 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
 
DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference rep ()
 
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference rep () const
 
std::string toString () const
 
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference val ()
 
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference val () const
 
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 224 of file DDSolid.h.

Constructor & Destructor Documentation

◆ DDPolyhedra() [1/2]

DDPolyhedra::DDPolyhedra ( const DDSolid s)

Definition at line 303 of file DDSolid.cc.

303  : DDPolySolid(s) {
304  if (s.shape() != DDSolidShape::ddpolyhedra_rz && s.shape() != DDSolidShape::ddpolyhedra_rrz) {
305  std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDPolyhedra.\n";
306  ex = ex + "Use a different solid interface!";
307  throw cms::Exception("DDException") << ex;
308  }
309 }

References ddpolyhedra_rrz, ddpolyhedra_rz, Exception, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ DDPolyhedra() [2/2]

DDPolyhedra::DDPolyhedra ( void  )
delete

Member Function Documentation

◆ deltaPhi()

double DDPolyhedra::deltaPhi ( void  ) const

◆ rMaxVec()

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

◆ rMinVec()

std::vector< double > DDPolyhedra::rMinVec ( void  ) const

◆ rVec()

std::vector< double > DDPolyhedra::rVec ( void  ) const

Definition at line 317 of file DDSolid.cc.

317  {
318  std::vector<double> tvec;
320  tvec = getVec(1, 3, 2);
321  return tvec;
322 }

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

Referenced by DDCoreToDDXMLOutput::solid().

◆ sides()

int DDPolyhedra::sides ( void  ) const

◆ startPhi()

double DDPolyhedra::startPhi ( void  ) const

◆ zVec()

std::vector< double > DDPolyhedra::zVec ( void  ) const
DDSolidShape::ddpolyhedra_rrz
DDPolySolid::getVec
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:248
DDSolid::shape
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:119
alignCSCRings.s
s
Definition: alignCSCRings.py:92
DDSolidShape::ddpolyhedra_rz
DDBase< DDName, std::unique_ptr< DDI::Solid > >::rep
const DDI::rep_traits< DDName, std::unique_ptr< DDI::Solid > >::reference rep() const
Definition: DDBase.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
createfilelist.int
int
Definition: createfilelist.py:10
Exception
Definition: hltDiff.cc:245
DDSolid::parameters
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
Definition: DDSolid.cc:121
DDPolySolid::DDPolySolid
DDPolySolid(void)=delete