9 #ifndef RecoPPS_Local_TimingRecHitProducerAlgorithm 10 #define RecoPPS_Local_TimingRecHitProducerAlgorithm 21 template <
typename G,
typename D,
typename R>
25 :
ts_to_ns_(iConfig.getParameter<double>(
"timeSliceNs")),
34 virtual void build(
const G&,
const D&,
R&) = 0;
const PPSTimingCalibration * calib_
DB-loaded calibration object.
virtual ~TimingRecHitProducerAlgorithm()=default
bool apply_calib_
Switch on/off the timing calibration.
virtual void build(const G &, const D &, R &)=0
const PPSTimingCalibrationLUT * calibLUT_
std::unique_ptr< reco::FormulaEvaluator > calib_fct_
Timing correction formula.
DecomposeProduct< arg, typename Div::arg > D
TimingRecHitProducerAlgorithm(const edm::ParameterSet &iConfig)
void setCalibration(const PPSTimingCalibration &calib, const PPSTimingCalibrationLUT &calibLUT)
const std::string & formula() const
double ts_to_ns_
Conversion constant between time slice and absolute time (in ns)