Skip to content

Commit

Permalink
Update ZdcSimpleRecAlgo_Run3.cc
Browse files Browse the repository at this point in the history
Fixed issue where digi size was determined using QIE8 method instead of QIE10
  • Loading branch information
matt2275 committed Sep 3, 2024
1 parent b33390a commit c66691b
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 c66691b

Please sign in to comment.