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 (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 222 of file DDSolid.h.

Constructor & Destructor Documentation

◆ DDPolycone() [1/2]

DDPolycone::DDPolycone ( const DDSolid s)

Definition at line 267 of file DDSolid.cc.

267  : DDPolySolid(s) {
268  if (s.shape() != DDSolidShape::ddpolycone_rz && s.shape() != DDSolidShape::ddpolycone_rrz) {
269  std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDPolycone.\n";
270  ex = ex + "Use a different solid interface!";
271  throw cms::Exception("DDException") << ex;
272  }
273 }

References ddpolycone_rrz, ddpolycone_rz, Exception, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ DDPolycone() [2/2]

DDPolycone::DDPolycone ( void  )
delete

Member Function Documentation

◆ deltaPhi()

double DDPolycone::deltaPhi ( void  ) const

◆ rMaxVec()

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

◆ rMinVec()

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

Definition at line 293 of file DDSolid.cc.

293  {
294  std::vector<double> tvec;
296  tvec = getVec(1, 2, 3);
297  return tvec;
298 }

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

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

◆ rVec()

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

Definition at line 279 of file DDSolid.cc.

279  {
280  std::vector<double> tvec;
282  tvec = getVec(1, 2, 2);
283  return tvec;
284 }

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

Referenced by DDCoreToDDXMLOutput::solid().

◆ startPhi()

double DDPolycone::startPhi ( void  ) const

Definition at line 275 of file DDSolid.cc.

275 { return rep().parameters()[0]; }

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

Referenced by DDCoreToDDXMLOutput::solid().

◆ zVec()

std::vector< double > DDPolycone::zVec ( void  ) const

Definition at line 286 of file DDSolid.cc.

286  {
288  return getVec(0, 2, 2);
289  else // (shape() == DDSolidShape::ddpolycone_rrz)
290  return getVec(0, 2, 3);
291 }

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

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

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:252
DDSolid::shape
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123
alignCSCRings.s
s
Definition: alignCSCRings.py:92
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 string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Exception
Definition: hltDiff.cc:245
DDSolidShape::ddpolycone_rrz
DDSolidShape::ddpolycone_rz
DDPolySolid::DDPolySolid
DDPolySolid(void)=delete