Skip to content

Commit

Permalink
Merge pull request #23262 from DryRun/CMSSW_10_2_0_pre3_fixdigiphase1…
Browse files Browse the repository at this point in the history
…task

HCALDQM: Require HB/HE for QIE11 and HF for QIE10
  • Loading branch information
cmsbuild committed May 21, 2018
2 parents 7ba18fe + 9ebaa7f commit 791e6ba
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions DQM/HcalTasks/plugins/DigiPhase1Task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,14 @@ DigiPhase1Task::DigiPhase1Task(edm::ParameterSet const& ps):
if (rawid==0)
{meUnknownIds1LS->Fill(1); _unknownIdsPresent=true;continue;}
HcalElectronicsId const& eid(rawid);
if (did.subdet()==HcalBarrel)
if (did.subdet()==HcalBarrel) {
rawidHBValid = did.rawId();
else if (did.subdet()==HcalEndcap)
} else if (did.subdet()==HcalEndcap) {
rawidHEValid = did.rawId();
} else {
// Skip non-HB or HE detids
continue;
}

// filter out channels that are masked out
if (_xQuality.exists(did))
Expand Down Expand Up @@ -556,8 +560,12 @@ DigiPhase1Task::DigiPhase1Task(edm::ParameterSet const& ps):
if (rawid==0)
{meUnknownIds1LS->Fill(1); _unknownIdsPresent=true;continue;}
HcalElectronicsId const& eid(rawid);
if (did.subdet()==HcalForward)
if (did.subdet()==HcalForward) {
rawidValid = did.rawId();
} else {
// Skip non-HF detids
continue;
}

// filter out channels that are masked out
if (_xQuality.exists(did))
Expand Down

0 comments on commit 791e6ba

Please sign in to comment.