CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDCons Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

 DDCons (const DDSolid &s)
double deltaPhi () const
double phiFrom () const
double rInMinusZ () const
double rInPlusZ () const
double rOutMinusZ () const
double rOutPlusZ () const
double zhalf () const

Private Member Functions

 DDCons ()

Detailed Description

Definition at line 289 of file DDSolid.h.


Constructor & Destructor Documentation

DDCons::DDCons ( const DDSolid s)

Definition at line 452 of file DDSolid.cc.

References ddcons, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().

  : DDSolid(s) {
  if (s.shape() != ddcons) {
    std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDCons.\n";
    ex = ex + "Use a different solid interface!";
    throw DDException(ex);
  }
}
DDCons::DDCons ( ) [private]

Member Function Documentation

double DDCons::deltaPhi ( ) const
double DDCons::phiFrom ( ) const

Definition at line 471 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[5]; }
double DDCons::rInMinusZ ( ) const
double DDCons::rInPlusZ ( ) const

Definition at line 467 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedConsRho::DDDividedConsRho(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[3]; }
double DDCons::rOutMinusZ ( ) const
double DDCons::rOutPlusZ ( ) const

Definition at line 469 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[4]; }
double DDCons::zhalf ( ) const