10 #include <FairMCPoint.h>
22 using std::stringstream;
38 : FairMCPoint(trackID, detID,
pos, mom, tof, length, eLoss)
53 for (Int_t iGapBit = 0; iGapBit < std::numeric_limits<UShort_t>::digits;
55 if (
fGapMask & (0x1 << iGapBit)) { iNGaps++; }
65 for (Int_t iGapBit = 0; iGapBit < std::numeric_limits<UShort_t>::digits;
67 if (
fGapMask & (0x1 << iGapBit)) {
return iGapBit; }
79 for (Int_t iGapBit = 0; iGapBit < std::numeric_limits<UShort_t>::digits;
81 if (
fGapMask & (0x1 << iGapBit)) { iLastGap = iGapBit; }
91 assert(0 <= iGap && std::numeric_limits<UShort_t>::digits > iGap);
100 ss <<
"STofPoint: track ID " << fTrackID <<
", detector ID " << fDetectorID
102 ss <<
" Position (" << fX <<
", " << fY <<
", " << fZ <<
") cm \n";
103 ss <<
" Momentum (" << fPx <<
", " << fPy <<
", " << fPz <<
") GeV \n";
104 ss <<
" Time " << fTime <<
" ns, Length " << fLength
105 <<
" cm, Energy loss " << fELoss * 1.0e06 <<
" keV \n";
106 ss <<
" Number of cells " <<
fNofCells <<
", gap mask "
107 << std::bitset<std::numeric_limits<UShort_t>::digits>(
fGapMask) << endl;