Interface to a Trapezoid. More...
#include <DDSolid.h>
Public Member Functions | |
double | alpha1 () 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 () 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 () const |
half of the z-Axis | |
double | phi () const |
Azimuthal angle of the line joining the centres of the faces at -/+pDz. | |
double | theta () const |
Polar angle of the line joining the centres of the faces at -/+pDz. | |
double | x1 () const |
Half-length along x of the side at y=-pDy1 of the face at -pDz. | |
double | x2 () const |
Half-length along x of the side at y=+pDy1 of the face at -pDz. | |
double | x3 () const |
Half-length along x of the side at y=-pDy2 of the face at +pDz. | |
double | x4 () const |
Half-length along x of the side at y=+pDy2 of the face at +pDz. | |
double | y1 () const |
Half-length along y of the face at -pDz. | |
double | y2 () const |
Half-length along y of the face at +pDz. |
Interface to a Trapezoid.
The definition (parameters, local frame) of the Trapezoid is the same than in Geant4.
DDTrap::DDTrap | ( | const DDSolid & | s | ) |
Definition at line 161 of file DDSolid.cc.
References ddtrap, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().
double DDTrap::alpha1 | ( | ) | 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 182 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 | ( | ) | 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 190 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 | ( | ) | const |
half of the z-Axis
Definition at line 170 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedTrdZ::DDDividedTrdZ(), DDDividedTrdZ::getMaxParameter(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedTrdZ::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[0]; }
double DDTrap::phi | ( | ) | const |
Azimuthal angle of the line joining the centres of the faces at -/+pDz.
Definition at line 174 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 | ( | ) | const |
Polar angle of the line joining the centres of the faces at -/+pDz.
Definition at line 172 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 | ( | ) | const |
Half-length along x of the side at y=-pDy1 of the face at -pDz.
Definition at line 178 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedTrdX::checkParametersValidity(), DDDividedTrdX::DDDividedTrdX(), DDDividedTrdX::getMaxParameter(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTrdY::makeDDLogicalPart(), DDDividedTrdX::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[4]; }
double DDTrap::x2 | ( | ) | const |
Half-length along x of the side at y=+pDy1 of the face at -pDz.
Definition at line 180 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 | ( | ) | const |
Half-length along x of the side at y=-pDy2 of the face at +pDz.
Definition at line 186 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 | ( | ) | const |
Half-length along x of the side at y=+pDy2 of the face at +pDz.
Definition at line 188 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 | ( | ) | const |
Half-length along y of the face at -pDz.
Definition at line 176 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedTrdY::checkParametersValidity(), DDDividedTrdY::DDDividedTrdY(), DDDividedTrdY::getMaxParameter(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), DDDividedTrdY::makeDDTranslation(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[3]; }
double DDTrap::y2 | ( | ) | const |
Half-length along y of the face at +pDz.
Definition at line 184 of file DDSolid.cc.
References DDBase< DDName, DDI::Solid * >::rep().
Referenced by SolidsForOnline::beginRun(), DDDividedTrdY::checkParametersValidity(), HcalNumberingFromDDD::loadGeometry(), DDDividedTrdZ::makeDDLogicalPart(), DDDividedTrdX::makeDDLogicalPart(), and DDCoreToDDXMLOutput::solid().
{ return rep().parameters()[7]; }