CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
TimingRecHitProducerAlgorithm< G, D, R > Class Template Referenceabstract

#include <TimingRecHitProducerAlgorithm.h>

Public Member Functions

virtual void build (const G &, const D &, R &)=0
 
void setCalibration (const PPSTimingCalibration &calib, const PPSTimingCalibrationLUT &calibLUT)
 
 TimingRecHitProducerAlgorithm (const edm::ParameterSet &iConfig)
 
virtual ~TimingRecHitProducerAlgorithm ()=default
 

Protected Attributes

bool apply_calib_
 Switch on/off the timing calibration. More...
 
const PPSTimingCalibrationcalib_ {nullptr}
 DB-loaded calibration object. More...
 
std::unique_ptr< reco::FormulaEvaluatorcalib_fct_
 Timing correction formula. More...
 
const PPSTimingCalibrationLUTcalibLUT_ {nullptr}
 
double ts_to_ns_
 Conversion constant between time slice and absolute time (in ns) More...
 

Detailed Description

template<typename G, typename D, typename R>
class TimingRecHitProducerAlgorithm< G, D, R >

Template Parameters
GGeometry condition format definition
DDigis input collection type
RRecHits output collection type

Definition at line 22 of file TimingRecHitProducerAlgorithm.h.

Constructor & Destructor Documentation

◆ TimingRecHitProducerAlgorithm()

template<typename G, typename D, typename R>
TimingRecHitProducerAlgorithm< G, D, R >::TimingRecHitProducerAlgorithm ( const edm::ParameterSet iConfig)
inlineexplicit

Definition at line 24 of file TimingRecHitProducerAlgorithm.h.

25  : ts_to_ns_(iConfig.getParameter<double>("timeSliceNs")),
26  apply_calib_(iConfig.getParameter<bool>("applyCalibration")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
bool apply_calib_
Switch on/off the timing calibration.
double ts_to_ns_
Conversion constant between time slice and absolute time (in ns)

◆ ~TimingRecHitProducerAlgorithm()

template<typename G, typename D, typename R>
virtual TimingRecHitProducerAlgorithm< G, D, R >::~TimingRecHitProducerAlgorithm ( )
virtualdefault

Member Function Documentation

◆ build()

template<typename G, typename D, typename R>
virtual void TimingRecHitProducerAlgorithm< G, D, R >::build ( const G &  ,
const D &  ,
R &   
)
pure virtual

◆ setCalibration()

template<typename G, typename D, typename R>
void TimingRecHitProducerAlgorithm< G, D, R >::setCalibration ( const PPSTimingCalibration calib,
const PPSTimingCalibrationLUT calibLUT 
)
inline

Definition at line 29 of file TimingRecHitProducerAlgorithm.h.

Referenced by CTPPSDiamondRecHitProducer::produce().

29  {
30  calib_ = &calib;
31  calibLUT_ = &calibLUT;
32  calib_fct_ = std::make_unique<reco::FormulaEvaluator>(calib_->formula());
33  }
const PPSTimingCalibration * calib_
DB-loaded calibration object.
const PPSTimingCalibrationLUT * calibLUT_
std::unique_ptr< reco::FormulaEvaluator > calib_fct_
Timing correction formula.
const std::string & formula() const

Member Data Documentation

◆ apply_calib_

template<typename G, typename D, typename R>
bool TimingRecHitProducerAlgorithm< G, D, R >::apply_calib_
protected

Switch on/off the timing calibration.

Definition at line 40 of file TimingRecHitProducerAlgorithm.h.

◆ calib_

template<typename G, typename D, typename R>
const PPSTimingCalibration* TimingRecHitProducerAlgorithm< G, D, R >::calib_ {nullptr}
protected

◆ calib_fct_

template<typename G, typename D, typename R>
std::unique_ptr<reco::FormulaEvaluator> TimingRecHitProducerAlgorithm< G, D, R >::calib_fct_
protected

◆ calibLUT_

template<typename G, typename D, typename R>
const PPSTimingCalibrationLUT* TimingRecHitProducerAlgorithm< G, D, R >::calibLUT_ {nullptr}
protected

◆ ts_to_ns_

template<typename G, typename D, typename R>
double TimingRecHitProducerAlgorithm< G, D, R >::ts_to_ns_
protected

Conversion constant between time slice and absolute time (in ns)

Definition at line 38 of file TimingRecHitProducerAlgorithm.h.