127 _temp.emplace_back(it);
138 _temp.emplace_back(const_cast<DetGeomDesc*>(
this));
142 copy(_temp2.begin(), _temp2.end(), back_inserter(_temp));
153 for(
auto & ig : cont) {
177 (
const_cast<DetGeomDesc*
>(it) )->deepDeleteComponents();
std::vector< DDExpandedNode > _parents
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
DetGeomDesc(nav_type navtype, GeometricEnumType dd=0)
Constructors to be used when looping over DDD.
void addComponents(Container cont)
DetGeomDesc & operator=(const DetGeomDesc &)
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
virtual double density() const
nav_type navPos() const
return the stack of sibling numbers
DDExpandedView::nav_type nav_type
type of data representation of DDCompactView
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
void deepDeleteComponents()
deletes just the first daughters
nav_type navPos() const
return the stack of sibling numbers which indicates the current position in the DDExpandedView ...
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
int copyno() const
Copy number associated with the current node.
virtual ~DetGeomDesc()
destructor
math::XYZVectorD getTranslation() const
void ApplyAlignment(const RPAlignmentCorrectionData &)
alignment
virtual ConstContainer components() const
access to the tree structure
Geometrical description of a sensor.
std::vector< DetGeomDesc * > Container
Alignment correction for an element of the CT-PPS detector. Within the geometry description, every sensor (more generally every element) is given its translation and rotation. These two quantities shall be understood in local-to-global coordinate transform. That is, if r_l is a point in local coordinate system and x_g in global, then it holds.
virtual std::string material() const
ROOT::Math::Rotation3D getRotationMatrix() const
const DDTranslation & translation() const
The absolute translation of the current node.
virtual double volume() const
int copyno() const
Copy number associated with the current node.
std::vector< double > _params
std::vector< const DetGeomDesc * > ConstContainer
unsigned int GeometricEnumType
a type (not used in the moment, left for the future)
bool goTo(const nav_type &)
transversed the DDExpandedView according to the given stack of sibling numbers
const DDTranslation & translation() const
The absolute translation of the current node.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the expanded-view.
virtual ConstContainer deepComponents() const
Provides an exploded view of the detector (tree-view)
void addComponent(DetGeomDesc *)
DDSolidShape shape() const
bool isLeaf() const
traverses the treee and deletes all nodes.