Skip to content

Commit cc260c6

Browse files
aferrero2707Barthelemy
authored andcommitted
ZDC: bug fixes for ZDCRecDataCheck (#1978)
* [ZDC] bug fixes for ZDCRecDataCheck * corrected name of `h_summmary_ADC` in `check()` method * added reset of TDC parameters vector similar to the ADC one. * [ZDC] fixed TDC error string
1 parent 3584e9b commit cc260c6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Modules/ZDC/src/ZDCRecDataCheck.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Quality ZDCRecDataCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
5555
int ib = 0;
5656
for (auto& [moName, mo] : *moMap) {
5757
(void)moName;
58-
if (mo->getName() == "h_summmary_ADC") {
58+
if (mo->getName() == "h_summary_ADC") {
5959
auto* h = dynamic_cast<TH1F*>(mo->getObject());
6060
// dumpVecParam((int)h->GetNbinsX(),(int)mVectParamADC.size());
6161
if ((int)h->GetNbinsX() != (int)mVectParamADC.size()) {
@@ -127,7 +127,7 @@ Quality ZDCRecDataCheck::check(std::map<std::string, std::shared_ptr<MonitorObje
127127
}
128128
if (mQTDC == 3) {
129129
result.addReason(FlagReasonFactory::Unknown(),
130-
"It is bad because in TDC Summary" + std::to_string(mNumWTDC) + " channels:" + mStringWTDC + "have a value in the bad range");
130+
"It is bad because in TDC Summary" + std::to_string(mNumWTDC) + " channels:" + mStringETDC + "have a value in the bad range");
131131
}
132132
} else {
133133
result = Quality::Medium;
@@ -190,6 +190,8 @@ void ZDCRecDataCheck::setQualityInfo(std::shared_ptr<MonitorObject> mo, int colo
190190
void ZDCRecDataCheck::init()
191191
{
192192
mVectParamADC.clear();
193+
mVectParamTDC.clear();
194+
193195
setChName("ADC_ZNAC", "ADC");
194196
setChName("ADC_ZNA1", "ADC");
195197
setChName("ADC_ZNA2", "ADC");

0 commit comments

Comments
 (0)