CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
DDPolycone Class Reference

#include <DDSolid.h>

Inheritance diagram for DDPolycone:
DDPolySolid DDSolid DDBase< DDName, DDI::Solid * >

Public Member Functions

 DDPolycone (const DDSolid &s)
 
double deltaPhi (void) const
 
std::vector< double > rMaxVec (void) const
 
std::vector< double > rMinVec (void) const
 
std::vector< double > rVec (void) const
 
double startPhi (void) const
 
std::vector< double > zVec (void) const
 
- Public Member Functions inherited from DDPolySolid
 DDPolySolid (const DDSolid &s)
 
- 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, DDI::Solid * >
 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, DDI::Solid * >::reference rep () const
 
DDI::rep_traits< DDName, DDI::Solid * >::reference rep ()
 
std::string toString () const
 
const DDI::rep_traits< DDName, DDI::Solid * >::reference val () const
 
const DDI::rep_traits< DDName, DDI::Solid * >::reference val ()
 
virtual ~DDBase ()
 

Private Member Functions

 DDPolycone (void)
 

Additional Inherited Members

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

Detailed Description

Definition at line 236 of file DDSolid.h.

Constructor & Destructor Documentation

DDPolycone::DDPolycone ( const DDSolid s)

Definition at line 363 of file DDSolid.cc.

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

364  : DDPolySolid(s)
365 {
366  if( s.shape() != ddpolycone_rz && s.shape() != ddpolycone_rrz ) {
367  std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDPolycone.\n";
368  ex = ex + "Use a different solid interface!";
369  throw cms::Exception("DDException") << ex;
370  }
371 }
const N & name() const
Definition: DDBase.h:78
const std::string & ns() const
Returns the namespace.
Definition: DDName.cc:104
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:141
DDPolySolid(void)
const std::string & name() const
Returns the name.
Definition: DDName.cc:90
DDPolycone::DDPolycone ( void  )
private

Member Function Documentation

double DDPolycone::deltaPhi ( void  ) const

Definition at line 377 of file DDSolid.cc.

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

Referenced by DDDividedPolyconePhi::DDDividedPolyconePhi(), DDDividedPolyconePhi::getMaxParameter(), and DDCoreToDDXMLOutput::solid().

377 { return rep().parameters()[1]; }
const DDI::rep_traits< DDName, DDI::Solid * >::reference rep() const
Definition: DDBase.h:84
std::vector< double > DDPolycone::rMaxVec ( void  ) const

Definition at line 403 of file DDSolid.cc.

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

Referenced by DDDividedPolyconeRho::DDDividedPolyconeRho(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyconeRho::getMaxParameter(), DDDividedPolyconeRho::makeDDLogicalPart(), DDDividedPolyconePhi::makeDDLogicalPart(), DDDividedPolyconeZ::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

403  {
404  std::vector<double> tvec;
405  if (shape() == ddpolycone_rrz)
406  tvec = getVec(2, 2, 3);
407  return tvec;
408 }
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:345
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:141
std::vector< double > DDPolycone::rMinVec ( void  ) const

Definition at line 395 of file DDSolid.cc.

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

Referenced by DDDividedPolyconeRho::DDDividedPolyconeRho(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyconeRho::getMaxParameter(), and DDCoreToDDXMLOutput::solid().

395  {
396  std::vector<double> tvec;
397  if (shape() == ddpolycone_rrz)
398  tvec = getVec(1, 2, 3);
399  return tvec;
400 }
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:345
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:141
std::vector< double > DDPolycone::rVec ( void  ) const

Definition at line 379 of file DDSolid.cc.

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

Referenced by DDCoreToDDXMLOutput::solid().

379  {
380  std::vector<double> tvec;
381  if (shape() == ddpolycone_rz)
382  tvec = getVec(1, 2, 2);
383  return tvec;
384 }
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:345
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:141
double DDPolycone::startPhi ( void  ) const

Definition at line 374 of file DDSolid.cc.

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

Referenced by DDCoreToDDXMLOutput::solid().

374 { return rep().parameters()[0]; }
const DDI::rep_traits< DDName, DDI::Solid * >::reference rep() const
Definition: DDBase.h:84
std::vector< double > DDPolycone::zVec ( void  ) const

Definition at line 387 of file DDSolid.cc.

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

Referenced by DDDividedPolyconeZ::checkParametersValidity(), DDDividedPolyconeZ::DDDividedPolyconeZ(), DDDividedPolyconeZ::getMaxParameter(), DDDividedPolyconeZ::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().

387  {
388  if (shape() == ddpolycone_rz)
389  return getVec(0, 2, 2);
390  else // (shape() == ddpolycone_rrz)
391  return getVec(0, 2, 3);
392 }
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:345
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:141