Skip to content

Commit

Permalink
Merge pull request #17781 from igv4321/hcal-subdet-restriction-for-8_4
Browse files Browse the repository at this point in the history
Ignoring calibration channels in the dataframes
  • Loading branch information
davidlange6 authored Mar 12, 2017
2 parents 9b115ff + 6c6283b commit de15940
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion RecoLocalCalo/HcalRecProducers/src/HBHEPhase1Reconstructor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,15 @@ void HBHEPhase1Reconstructor::processData(const Collection& coll,
{
const DFrame& frame(*it);
const HcalDetId cell(frame.id());
const HcalRecoParam* param_ts = paramTS_->getValues(cell.rawId());

// Protection against calibration channels which are not
// in the database but can still come in the QIE11DataFrame
// in the laser calibs, etc.
const HcalSubdetector subdet = cell.subdet();
if (!(subdet == HcalSubdetector::HcalBarrel ||
subdet == HcalSubdetector::HcalEndcap ||
subdet == HcalSubdetector::HcalOuter))
continue;

// Check if the database tells us to drop this channel
const HcalChannelStatus* mydigistatus = qual.getValues(cell.rawId());
Expand All @@ -445,6 +453,7 @@ void HBHEPhase1Reconstructor::processData(const Collection& coll,
continue;

// Basic ADC decoding tools
const HcalRecoParam* param_ts = paramTS_->getValues(cell.rawId());
const HcalCalibrations& calib = cond.getHcalCalibrations(cell);
const HcalCalibrationWidths& calibWidth = cond.getHcalCalibrationWidths(cell);
const HcalQIECoder* channelCoder = cond.getHcalCoder(cell);
Expand Down

0 comments on commit de15940

Please sign in to comment.