Skip to content

Commit

Permalink
Added option to vary reset range for FEE reset plots
Browse files Browse the repository at this point in the history
  • Loading branch information
IsakovAD committed Aug 14, 2024
1 parent 4c8dac4 commit 52d0f4a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Modules/ITS/include/ITS/ITSFeeTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ class ITSFeeTask final : public TaskInterface
int mPayloadParseEvery_n_TF = 1; // Use >= 1 values
bool mEnableIHWReading = 0;
bool mDecodeCDW = 0;

int nResetCycle = 1;
int nCycleID = 0;
TH1I* mTFInfo; // count vs TF ID
TH2I* mTriggerVsFeeId;
TH2I* mTriggerVsFeeId_reset;
Expand Down
3 changes: 2 additions & 1 deletion Modules/ITS/itsFee.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"EnableIHWReading": "1",
"PayloadParsingEvery_n_HBFperTF": "0",
"PayloadParsingEvery_n_TF": "1",
"DecodeCDW": "0"
"DecodeCDW": "0",
"nResetCycle": "3"
}
}
},
Expand Down
14 changes: 11 additions & 3 deletions Modules/ITS/src/ITSFeeTask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,16 @@ void ITSFeeTask::startOfActivity(const Activity& activity)
ILOG(Debug, Devel) << "startOfActivity : " << activity.mId << ENDM;
}

void ITSFeeTask::startOfCycle() { ILOG(Debug, Devel) << "startOfCycle" << ENDM; }
void ITSFeeTask::startOfCycle()
{
ILOG(Debug, Devel) << "startOfCycle" << ENDM;

if (nCycleID % nResetCycle == 0) {
mTrailerCount_reset->Reset();
mTriggerVsFeeId_reset->Reset();
}
nCycleID++;
}

void ITSFeeTask::monitorData(o2::framework::ProcessingContext& ctx)
{
Expand Down Expand Up @@ -683,6 +692,7 @@ void ITSFeeTask::getParameters()
mPayloadParseEvery_n_TF = o2::quality_control_modules::common::getFromConfig<int>(mCustomParameters, "PayloadParsingEvery_n_TF", mPayloadParseEvery_n_TF);
mEnableIHWReading = o2::quality_control_modules::common::getFromConfig<int>(mCustomParameters, "EnableIHWReading", mEnableIHWReading);
mDecodeCDW = o2::quality_control_modules::common::getFromConfig<bool>(mCustomParameters, "DecodeCDW", mDecodeCDW);
nResetCycle = o2::quality_control_modules::common::getFromConfig<int>(mCustomParameters, "nResetCycle", nResetCycle);
}

void ITSFeeTask::getStavePoint(int layer, int stave, double* px, double* py)
Expand Down Expand Up @@ -754,8 +764,6 @@ void ITSFeeTask::resetLanePlotsAndCounters(bool isFullReset)
if (mResetPayload || isFullReset) {
mPayloadSize->Reset("ICES");
}
mTrailerCount_reset->Reset();
mTriggerVsFeeId_reset->Reset();
}

void ITSFeeTask::reset()
Expand Down

0 comments on commit 52d0f4a

Please sign in to comment.