Skip to content

Commit

Permalink
Merge pull request #38766 from ChrisMisan/fix_rechitProducer_12_4_X
Browse files Browse the repository at this point in the history
[12_4_X]Skip PPS diamond calibration if there are no parameters
  • Loading branch information
cmsbuild authored Jul 19, 2022
2 parents 534c08e + 9ec5074 commit 7abfa84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoPPS/Local/src/CTPPSDiamondRecHitProducerAlgorithm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void CTPPSDiamondRecHitProducerAlgorithm::build(const CTPPSGeometry& geom,
double tot = -1., ch_t_twc = 0.;
if (t_lead != 0 && t_trail != 0) {
tot = (t_trail - t_lead) * ts_to_ns_; // in ns
if (calib_fct_ && apply_calib_) {
if (calib_fct_ && apply_calib_ && !ch_params.empty()) {
// compute the time-walk correction
ch_t_twc = calib_fct_->evaluate(std::vector<double>{tot}, ch_params);
if (edm::isNotFinite(ch_t_twc))
Expand Down

0 comments on commit 7abfa84

Please sign in to comment.