Skip to content

Commit 30a3530

Browse files
authored
ITS/FEE: improved time granularity of payload plot (#2495)
* Payload plot fills each orbit instead of TFs * extended ranges for payload plot
1 parent cb08023 commit 30a3530

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Modules/ITS/src/ITSFeeTask.cxx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void ITSFeeTask::createFeePlots()
145145
mDecodingCheck = new TH2I("DecodingCheck", "Error in parsing data", NFees, 0, NFees, 5, 0, 5); // 0: DataFormat not recognized, 1: DDW index != 0, 2: DDW wrong identifier, 3: IHW wrong identifier, 4: CDW wrong version -- adapt y range!
146146
getObjectsManager()->startPublishing(mDecodingCheck);
147147

148-
mPayloadSize = new TH2F("PayloadSize", "Payload Size", NFees, 0, NFees, mNPayloadSizeBins, 0, 4.096e4);
148+
mPayloadSize = new TH2F("PayloadSize", "Payload Size", NFees, 0, NFees, mNPayloadSizeBins, 0, 4.096e5);
149149
getObjectsManager()->startPublishing(mPayloadSize); // mPayloadSize
150150

151151
mRDHSummary = new TH2I("RDHSummary", "Detector field in first and last page", NFees, 0, NFees, mRDHDetField.size(), 0, mRDHDetField.size());
@@ -548,6 +548,12 @@ void ITSFeeTask::monitorData(o2::framework::ProcessingContext& ctx)
548548
// Operations at last page of each orbit:
549549
// - decoding Diagnostic Word DDW0 and fill lane status plots and vectors
550550
if ((int)(o2::raw::RDHUtils::getStop(rdh)) && it.size()) {
551+
552+
for (int i = 0; i < NFees; i++) {
553+
mPayloadSize->Fill(i, (float)payloadTot[i]);
554+
payloadTot[i] = 0;
555+
}
556+
551557
const GBTDiagnosticWord* ddw;
552558
try {
553559
ddw = reinterpret_cast<const GBTDiagnosticWord*>(it.data());
@@ -665,14 +671,6 @@ void ITSFeeTask::monitorData(o2::framework::ProcessingContext& ctx)
665671
mLaneStatusOverview[1]->SetBinError(istave + 1 + StaveBoundary[ilayer], 1e-15);
666672
}
667673
}
668-
669-
for (int i = 0; i < NFees; i++) {
670-
if (nStops[i]) {
671-
float payloadAvg = (float)payloadTot[i] / nStops[i];
672-
mPayloadSize->Fill(i, payloadAvg);
673-
}
674-
}
675-
676674
mTimeFrameId++;
677675
mTFInfo->Fill(mTimeFrameId % 10000);
678676
end = std::chrono::high_resolution_clock::now();

0 commit comments

Comments
 (0)