From 24eca6c84c2dd666116c21c3af69a7635630fc7e Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 29 May 2017 18:05:10 +0200 Subject: [PATCH] Adding anode DB suppression status to the rechits --- RecoLocalCalo/HcalRecAlgos/src/HFSimpleTimeCheck.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RecoLocalCalo/HcalRecAlgos/src/HFSimpleTimeCheck.cc b/RecoLocalCalo/HcalRecAlgos/src/HFSimpleTimeCheck.cc index e30e34d04f0d7..c347233763be8 100644 --- a/RecoLocalCalo/HcalRecAlgos/src/HFSimpleTimeCheck.cc +++ b/RecoLocalCalo/HcalRecAlgos/src/HFSimpleTimeCheck.cc @@ -107,12 +107,12 @@ HFRecHit HFSimpleTimeCheck::reconstruct(const HFPreRecHit& prehit, bool isTimingReliable[2] = {true, true}; for (unsigned ianode=0; ianode<2; ++ianode) { - const HFQIE10Info* anodeInfo = prehit.getHFQIE10Info(ianode); - if (anodeInfo) + if (flaggedBadInDB[ianode]) + states[ianode] = HFAnodeStatus::FLAGGED_BAD; + else { - if (flaggedBadInDB[ianode]) - states[ianode] = HFAnodeStatus::FLAGGED_BAD; - else + const HFQIE10Info* anodeInfo = prehit.getHFQIE10Info(ianode); + if (anodeInfo) states[ianode] = determineAnodeStatus(ianode, *anodeInfo, &isTimingReliable[ianode]); }