Skip to content

Commit

Permalink
MFT: Fix for timestamp determination for noise scan (#2274)
Browse files Browse the repository at this point in the history
* MFT: change of timestamp setting for noise task

* MFT: removal of test timestamp
  • Loading branch information
Edingrast authored May 2, 2024
1 parent 7fbd88e commit 48f6b22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Modules/MFT/include/MFT/QcMFTDigitCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class QcMFTDigitCheck : public o2::quality_control::checker::CheckInterface

// noise scan check

void readNoiseMap(std::shared_ptr<MonitorObject> mo);
void readNoiseMap(std::shared_ptr<MonitorObject> mo, long timestamp);
int mNoiseScan;
int mNCycles;
int mNCyclesNoiseMap;
Expand Down
9 changes: 5 additions & 4 deletions Modules/MFT/src/QcMFTDigitCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ void QcMFTDigitCheck::readMaskedChips(std::shared_ptr<MonitorObject> mo)
}
}

void QcMFTDigitCheck::readNoiseMap(std::shared_ptr<MonitorObject> mo)
void QcMFTDigitCheck::readNoiseMap(std::shared_ptr<MonitorObject> mo, long timestamp)
{
long timestamp = mo->getValidity().getMin();
map<string, string> headers;
map<std::string, std::string> filter;
auto calib = UserCodeInterface::retrieveConditionAny<o2::itsmft::NoiseMap>("MFT/Calib/NoiseMap/", filter, timestamp);
Expand Down Expand Up @@ -266,12 +265,14 @@ void QcMFTDigitCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkR
}
if (mNoiseScan == 1) {
if (mNCycles == 1) {
readNoiseMap(mo);
long timestamp = mo->getValidity().getMin();
readNoiseMap(mo, timestamp);
mOldNoisyPix = mNoisyPix;
}

if (mNCycles == mNCyclesNoiseMap) {
readNoiseMap(mo);
long timestamp = o2::ccdb::getCurrentTimestamp();
readNoiseMap(mo, timestamp);
mNewNoisyPix = mNoisyPix;

for (int i = 0; i < mNewNoisyPix.size(); i++) {
Expand Down

0 comments on commit 48f6b22

Please sign in to comment.