You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Detectors/TRD/reconstruction/include/TRDReconstruction/DigitsParser.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ class DigitsParser
112
112
uint16_tmChannel;
113
113
uint16_tmEventCounter;
114
114
std::array<uint32_t, o2::trd::constants::HBFBUFFERMAX>::iterator mStartParse, mEndParse; // limits of parsing, effectively the link limits to parse on.
Copy file name to clipboardExpand all lines: Detectors/TRD/reconstruction/include/TRDReconstruction/TrackletsParser.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,7 @@ class TrackletsParser
104
104
boolmReturnVector{false}; // whether weare returing a vector or the raw data buffer.
105
105
106
106
uint16_tmEventCounter;
107
+
std::chrono::duration<double>mTrackletparsetime; // store the time it takes to parse
107
108
std::array<uint32_t, o2::trd::constants::HBFBUFFERMAX>::iterator mStartParse, mEndParse; // limits of parsing, effectively the link limits to parse on.
108
109
//uint32_t mCurrentLinkDataPosition256; // count of data read for current link in units of 256 bits
LOG(info) << "******* LINK # " << currentlinkindex << " and unpackORI(" << oriindex << "," << side << "," << stack << "," << layer << "," << halfchamberside << ") and an FEEID:" << std::hex << mFEEID << " det:" << std::dec << currentdetector;
270
+
LOG(info) << "******* LINK # " << currentlinkindex << " and starting at "<< mHBFoffset32 << "unpackORI(" << oriindex << "," << side << "," << stack << "," << layer << "," << halfchamberside << ") and an FEEID:" << std::hex << mFEEID << " det:" << std::dec << currentdetector;
242
271
}
243
272
// tracklet first then digit ??
244
273
// tracklets end with tracklet end marker(0x10001000 0x10001000), digits end with digit endmarker (0x0 0x0)
245
274
if (linkstart != linkend) { // if link is not empty
246
275
247
-
if (mVerbose) {
248
-
LOG(info) << "parse tracklets ";
249
-
}
250
276
bool cleardigits = false; //linkstart and linkend already have the multiple cruheaderoffsets built in
251
-
if (mVerbose) {
252
-
LOG(info) << "mem copy with offset of : " << cruhbfstartoffset << " parsing tracklets with linkstart: " << linkstart << " ending at : " << linkend;
253
-
}
254
277
trackletwordsread = mTrackletsParser.Parse(&mHBFPayload, linkstart, linkend, mFEEID, halfchamberside, currentdetector, stack, layer, cleardigits, mByteSwap, mTrackletHCHeaderState, mVerbose, mHeaderVerbose, mDataVerbose); // this will read up to the tracklet end marker.
278
+
//LOG(info) << mTrackletsParser.getTrackletsFound()<<" Tracklets processed in time : " << std::chrono::duration_cast<std::chrono::milliseconds>(trackletprocessingtime).count() << "ms";
255
279
if (mVerbose) {
256
280
LOG(info) << "trackletwordsread:" << trackletwordsread << " mem copy with offset of : " << cruhbfstartoffset << " parsing with linkstart: " << linkstart << " ending at : " << linkend;
257
281
}
258
282
linkstart += trackletwordsread;
259
-
//now we have a tracklethcheader and a digithcheader.
283
+
//now we have a tracklethcheader and a digithcheader.
0 commit comments