25 std::shared_ptr<DDLRotationByAxis> myRotations =
30 for (
size_t i = 0;
i < myRotations->size(); ++
i) {
31 atts = myRotations->getAttributeSet(
i);
32 R = myRotations->processOne(
R, atts.find(
"axis")->second, atts.find(
"angle")->second);
DDLElementRegistry * myRegistry_
void preProcessElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Called by loadAttributes AFTER attributes are loaded.
Compact representation of the geometrical detector hierarchy.
std::map< std::string, std::string > DDXMLAttribute
Represents a uniquely identifyable rotation matrix.
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
std::shared_ptr< DDXMLElement > getElement(const std::string &name)
THE most important part. Getting the pointer to a given element type.
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
DDLRotationSequence(DDLElementRegistry *myreg)
DDLRotationByAxis handles RotationByAxis elements.
The main class for processing parsed elements.
virtual void clear(void)
clear this element's contents.
virtual const DDName getDDName(const std::string &defaultNS, const std::string &attname=std::string("name"), size_t aIndex=0)