Definition at line 32 of file SimHitHandle_TRTHit.cxx.
◆ Imp()
◆ ensureDetElemInit()
bool SimHitHandle_TRTHit::Imp::ensureDetElemInit |
( |
| ) |
const |
Definition at line 87 of file SimHitHandle_TRTHit.cxx.
96 size_t hitID =
thehit->
GetHitID(), moduleID(0), trtID(0),sectorID(0);
97 static const size_t mask = 0x1F;
98 static const size_t shift = 5;
99 std::bitset<32> idBits(hitID);
101 size_t layerID(0), ringID(0);
104 layerID = hitID &
mask;
106 moduleID = hitID &
mask;
108 ringID = hitID &
mask;
109 trtID = hitID >> shift;
110 detelem =
mgr->getBarrelElement(trtID,ringID,moduleID,layerID);
113 size_t wheelID(0), planeID(0);
116 planeID = hitID &
mask;
118 sectorID = hitID &
mask;
120 wheelID = hitID &
mask;
121 trtID = hitID >> shift;
122 bool isPositive = (trtID==2);
123 detelem =
mgr->getEndcapElement(isPositive,wheelID,planeID,sectorID);
◆ detelem
◆ strawID
size_t SimHitHandle_TRTHit::Imp::strawID |
|
mutable |
◆ thehit
The documentation for this class was generated from the following file: