Skip to content

Commit e680237

Browse files
author
Lucia Anna Tarasovicova
committed
add parameter to turn off the consistency check
1 parent 043f167 commit e680237

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Modules/CTP/include/CTP/RawDataQcTask.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class CTPRawDataReaderTask final : public TaskInterface
6969
long int mTimestamp;
7070
std::string classNames[nclasses];
7171
int mIndexMBclass = -1; // index for the MB ctp class, which is used as scaling for the ratios
72+
bool mConsistCheck = 0;
7273
};
7374

7475
} // namespace o2::quality_control_modules::ctp

Modules/CTP/src/RawDataQcTask.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ void CTPRawDataReaderTask::initialize(o2::framework::InitContext& /*ctx*/)
6262

6363
mDecoder.setDoLumi(1);
6464
mDecoder.setDecodeInps(1);
65-
mDecoder.setCheckConsistency(1);
6665
mDecoder.setDoDigits(1);
6766
for (size_t i = 0; i < nclasses; i++) {
6867
classNames[i] = "";
@@ -204,6 +203,13 @@ void CTPRawDataReaderTask::startOfActivity(const Activity& activity)
204203
mHistoBCMinBias2->SetTitle(Form("%s; %s; %s", title2.Data(), titleX2.Data(), titley2.Data()));
205204
mHistoClassRatios->SetTitle(Form("Class Ratio to %s", MBclassName.c_str()));
206205
mHistoInputRatios->SetTitle(Form("Input Ratio to %s", nameInput1.c_str()));
206+
207+
std::string performConsistencyCheck = getFromExtendedConfig<string>(activity, mCustomParameters, "consistencyCheck", "true");
208+
if (performConsistencyCheck == "true") {
209+
mDecoder.setCheckConsistency(1);
210+
} else {
211+
mDecoder.setCheckConsistency(0);
212+
}
207213
}
208214

209215
void CTPRawDataReaderTask::startOfCycle()

Modules/CTP/src/qc-ctp.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"ccdbName": "https://alice-ccdb.cern.ch",
4949
"MBclassName" : "CMTVX-B-NOPF",
5050
"MB1inputName" : "MTVX",
51-
"MB2inputName" : "MVBA"
51+
"MB2inputName" : "MVBA",
52+
"consistencyCheck" : "false"
5253
}
5354
},
5455
"PHYSICS": {

0 commit comments

Comments
 (0)