CMS 3D CMS Logo

List of all members | Public Member Functions
DDPolycone Class Reference

#include <DDSolid.h>

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

Public Member Functions

 DDPolycone (const DDSolid &s)
 
 DDPolycone (void)=delete
 
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)
 
 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 211 of file DDSolid.h.

Constructor & Destructor Documentation

DDPolycone::DDPolycone ( const DDSolid s)

Definition at line 263 of file DDSolid.cc.

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

263  : DDPolySolid(s) {
265  std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDPolycone.\n";
266  ex = ex + "Use a different solid interface!";
267  throw cms::Exception("DDException") << ex;
268  }
269 }
const N & name() const
Definition: DDBase.h:59
DDPolySolid(void)=delete
const std::string & ns() const
Returns the namespace.
Definition: DDName.cc:51
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:119
const std::string & name() const
Returns the name.
Definition: DDName.cc:40
DDPolycone::DDPolycone ( void  )
delete

Member Function Documentation

double DDPolycone::deltaPhi ( void  ) const

Definition at line 273 of file DDSolid.cc.

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

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

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

Definition at line 296 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().

296  {
297  std::vector<double> tvec;
299  tvec = getVec(2, 2, 3);
300  return tvec;
301 }
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
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:119
std::vector< double > DDPolycone::rMinVec ( void  ) const

Definition at line 289 of file DDSolid.cc.

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

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

289  {
290  std::vector<double> tvec;
292  tvec = getVec(1, 2, 3);
293  return tvec;
294 }
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
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:119
std::vector< double > DDPolycone::rVec ( void  ) const

Definition at line 275 of file DDSolid.cc.

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

Referenced by DDCoreToDDXMLOutput::solid().

275  {
276  std::vector<double> tvec;
278  tvec = getVec(1, 2, 2);
279  return tvec;
280 }
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
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:119
double DDPolycone::startPhi ( void  ) const

Definition at line 271 of file DDSolid.cc.

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

Referenced by DDCoreToDDXMLOutput::solid().

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

Definition at line 282 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().

282  {
284  return getVec(0, 2, 2);
285  else // (shape() == DDSolidShape::ddpolycone_rrz)
286  return getVec(0, 2, 3);
287 }
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
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:119