Skip to content

Commit

Permalink
Merge pull request #45868 from matt2275/Fix_Run3_ZDC
Browse files Browse the repository at this point in the history
Fix issue with ZDCSimpleRecAlgo_Run3.cc
  • Loading branch information
cmsbuild authored Sep 4, 2024
2 parents 369cd7c + d34a122 commit c74b59f
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 c74b59f

Please sign in to comment.