2 #define VXDGeometry_h 1
9 #include <gear/GearMgr.h>
10 #include "CLHEP/Vector/TwoVector.h"
15 gear::Vector3D trans{};
20 typedef std::vector< std::vector< VXDLadder > > VXDLadders ;
34 typedef std::vector< VXDLayer > VXDLayers ;
62 std::pair<int,int>
getLadderID( gear::Vector3D labPos,
int layerID=-1 ) ;
67 gear::Vector3D
lab2LadderPos( gear::Vector3D labPos,
int layerID,
int ladderID) ;
72 gear::Vector3D
ladder2LabPos( gear::Vector3D ladderPos,
int layerID,
int ladderID) ;
77 gear::Vector3D
lab2LadderDir( gear::Vector3D labPos,
int layerID,
int ladderID) ;
82 gear::Vector3D
ladder2LabDir( gear::Vector3D ladderPos,
int layerID,
int ladderID) ;
92 gear::GearMgr* _gearMgr{};
93 VXDLadders _vxdLadders{};
94 VXDLayers _vxdLayers{};
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 la...
======= VXDGeometry ========== Helper class for VXD geomtry transformations: from lab frame to ladd...
Definition: VXDGeometry.h:49
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 se...
Helper struct for VXD layer geometry.
Definition: VXDGeometry.h:23
Helper struct for VXD ladder geometry.
Definition: VXDGeometry.h:13
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 sen...
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 l...
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 th...