Represents a uniquely identifyable rotation matrix. More...
#include <DDTransform.h>
Public Member Functions | |
DDRotation () | |
refers to the unit-rotation (no rotation at all) More... | |
DDRotation (const DDName &, std::unique_ptr< DDRotationMatrix >) | |
DDRotation (const DDName &name) | |
Creates a initialized reference-object or a reference to an allready defined rotation. More... | |
DDRotationMatrix & | matrix () |
DDRotationMatrix & | rotation () |
const DDRotationMatrix & | rotation () const |
Returns the read-only rotation-matrix. More... | |
Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDRotationMatrix > > | |
void | create (const DDName &name) |
void | create (const DDName &name, std::unique_ptr< DDRotationMatrix > vals) |
DDBase () | |
const DDName & | ddname () const |
def_type | isDefined () const |
bool | isValid () const |
true, if the wrapped pointer is valid More... | |
const DDName & | name () const |
operator bool () const | |
bool | operator< (const DDBase &b) const |
bool | operator== (const DDBase &b) const |
bool | operator> (const DDBase &b) const |
DDI::rep_traits< DDName, std::unique_ptr< DDRotationMatrix > >::reference | rep () |
const DDI::rep_traits< DDName, std::unique_ptr< DDRotationMatrix > >::reference | rep () const |
std::string | toString () const |
const DDI::rep_traits< DDName, std::unique_ptr< DDRotationMatrix > >::reference | val () |
const DDI::rep_traits< DDName, std::unique_ptr< DDRotationMatrix > >::reference | val () const |
virtual | ~DDBase () |
Private Member Functions | |
DDRotation (std::unique_ptr< DDRotationMatrix >) | |
Friends | |
DDRotation | DDanonymousRot (std::unique_ptr< DDRotationMatrix >) |
Defines a anonymous rotation or rotation-reflection matrix. More... | |
DDRotation | DDrot (const DDName &, std::unique_ptr< DDRotationMatrix >) |
Definition of a uniquely identifiable rotation matrix named by DDName name. More... | |
std::unique_ptr< DDRotation > | DDrotPtr (const DDName &, std::unique_ptr< DDRotationMatrix >) |
DDRotation | DDrotReflect (const DDName &, double, double, double, double, double, double) |
Defines a rotation-reflection in the Geant3 way. More... | |
Additional Inherited Members | |
Public Types inherited from DDBase< DDName, std::unique_ptr< DDRotationMatrix > > | |
using | def_type = std::pair< const DDName *, bool > |
using | StoreT = DDI::Singleton< DDI::Store< DDName, std::unique_ptr< DDRotationMatrix > > > |
Static Public Member Functions inherited from DDBase< DDName, std::unique_ptr< DDRotationMatrix > > | |
static auto | begin () |
static auto | end () |
Represents a uniquely identifyable rotation matrix.
An object of this class is a reference-object and thus leightweighted. It is uniquely identified by its DDName. Further details concerning reference-objects can be found in the documentation of DDLogicalPart.
DDRotation encapsulates ROOT Rotation3D.
Definition at line 57 of file DDTransform.h.
DDRotation::DDRotation | ( | ) |
refers to the unit-rotation (no rotation at all)
Definition at line 40 of file DDRotation.cc.
References visDQMUpload::buf, and DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::create().
DDRotation::DDRotation | ( | const DDName & | name | ) |
Creates a initialized reference-object or a reference to an allready defined rotation.
A reference-object to a defined rotation is created if a rotation was already defined usind DDrot(). Otherwise a (default) initialized reference-object named name is created. At any later stage the rotation matrix can be defined using DDrot(). All initialized-reference object referring to the same name will then immidialtely refere to the matrix created by DDrot().
DDRotation is a lightweighted reference-object. For further details concerning reference-object refere to the documentation of DDLogicalPart.
Definition at line 53 of file DDRotation.cc.
References DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::create(), and DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::name().
DDRotation::DDRotation | ( | const DDName & | name, |
std::unique_ptr< DDRotationMatrix > | rot | ||
) |
Definition at line 55 of file DDRotation.cc.
References DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::create(), eostools::move(), DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::name(), and makeMuonMisalignmentScenario::rot.
|
private |
Definition at line 60 of file DDRotation.cc.
References visDQMUpload::buf, DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::create(), eostools::move(), and makeMuonMisalignmentScenario::rot.
|
inline |
Definition at line 85 of file DDTransform.h.
References rotation().
Referenced by TGeoFromDddService::createShape(), TGeoMgrFromDdd::createShape(), DDHtmlRoDetails::details(), and DDTrackerRingAlgo::execute().
|
inline |
Definition at line 83 of file DDTransform.h.
References DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::rep().
|
inline |
Returns the read-only rotation-matrix.
Definition at line 81 of file DDTransform.h.
References DDBase< DDName, std::unique_ptr< DDRotationMatrix > >::rep().
Referenced by DDCompareDDRot(), DDPixFwdBlades::execute(), matrix(), DDCoreToDDXMLOutput::position(), DDPosData::rot(), and DDPosData::rotation().
|
friend |
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 143 of file DDRotation.cc.
|
friend |
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 67 of file DDRotation.cc.
|
friend |
Definition at line 72 of file DDRotation.cc.
|
friend |
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 101 of file DDRotation.cc.