Definition at line 31 of file SimHitHandle_TRTHit.cxx.
◆ Imp()
◆ ensureDetElemInit()
bool SimHitHandle_TRTHit::Imp::ensureDetElemInit |
( |
| ) |
const |
Definition at line 86 of file SimHitHandle_TRTHit.cxx.
95 size_t hitID =
thehit->
GetHitID(), moduleID(0), trtID(0),sectorID(0);
96 static const size_t mask = 0x1F;
97 static const size_t shift = 5;
98 std::bitset<32> idBits(hitID);
100 size_t layerID(0), ringID(0);
103 layerID = hitID &
mask;
105 moduleID = hitID &
mask;
107 ringID = hitID &
mask;
108 trtID = hitID >> shift;
109 detelem =
mgr->getBarrelElement(trtID,ringID,moduleID,layerID);
112 size_t wheelID(0), planeID(0);
115 planeID = hitID &
mask;
117 sectorID = hitID &
mask;
119 wheelID = hitID &
mask;
120 trtID = hitID >> shift;
121 bool isPositive = (trtID==2);
122 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: