======= VXDGeometry ==========
Helper class for VXD geomtry transformations: from lab frame to ladder frame coordinates and inverse.
More...
#include <VXDGeometry.h>
Public Member Functions | |
| VXDGeometry (const VXDGeometry &)=delete | |
| VXDGeometry & | operator= (const VXDGeometry &)=delete |
| VXDGeometry (gear::GearMgr *gearMgr) | |
| std::pair< int, int > | getLadderID (gear::Vector3D labPos, int layerID=-1) |
| Return the pair (layerID, ladderID) for the given position, (-1,-1) if not in sensitive volume (in the given layer). More... | |
| gear::Vector3D | lab2LadderPos (gear::Vector3D labPos, int layerID, int ladderID) |
| Convert a position in the lab frame to local ladder coordinates (x_ladder==0 is the middle of the sensitive). More... | |
| gear::Vector3D | ladder2LabPos (gear::Vector3D ladderPos, int layerID, int ladderID) |
| Convert a position in local ladder coordinates (x_ladder==0 is the middle of the sensitive) to the lab frame. More... | |
| gear::Vector3D | lab2LadderDir (gear::Vector3D labPos, int layerID, int ladderID) |
| Convert a direction in the lab frame to local ladder coordinates (x_ladder==0 is the middle of the sensitive). More... | |
| gear::Vector3D | ladder2LabDir (gear::Vector3D ladderPos, int layerID, int ladderID) |
| Convert a direction in local ladder coordinates (x_ladder==0 is the middle of the sensitive) to the lab frame. More... | |
| void | test () |
Protected Member Functions | |
| void | init () |
| VXDGeometry () | |
Protected Attributes | |
| gear::GearMgr * | _gearMgr {} |
| VXDLadders | _vxdLadders {} |
| VXDLayers | _vxdLayers {} |
======= VXDGeometry ==========
Helper class for VXD geomtry transformations: from lab frame to ladder frame coordinates and inverse.
The ladder reference system has its origin at the middle of the sensitive box in x and y, where the x-coordinate runs along the thickness of the ladder and t he y coordinate runs along its width. The z coordinate is the same as in the lab frame.
Definition at line 53 of file VXDGeometry.h.
|
delete |
| VXDGeometry::VXDGeometry | ( | gear::GearMgr * | gearMgr | ) |
Definition at line 43 of file VXDGeometry.cc.
|
inlineprotected |
Definition at line 94 of file VXDGeometry.h.
| std::pair< int, int > VXDGeometry::getLadderID | ( | gear::Vector3D | labPos, |
| int | layerID = -1 |
||
| ) |
Return the pair (layerID, ladderID) for the given position, (-1,-1) if not in sensitive volume (in the given layer).
Definition at line 181 of file VXDGeometry.cc.
|
protected |
Definition at line 50 of file VXDGeometry.cc.
| gear::Vector3D VXDGeometry::lab2LadderDir | ( | gear::Vector3D | labPos, |
| int | layerID, | ||
| int | ladderID | ||
| ) |
Convert a direction in the lab frame to local ladder coordinates (x_ladder==0 is the middle of the sensitive).
Definition at line 162 of file VXDGeometry.cc.
| gear::Vector3D VXDGeometry::lab2LadderPos | ( | gear::Vector3D | labPos, |
| int | layerID, | ||
| int | ladderID | ||
| ) |
Convert a position in the lab frame to local ladder coordinates (x_ladder==0 is the middle of the sensitive).
Definition at line 141 of file VXDGeometry.cc.
| gear::Vector3D VXDGeometry::ladder2LabDir | ( | gear::Vector3D | ladderPos, |
| int | layerID, | ||
| int | ladderID | ||
| ) |
Convert a direction in local ladder coordinates (x_ladder==0 is the middle of the sensitive) to the lab frame.
Definition at line 170 of file VXDGeometry.cc.
| gear::Vector3D VXDGeometry::ladder2LabPos | ( | gear::Vector3D | ladderPos, |
| int | layerID, | ||
| int | ladderID | ||
| ) |
Convert a position in local ladder coordinates (x_ladder==0 is the middle of the sensitive) to the lab frame.
Definition at line 151 of file VXDGeometry.cc.
|
delete |
| void VXDGeometry::test | ( | ) |
Definition at line 234 of file VXDGeometry.cc.
|
protected |
Definition at line 96 of file VXDGeometry.h.
|
protected |
Definition at line 97 of file VXDGeometry.h.
|
protected |
Definition at line 98 of file VXDGeometry.h.