![]() |
![]() |
Geometrical description of a detector. More...
#include <DetGeomDesc.h>
Public Types | |
typedef std::vector< const DetGeomDesc * > | ConstContainer |
typedef std::vector < DetGeomDesc * > | Container |
typedef unsigned int | GeometricEnumType |
a type (not used in the moment, left for the future) More... | |
typedef DDExpandedView::nav_type | nav_type |
Public Member Functions | |
void | addComponent (DetGeomDesc *) |
void | addComponents (Container cont) |
void | ApplyAlignment (const RPAlignmentCorrectionData &) |
alignment More... | |
void | clearComponents () |
virtual ConstContainer | components () const |
access to the tree structure More... | |
virtual Container | components () |
virtual int | copyno () const |
virtual ConstContainer | deepComponents () const |
void | deepDeleteComponents () |
deletes just the first daughters More... | |
void | deleteComponents () |
virtual double | density () const |
DetGeomDesc (nav_type navtype, GeometricEnumType dd=0) | |
Constructors to be used when looping over DDD. More... | |
DetGeomDesc (DDExpandedView *ev, GeometricEnumType dd=0) | |
DetGeomDesc (DDFilteredView *fv, GeometricEnumType dd=0) | |
DetGeomDesc (const DetGeomDesc &) | |
copy constructor and assignment operator More... | |
virtual DetId | geographicalID () const |
bool | isLeaf () const |
traverses the treee and deletes all nodes. More... | |
virtual std::string | material () const |
DDName | name () const |
nav_type | navType () const |
DetGeomDesc & | operator= (const DetGeomDesc &) |
std::vector< double > | params () const |
virtual std::vector < DDExpandedNode > | parents () const |
returns all the components below More... | |
DDRotationMatrix | rotation () const |
geometry information More... | |
void | setComponents (Container cont) |
components (children) management More... | |
void | setGeographicalID (DetId id) |
ID stuff. More... | |
DDSolidShape | shape () const |
DDTranslation | translation () const |
GeometricEnumType | type () const |
virtual double | volume () const |
virtual double | weight () const |
virtual | ~DetGeomDesc () |
destructor More... | |
Private Attributes | |
Container | _container |
int | _copy |
nav_type | _ddd |
DDName | _ddname |
double | _density |
DetId | _geographicalID |
std::string | _material |
std::vector< double > | _params |
std::vector< DDExpandedNode > | _parents |
DDRotationMatrix | _rot |
DDSolidShape | _shape |
DDTranslation | _trans |
GeometricEnumType | _type |
double | _volume |
double | _weight |
Geometrical description of a detector.
See schema of TOTEM RP geometry classes
Class resembling GeometricDet class. Slight changes were made to suit needs of the TOTEM RP description. Each instance is a tree node, with geometrical information from DDD (shift, rotation, material, ...), ID and list of children nodes. It is intended to have two such a trees. One for ideal geometry (within IdealGeometryRecord) and second for real geometry (VeryForwardRealGeometryRecord). The transition from ideal to real geometry (i.e. loading alignments) is done by TotemRPRealGeometryModule.
The translation and rotation parameters are defined by local-to-global coordinate transform. That is, if r_l is a point in local coordinate system and x_g in global, then the transform reads:
x_g = rotation * x_l + translation
Definition at line 40 of file DetGeomDesc.h.
typedef std::vector< const DetGeomDesc*> DetGeomDesc::ConstContainer |
Definition at line 43 of file DetGeomDesc.h.
typedef std::vector< DetGeomDesc*> DetGeomDesc::Container |
Definition at line 44 of file DetGeomDesc.h.
typedef unsigned int DetGeomDesc::GeometricEnumType |
a type (not used in the moment, left for the future)
Definition at line 48 of file DetGeomDesc.h.
Definition at line 45 of file DetGeomDesc.h.
DetGeomDesc::DetGeomDesc | ( | nav_type | navtype, |
GeometricEnumType | dd = 0 |
||
) |
Constructors to be used when looping over DDD.
Definition at line 22 of file DetGeomDesc.cc.
DetGeomDesc::DetGeomDesc | ( | DDExpandedView * | ev, |
GeometricEnumType | dd = 0 |
||
) |
Definition at line 42 of file DetGeomDesc.cc.
DetGeomDesc::DetGeomDesc | ( | DDFilteredView * | fv, |
GeometricEnumType | dd = 0 |
||
) |
Definition at line 60 of file DetGeomDesc.cc.
DetGeomDesc::DetGeomDesc | ( | const DetGeomDesc & | ref | ) |
copy constructor and assignment operator
Definition at line 78 of file DetGeomDesc.cc.
|
virtual |
destructor
Definition at line 107 of file DetGeomDesc.cc.
void DetGeomDesc::addComponent | ( | DetGeomDesc * | det | ) |
Definition at line 159 of file DetGeomDesc.cc.
Referenced by DDDTotemRPContruction::buildDetGeomDesc().
void DetGeomDesc::addComponents | ( | Container | cont | ) |
Definition at line 150 of file DetGeomDesc.cc.
void DetGeomDesc::ApplyAlignment | ( | const RPAlignmentCorrectionData & | t | ) |
alignment
Definition at line 184 of file DetGeomDesc.cc.
|
inline |
|
virtual |
access to the tree structure
Definition at line 121 of file DetGeomDesc.cc.
|
virtual |
Definition at line 114 of file DetGeomDesc.cc.
|
inlinevirtual |
|
virtual |
Definition at line 132 of file DetGeomDesc.cc.
void DetGeomDesc::deepDeleteComponents | ( | ) |
deletes just the first daughters
Definition at line 173 of file DetGeomDesc.cc.
void DetGeomDesc::deleteComponents | ( | ) |
Definition at line 166 of file DetGeomDesc.cc.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
traverses the treee and deletes all nodes.
Definition at line 82 of file DetGeomDesc.h.
References _container.
|
inlinevirtual |
|
inline |
Definition at line 90 of file DetGeomDesc.h.
References _ddname.
Referenced by VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
DetGeomDesc & DetGeomDesc::operator= | ( | const DetGeomDesc & | ref | ) |
Definition at line 85 of file DetGeomDesc.cc.
|
inline |
|
inlinevirtual |
returns all the components below
retuns the geometrical history
Definition at line 70 of file DetGeomDesc.h.
References _parents.
|
inline |
|
inline |
components (children) management
Definition at line 74 of file DetGeomDesc.h.
References _container, and generateEDF::cont.
|
inline |
ID stuff.
Definition at line 63 of file DetGeomDesc.h.
References _geographicalID.
Referenced by DDDTotemRPContruction::buildDetGeomDesc().
|
inline |
|
inline |
Definition at line 87 of file DetGeomDesc.h.
References _trans.
Referenced by CTPPSDiamondRecHitProducerAlgorithm::build().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
private |
Definition at line 103 of file DetGeomDesc.h.
Referenced by clearComponents(), isLeaf(), and setComponents().
|
private |
Definition at line 116 of file DetGeomDesc.h.
Referenced by copyno().
|
private |
Definition at line 104 of file DetGeomDesc.h.
Referenced by navType().
|
private |
Definition at line 108 of file DetGeomDesc.h.
Referenced by name().
|
private |
Definition at line 114 of file DetGeomDesc.h.
Referenced by density().
|
private |
Definition at line 111 of file DetGeomDesc.h.
Referenced by geographicalID(), and setGeographicalID().
|
private |
Definition at line 117 of file DetGeomDesc.h.
Referenced by material().
|
private |
Definition at line 110 of file DetGeomDesc.h.
Referenced by params().
|
private |
Definition at line 112 of file DetGeomDesc.h.
Referenced by parents().
|
private |
Definition at line 106 of file DetGeomDesc.h.
Referenced by rotation().
|
private |
Definition at line 107 of file DetGeomDesc.h.
Referenced by shape().
|
private |
Definition at line 105 of file DetGeomDesc.h.
Referenced by translation().
|
private |
Definition at line 109 of file DetGeomDesc.h.
Referenced by type().
|
private |
Definition at line 113 of file DetGeomDesc.h.
Referenced by volume().
|
private |
Definition at line 115 of file DetGeomDesc.h.
Referenced by weight().