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 (void) const
double phiFrom (void) const
double rInMinusZ (void) const
double rInPlusZ (void) const
double rOutMinusZ (void) const
double rOutPlusZ (void) const
double zhalf (void) const

Private Member Functions

 DDCons (void)

Detailed Description

Definition at line 266 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 ( void  ) [private]

Member Function Documentation

double DDCons::deltaPhi ( void  ) const
double DDCons::phiFrom ( void  ) 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 ( void  ) const
double DDCons::rInPlusZ ( void  ) 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 ( void  ) const
double DDCons::rOutPlusZ ( void  ) 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 ( void  ) const