CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDTrap Class Reference

Interface to a Trapezoid. More...

#include <DDSolid.h>

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

List of all members.

Public Member Functions

double alpha1 (void) const
 Angle with respect to the y axis from the centre of the side at y=-pDy1 to the centre at y=+pDy1 of the face at -pDz.
double alpha2 (void) const
 Angle with respect to the y axis from the centre of the side at y=-pDy2 to the centre at y=+pDy2 of the face at +pDz.
 DDTrap (const DDSolid &s)
double halfZ (void) const
 half of the z-Axis
double phi (void) const
 Azimuthal angle of the line joining the centres of the faces at -/+pDz.
double theta (void) const
 Polar angle of the line joining the centres of the faces at -/+pDz.
double x1 (void) const
 Half-length along x of the side at y=-pDy1 of the face at -pDz.
double x2 (void) const
 Half-length along x of the side at y=+pDy1 of the face at -pDz.
double x3 (void) const
 Half-length along x of the side at y=-pDy2 of the face at +pDz.
double x4 (void) const
 Half-length along x of the side at y=+pDy2 of the face at +pDz.
double y1 (void) const
 Half-length along y of the face at -pDz.
double y2 (void) const
 Half-length along y of the face at +pDz.

Private Member Functions

 DDTrap (void)

Detailed Description

Interface to a Trapezoid.

The definition (parameters, local frame) of the Trapezoid is the same than in Geant4.

Definition at line 77 of file DDSolid.h.


Constructor & Destructor Documentation

DDTrap::DDTrap ( const DDSolid s)

Definition at line 158 of file DDSolid.cc.

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

                                : DDSolid(s)
{
  if (s.shape() != ddtrap) {
    std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is no DDTrap.\n";
    ex = ex + "Use a different solid interface!";
    throw cms::Exception("DDException") << ex;
  }
}
DDTrap::DDTrap ( void  ) [private]

Member Function Documentation

double DDTrap::alpha1 ( void  ) const

Angle with respect to the y axis from the centre of the side at y=-pDy1 to the centre at y=+pDy1 of the face at -pDz.

Definition at line 179 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdZ::checkParametersValidity(), DDDividedTrdX::checkParametersValidity(), DDDividedTrdY::checkParametersValidity(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[6]; }
double DDTrap::alpha2 ( void  ) const

Angle with respect to the y axis from the centre of the side at y=-pDy2 to the centre at y=+pDy2 of the face at +pDz.

Definition at line 187 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdZ::checkParametersValidity(), DDDividedTrdX::checkParametersValidity(), DDDividedTrdY::checkParametersValidity(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[10]; }
double DDTrap::halfZ ( void  ) const
double DDTrap::phi ( void  ) const

Azimuthal angle of the line joining the centres of the faces at -/+pDz.

Definition at line 171 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdZ::checkParametersValidity(), DDDividedTrdX::checkParametersValidity(), DDDividedTrdY::checkParametersValidity(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[2]; }
double DDTrap::theta ( void  ) const

Polar angle of the line joining the centres of the faces at -/+pDz.

Definition at line 169 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdZ::checkParametersValidity(), DDDividedTrdX::checkParametersValidity(), DDDividedTrdY::checkParametersValidity(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[1]; }
double DDTrap::x1 ( void  ) const
double DDTrap::x2 ( void  ) const

Half-length along x of the side at y=+pDy1 of the face at -pDz.

Definition at line 177 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdX::checkParametersValidity(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[5]; }
double DDTrap::x3 ( void  ) const

Half-length along x of the side at y=-pDy2 of the face at +pDz.

Definition at line 183 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdX::checkParametersValidity(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdY::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[8]; }
double DDTrap::x4 ( void  ) const

Half-length along x of the side at y=+pDy2 of the face at +pDz.

Definition at line 185 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), DDDividedTrdX::checkParametersValidity(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdY::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[9]; }
double DDTrap::y1 ( void  ) const
double DDTrap::y2 ( void  ) const