#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDRotationMatrix.h"
#include <memory>
Go to the source code of this file.
Classes | |
class | DDRotation |
Represents a uniquely identifyable rotation matrix. More... | |
Functions | |
DDRotation | DDanonymousRot (std::unique_ptr< DDRotationMatrix > rot) |
Defines a anonymous rotation or rotation-reflection matrix. More... | |
std::unique_ptr< DDRotationMatrix > | DDcreateRotationMatrix (double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ) |
create a new DDRotationMatrix in the GEANT3 style. More... | |
DDRotation | DDrot (const DDName &name, std::unique_ptr< DDRotationMatrix > rot) |
Definition of a uniquely identifiable rotation matrix named by DDName name. More... | |
DDRotation | DDrot (const DDName &name, double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ) |
Definition of a uniquely identifiable rotation matrix named by DDName name in the GEANT3 style. More... | |
std::unique_ptr< DDRotation > | DDrotPtr (const DDName &name, std::unique_ptr< DDRotationMatrix > rot) |
DDRotation | DDrotReflect (const DDName &name, double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ) |
Defines a rotation-reflection in the Geant3 way. More... | |
DDRotation | DDrotReflect (const DDName &name, DDRotationMatrix *rot) |
std::ostream & | operator<< (std::ostream &, const DDRotation &) |
DDRotation DDanonymousRot | ( | std::unique_ptr< DDRotationMatrix > | rot | ) |
Defines a anonymous rotation or rotation-reflection matrix.
It can't be addressed by a unique DDName. Once created, it's the users responsibility to keep the reference object DDRotation! Will be mostly used by algorithmic positioning.
Definition at line 177 of file DDRotation.cc.
References DDRotation::DDRotation(), and eostools::move().
Referenced by DDTIBLayerAlgo::execute().
std::unique_ptr<DDRotationMatrix> DDcreateRotationMatrix | ( | double | thetaX, |
double | phiX, | ||
double | thetaY, | ||
double | phiY, | ||
double | thetaZ, | ||
double | phiZ | ||
) |
create a new DDRotationMatrix in the GEANT3 style.
The Matrix must be orthonormal - left or right handed - otherwise a DDException is thrown; memory of the returned pointer belongs to the caller
Definition at line 149 of file DDRotation.cc.
References trackerTree::check(), geant_units::operators::convertRadToDeg(), funct::cos(), Exception, connectstrParser::o, funct::sin(), x, y, and z.
Referenced by DDHGCalNoTaperEndcap::createQuarter(), DDTIBLayerAlgo::execute(), and DDAngular::execute().
DDRotation DDrot | ( | const DDName & | ddname, |
std::unique_ptr< DDRotationMatrix > | rot | ||
) |
Definition of a uniquely identifiable rotation matrix named by DDName name.
DDrot() returns a reference-object DDRotation representing the rotation matrix rot.
The user must not free memory allocated for rot!
Definition at line 80 of file DDRotation.cc.
References DDRotation::DDRotation(), and eostools::move().
Referenced by DDPixFwdBlades::computeNippleParameters(), DDHCalBarrelAlgo::constructGeneralVolume(), DDHCalEndcapAlgo::constructGeneralVolume(), DDHGCalNoTaperEndcap::createQuarter(), DDHGCalWaferAlgo::execute(), DDHGCalWafer::execute(), DDTIDModulePosAlgo::execute(), DDPixFwdDiskAlgo::execute(), DDHCalTBZposAlgo::execute(), DDHCalTestBeamAlgo::execute(), DDHCalXtalAlgo::execute(), DDHCalTBCableAlgo::execute(), DDTIBLayerAlgo_MTCC::execute(), DDGEMAngular::execute(), DDTIBLayerAlgo::execute(), DDPixBarLayerUpgradeAlgo::execute(), DDHCalAngular::execute(), DDMuonAngular::execute(), DDPixPhase1FwdDiskAlgo::execute(), DDTECOptoHybAlgo::execute(), DDPixBarLayerAlgo::execute(), DDHCalFibreBundle::execute(), DDTECPhiAlgo::execute(), DDTECPhiAltAlgo::execute(), DDTIDAxialCableAlgo::execute(), DDTIDRingAlgo::execute(), DDTrackerAngularV1::execute(), DDTrackerAngular::execute(), DDTECAxialCableAlgo::execute(), DDTrackerPhiAlgo::execute(), DDTrackerPhiAltAlgo::execute(), DDLinear::execute(), DDAngular::execute(), DDTrackerRingAlgo::execute(), DDPixFwdBlades::execute(), DDDividedTubsPhi::makeDDRotation(), DDDividedConsPhi::makeDDRotation(), DDDividedPolyconePhi::makeDDRotation(), DDDividedPolyhedraPhi::makeDDRotation(), DDTBH4Algo::myrot(), DDEcalBarrelAlgo::myrot(), DDEcalBarrelNewAlgo::myrot(), DDEcalEndcapAlgo::myrot(), DDLRotationSequence::processElement(), DDLRotationByAxis::processElement(), DDLRotationAndReflection::processElement(), regressionTest_first(), and regressionTest_setup().
DDRotation DDrot | ( | const DDName & | name, |
double | thetaX, | ||
double | phiX, | ||
double | thetaY, | ||
double | phiY, | ||
double | thetaZ, | ||
double | phiZ | ||
) |
Definition of a uniquely identifiable rotation matrix named by DDName name in the GEANT3 style.
DDrot() returns a reference-object DDRotation representing the rotation matrix.
Definition at line 94 of file DDRotation.cc.
References trackerTree::check(), funct::cos(), DDRotation::DDRotation(), Exception, DDName::name(), funct::sin(), x, y, and z.
std::unique_ptr<DDRotation> DDrotPtr | ( | const DDName & | name, |
std::unique_ptr< DDRotationMatrix > | rot | ||
) |
Definition at line 87 of file DDRotation.cc.
References DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::ddname(), and eostools::move().
Referenced by DDLPosPart::processElement().
DDRotation DDrotReflect | ( | const DDName & | ddname, |
double | thetaX, | ||
double | phiX, | ||
double | thetaY, | ||
double | phiY, | ||
double | thetaZ, | ||
double | phiZ | ||
) |
Defines a rotation-reflection in the Geant3 way.
The resulting matrix MUST be a LEFThanded orthonormal system, otherwise a DDException will be thrown!
Definition at line 124 of file DDRotation.cc.
References trackerTree::check(), funct::cos(), DDRotation::DDRotation(), Exception, DDName::name(), funct::sin(), x, y, and z.
Referenced by DDLRotationAndReflection::processElement().
DDRotation DDrotReflect | ( | const DDName & | name, |
DDRotationMatrix * | rot | ||
) |
std::ostream& operator<< | ( | std::ostream & | , |
const DDRotation & | |||
) |
Definition at line 21 of file DDRotation.cc.
References geant_units::operators::convertRadToDeg(), DDBase< N, C >::isDefined(), submit::rm, and DDRotation::rotation().