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.
References _copy, _ddd, _ddname, _density, _material, _params, _parents, _rot, _shape, _trans, _volume, _weight, DDExpandedView::copyno(), density(), ev, DDExpandedView::geoHistory(), DDExpandedView::goTo(), DDExpandedView::logicalPart(), material(), name(), metProducer_cfi::parameters, DDExpandedView::rotation(), shape(), DDExpandedView::translation(), and volume().
DetGeomDesc::DetGeomDesc | ( | DDExpandedView * | ev, |
GeometricEnumType | dd = 0 |
||
) |
Definition at line 42 of file DetGeomDesc.cc.
References _copy, _ddd, _ddname, _density, _material, _params, _parents, _rot, _shape, _trans, _volume, _weight, DDExpandedView::copyno(), density(), DDExpandedView::geoHistory(), DDExpandedView::logicalPart(), material(), name(), DDExpandedView::navPos(), metProducer_cfi::parameters, DDExpandedView::rotation(), shape(), DDExpandedView::translation(), and volume().
DetGeomDesc::DetGeomDesc | ( | DDFilteredView * | fv, |
GeometricEnumType | dd = 0 |
||
) |
Definition at line 60 of file DetGeomDesc.cc.
References _copy, _ddd, _ddname, _density, _material, _params, _parents, _rot, _shape, _trans, _volume, _weight, DDFilteredView::copyno(), density(), DDFilteredView::geoHistory(), DDFilteredView::logicalPart(), material(), name(), DDFilteredView::navPos(), metProducer_cfi::parameters, DDFilteredView::rotation(), shape(), DDFilteredView::translation(), and volume().
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.
References deepDeleteComponents().
void DetGeomDesc::addComponent | ( | DetGeomDesc * | det | ) |
Definition at line 159 of file DetGeomDesc.cc.
References _container.
Referenced by TotemRPGeometryESModule::ApplyAlignments(), DDDTotemRPContruction::buildDetGeomDesc(), and setComponents().
void DetGeomDesc::addComponents | ( | Container | cont | ) |
Definition at line 150 of file DetGeomDesc.cc.
References _container.
Referenced by setComponents().
void DetGeomDesc::ApplyAlignment | ( | const RPAlignmentCorrectionData & | t | ) |
alignment
Definition at line 184 of file DetGeomDesc.cc.
References _rot, _trans, RPAlignmentCorrectionData::getRotationMatrix(), and RPAlignmentCorrectionData::getTranslation().
Referenced by TotemRPGeometryESModule::ApplyAlignments(), and material().
|
inline |
Definition at line 78 of file DetGeomDesc.h.
References _container, deepDeleteComponents(), and deleteComponents().
Referenced by deepDeleteComponents().
|
virtual |
access to the tree structure
Definition at line 121 of file DetGeomDesc.cc.
References _container.
Referenced by TotemRPGeometryESModule::ApplyAlignments(), TotemRPGeometry::Build(), and geographicalID().
|
virtual |
|
inlinevirtual |
|
virtual |
Definition at line 132 of file DetGeomDesc.cc.
References _container, popcon2dropbox::copy(), and isLeaf().
Referenced by geographicalID().
void DetGeomDesc::deepDeleteComponents | ( | ) |
deletes just the first daughters
Definition at line 173 of file DetGeomDesc.cc.
References _container, and clearComponents().
Referenced by clearComponents(), and ~DetGeomDesc().
void DetGeomDesc::deleteComponents | ( | ) |
Definition at line 166 of file DetGeomDesc.cc.
References _container.
Referenced by clearComponents().
|
inlinevirtual |
|
inlinevirtual |
Definition at line 64 of file DetGeomDesc.h.
References _geographicalID, components(), and deepComponents().
Referenced by TotemRPGeometryESModule::ApplyAlignments(), and TotemRPGeometry::Build().
|
inline |
traverses the treee and deletes all nodes.
Definition at line 82 of file DetGeomDesc.h.
References _container.
Referenced by deepComponents().
|
inlinevirtual |
Definition at line 97 of file DetGeomDesc.h.
References _material, and ApplyAlignment().
Referenced by DetGeomDesc().
|
inline |
Definition at line 90 of file DetGeomDesc.h.
References _ddname.
Referenced by config.CFG::__str__(), TotemRPGeometryESModule::ApplyAlignments(), TotemRPGeometry::Build(), DetGeomDesc(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
DetGeomDesc & DetGeomDesc::operator= | ( | const DetGeomDesc & | ref | ) |
|
inline |
Definition at line 92 of file DetGeomDesc.h.
References _params.
Referenced by CTPPSDiamondRecHitProducerAlgorithm::build().
|
inlinevirtual |
returns all the components below
retuns the geometrical history
Definition at line 70 of file DetGeomDesc.h.
References _parents.
|
inline |
geometry information
Definition at line 86 of file DetGeomDesc.h.
References _rot.
Referenced by TotemRPGeometry::GlobalToLocal(), and TotemRPGeometry::LocalToGlobal().
|
inline |
components (children) management
Definition at line 74 of file DetGeomDesc.h.
References _container, addComponent(), and addComponents().
|
inline |
ID stuff.
Definition at line 63 of file DetGeomDesc.h.
References _geographicalID, and hcalTTPDigis_cfi::id.
Referenced by DDDTotemRPContruction::buildDetGeomDesc().
|
inline |
|
inline |
Definition at line 87 of file DetGeomDesc.h.
References _trans.
Referenced by TotemRPDQMSource::analyze(), CTPPSDiamondRecHitProducerAlgorithm::build(), TotemRPGeometry::GlobalToLocal(), TotemRPGeometry::LocalToGlobal(), and TotemRPUVPatternFinder::produce().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
private |
Definition at line 103 of file DetGeomDesc.h.
Referenced by addComponent(), addComponents(), clearComponents(), components(), deepComponents(), deepDeleteComponents(), deleteComponents(), isLeaf(), and setComponents().
|
private |
Definition at line 116 of file DetGeomDesc.h.
Referenced by copyno(), DetGeomDesc(), and operator=().
|
private |
Definition at line 104 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), navType(), and operator=().
|
private |
Definition at line 108 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), name(), and operator=().
|
private |
Definition at line 114 of file DetGeomDesc.h.
Referenced by density(), DetGeomDesc(), and operator=().
|
private |
Definition at line 111 of file DetGeomDesc.h.
Referenced by geographicalID(), operator=(), and setGeographicalID().
|
private |
Definition at line 117 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), material(), and operator=().
|
private |
Definition at line 110 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and params().
|
private |
Definition at line 112 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and parents().
|
private |
Definition at line 106 of file DetGeomDesc.h.
Referenced by ApplyAlignment(), DetGeomDesc(), operator=(), and rotation().
|
private |
Definition at line 107 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and shape().
|
private |
Definition at line 105 of file DetGeomDesc.h.
Referenced by ApplyAlignment(), DetGeomDesc(), operator=(), and translation().
|
private |
Definition at line 109 of file DetGeomDesc.h.
Referenced by operator=(), and type().
|
private |
Definition at line 113 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and volume().
|
private |
Definition at line 115 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and weight().