Skip to content

Commit

Permalink
Fix issue with ZDCSimpleRecAlgo_Run3.cc
Browse files Browse the repository at this point in the history
fixed issue where digi size was determined by QIE8 method instead of QIE10 method
  • Loading branch information
matt2275 committed Sep 3, 2024
1 parent fdfb559 commit d34a122
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 d34a122

Please sign in to comment.