Interface to a Trapezoid. More...
#include <DDSolid.h>
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) |
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 158 of file DDSolid.cc.
References ddtrap, Exception, DDName::name(), DDBase< N, C >::name(), DDName::ns(), DDSolid::shape(), and AlCaHLTBitMon_QueryRunRegistry::string.
: 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] |
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 |
half of the z-Axis
Definition at line 167 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 | ( | 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 |
Half-length along x of the side at y=-pDy1 of the face at -pDz.
Definition at line 175 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 | ( | 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 |
Half-length along y of the face at -pDz.
Definition at line 173 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 | ( | void | ) | const |
Half-length along y of the face at +pDz.
Definition at line 181 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]; }