Skip to content

Commit

Permalink
Merge pull request #14526 from kpedro88/Phase2-WF4
Browse files Browse the repository at this point in the history
Fix setting the # of presamples for HcalUpgradeDataFrame.
  • Loading branch information
davidlange6 committed May 17, 2016
2 parents 3db91ed + f85f8ce commit cd46192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataFormats/HcalDigi/src/HcalUpgradeDataFrame.cc
Expand Up @@ -32,9 +32,9 @@ void HcalUpgradeDataFrame::setSize(int size) {
}

void HcalUpgradeDataFrame::setPresamples(int presamples) {
if (presamples>MAXSAMPLES) presamples_|=MAXSAMPLES&0xF;
if (presamples>MAXSAMPLES) presamples_=MAXSAMPLES&0xF;
else if (presamples<=0) presamples_=0;
else presamples_|=presamples&0xF;
else presamples_=presamples&0xF;
}

void HcalUpgradeDataFrame::setReadoutIds(const HcalElectronicsId& eid) {
Expand Down

0 comments on commit cd46192

Please sign in to comment.