Skip to content

Commit

Permalink
Merge pull request #12 from PFCal-dev/toa_scint_fix
Browse files Browse the repository at this point in the history
TOA fix for scintillator - tkx @pfs
  • Loading branch information
Giovanni Franzoni authored Nov 25, 2019
2 parents 735d054 + 8b0fa31 commit c043766
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SimCalorimetry/HGCalSimProducers/src/HGCHEbackDigitizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,13 @@ void HGCHEbackDigitizer::runRealisticDigitizer(std::unique_ptr<HGCalDigiCollecti
LogDebug("HGCHEbackDigitizer") << "totalIniMIPs: " << totalIniMIPs << " totalMIPs: " << totalMIPs << std::endl;
}

//store
//store charge
chargeColl[i] = totalMIPs;

//update time of arrival
toa[i] = cell.hit_info[1][i];
if (myFEelectronics_->toaMode() == HGCFEElectronics<HGCalDataFrame>::WEIGHTEDBYE && totalIniMIPs > 0)
toa[i] = cell.hit_info[1][i] / totalIniMIPs;
}

//init a new data frame and run shaper
Expand Down

0 comments on commit c043766

Please sign in to comment.