Skip to content

Commit

Permalink
Merge pull request #45869 from matt2275/FIX_Run3_ZDC_14_1_X
Browse files Browse the repository at this point in the history
[14_1_X] Fix issue with ZdcSimpleRecAlgo_Run3.cc
  • Loading branch information
cmsbuild authored Sep 9, 2024
2 parents 3aac50a + c66691b commit 99c1983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RecoLocalCalo/HcalRecAlgos/src/ZdcSimpleRecAlgo_Run3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ZDCRecHit ZdcSimpleRecAlgo_Run3::reco0(const QIE10DataFrame& digi,
int noiseslices = 0;
int CurrentTS = 0;
double noise = 0;
int digi_size = digi.size();
int digi_size = digi.samples();
HcalZDCDetId cell = digi.id();
int zdcsection = cell.section();

Expand Down Expand Up @@ -165,7 +165,6 @@ ZDCRecHit ZdcSimpleRecAlgo_Run3::reco0(const QIE10DataFrame& digi,
// determine energy if using Template Fit method
if (correctionMethod_.at(zdcsection) == 1 && templateFitValid_.at(zdcsection)) {
double energy = 0;
int digi_size = digi.size();
for (int iv = 0; iv < nTs_; iv++) {
int capid = digi[iv].capid();
float ped = effPeds.getValue(capid);
Expand Down

0 comments on commit 99c1983

Please sign in to comment.