Skip to content

Commit

Permalink
Constrain HE TP depth sums to use only 11 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheralanwest committed Apr 30, 2018
1 parent 3b4c24b commit 7014935
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,10 @@ HcalTriggerPrimitiveAlgo::analyze2017(IntegerCaloSamples& samples, HcalTriggerPr
//add up value * scale factor
// In addition, divide by two in the 10 degree phi segmentation region
// to mimic 5 degree segmentation for the trigger
if(ids.size()==2) algosumvalue += int(samples[ibin+i] * 0.5 * weights_[i]);
else algosumvalue += int(samples[ibin+i] * weights_[i]);
unsigned int sample = samples[ibin+i];
if(sample>QIE11_MAX_LINEARIZATION_ET) sample = QIE11_MAX_LINEARIZATION_ET;
if(ids.size()==2) algosumvalue += int(sample * 0.5 * weights_[i]);
else algosumvalue += int(sample * weights_[i]);
}
if (algosumvalue<0) sum[ibin]=0; // low-side
//high-side
Expand Down

0 comments on commit 7014935

Please sign in to comment.