Geometrical description of a sensor. 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 sensor.
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.
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 37 of file DetGeomDesc.h.
typedef std::vector< const DetGeomDesc*> DetGeomDesc::ConstContainer |
Definition at line 40 of file DetGeomDesc.h.
typedef std::vector< DetGeomDesc*> DetGeomDesc::Container |
Definition at line 41 of file DetGeomDesc.h.
typedef unsigned int DetGeomDesc::GeometricEnumType |
a type (not used in the moment, left for the future)
Definition at line 45 of file DetGeomDesc.h.
Definition at line 42 of file DetGeomDesc.h.
DetGeomDesc::DetGeomDesc | ( | nav_type | navtype, |
GeometricEnumType | dd = 0 |
||
) |
Constructors to be used when looping over DDD.
Definition at line 24 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 44 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 62 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 80 of file DetGeomDesc.cc.
|
virtual |
destructor
Definition at line 109 of file DetGeomDesc.cc.
References deepDeleteComponents().
void DetGeomDesc::addComponent | ( | DetGeomDesc * | det | ) |
Definition at line 160 of file DetGeomDesc.cc.
References _container.
Referenced by CTPPSGeometryESModule::applyAlignments(), CTPPSGeometryESModule::buildDetGeomDesc(), and setComponents().
void DetGeomDesc::addComponents | ( | Container | cont | ) |
Definition at line 151 of file DetGeomDesc.cc.
References _container.
Referenced by setComponents().
void DetGeomDesc::ApplyAlignment | ( | const RPAlignmentCorrectionData & | t | ) |
alignment
Definition at line 185 of file DetGeomDesc.cc.
References _rot, _trans, RPAlignmentCorrectionData::getRotationMatrix(), and RPAlignmentCorrectionData::getTranslation().
Referenced by CTPPSGeometryESModule::applyAlignments(), and material().
|
inline |
Definition at line 75 of file DetGeomDesc.h.
References _container, deepDeleteComponents(), and deleteComponents().
Referenced by deepDeleteComponents().
|
virtual |
access to the tree structure
Definition at line 123 of file DetGeomDesc.cc.
References _container.
Referenced by CTPPSGeometryESModule::applyAlignments(), CTPPSGeometry::build(), and geographicalID().
|
virtual |
|
inlinevirtual |
|
virtual |
Definition at line 134 of file DetGeomDesc.cc.
References _container, popcon2dropbox::copy(), and isLeaf().
Referenced by geographicalID().
void DetGeomDesc::deepDeleteComponents | ( | ) |
deletes just the first daughters
Definition at line 174 of file DetGeomDesc.cc.
References _container, and clearComponents().
Referenced by clearComponents(), and ~DetGeomDesc().
void DetGeomDesc::deleteComponents | ( | ) |
Definition at line 167 of file DetGeomDesc.cc.
References _container.
Referenced by clearComponents().
|
inlinevirtual |
|
inlinevirtual |
Definition at line 61 of file DetGeomDesc.h.
References _geographicalID, components(), and deepComponents().
Referenced by CTPPSGeometryESModule::applyAlignments(), and CTPPSGeometry::build().
|
inline |
traverses the treee and deletes all nodes.
Definition at line 79 of file DetGeomDesc.h.
References _container.
Referenced by deepComponents().
|
inlinevirtual |
Definition at line 94 of file DetGeomDesc.h.
References _material, and ApplyAlignment().
Referenced by DetGeomDesc().
|
inline |
Definition at line 87 of file DetGeomDesc.h.
References _ddname.
Referenced by config.CFG::__str__(), CTPPSGeometryESModule::applyAlignments(), CTPPSGeometry::build(), DetGeomDesc(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().
|
inline |
DetGeomDesc & DetGeomDesc::operator= | ( | const DetGeomDesc & | ref | ) |
|
inline |
Definition at line 89 of file DetGeomDesc.h.
References _params.
Referenced by CTPPSDiamondRecHitProducerAlgorithm::build().
|
inlinevirtual |
returns all the components below
retuns the geometrical history
Definition at line 67 of file DetGeomDesc.h.
References _parents.
|
inline |
geometry information
Definition at line 83 of file DetGeomDesc.h.
References _rot.
Referenced by RPixPlaneCombinatoryTracking::calculatePointOnDetector(), RPixRoadFinder::findPattern(), RPixPlaneCombinatoryTracking::findTracks(), CTPPSGeometry::globalToLocal(), CTPPSGeometry::globalToLocalDirection(), CTPPSGeometry::localToGlobal(), and CTPPSGeometry::localToGlobalDirection().
|
inline |
components (children) management
Definition at line 71 of file DetGeomDesc.h.
References _container, addComponent(), addComponents(), and eostools::move().
|
inline |
ID stuff.
Definition at line 60 of file DetGeomDesc.h.
References _geographicalID, and triggerObjects_cff::id.
Referenced by CTPPSGeometryESModule::buildDetGeomDesc().
|
inline |
|
inline |
Definition at line 84 of file DetGeomDesc.h.
References _trans.
Referenced by TotemRPDQMSource::analyze(), CTPPSDiamondRecHitProducerAlgorithm::build(), CTPPSGeometry::globalToLocal(), CTPPSGeometry::localToGlobal(), and TotemRPUVPatternFinder::produce().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
private |
Definition at line 100 of file DetGeomDesc.h.
Referenced by addComponent(), addComponents(), clearComponents(), components(), deepComponents(), deepDeleteComponents(), deleteComponents(), isLeaf(), and setComponents().
|
private |
Definition at line 113 of file DetGeomDesc.h.
Referenced by copyno(), DetGeomDesc(), and operator=().
|
private |
Definition at line 101 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), navType(), and operator=().
|
private |
Definition at line 105 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), name(), and operator=().
|
private |
Definition at line 111 of file DetGeomDesc.h.
Referenced by density(), DetGeomDesc(), and operator=().
|
private |
Definition at line 108 of file DetGeomDesc.h.
Referenced by geographicalID(), operator=(), and setGeographicalID().
|
private |
Definition at line 114 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), material(), and operator=().
|
private |
Definition at line 107 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and params().
|
private |
Definition at line 109 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and parents().
|
private |
Definition at line 103 of file DetGeomDesc.h.
Referenced by ApplyAlignment(), DetGeomDesc(), operator=(), and rotation().
|
private |
Definition at line 104 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and shape().
|
private |
Definition at line 102 of file DetGeomDesc.h.
Referenced by ApplyAlignment(), DetGeomDesc(), operator=(), and translation().
|
private |
Definition at line 106 of file DetGeomDesc.h.
Referenced by operator=(), and type().
|
private |
Definition at line 110 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and volume().
|
private |
Definition at line 112 of file DetGeomDesc.h.
Referenced by DetGeomDesc(), operator=(), and weight().