57 applyCalib_(iConfig.getParameter<
bool>(
"applyCalibration")),
62 produces<edmNew::DetSetVector<TotemT2RecHit> >();
66 auto pOut = std::make_unique<edmNew::DetSetVector<TotemT2RecHit> >();
86 ->setComment(
"input digis collection to retrieve");
87 desc.add<
std::string>(
"timingCalibrationTag",
"GlobalTag:TotemT2TimingCalibration")
88 ->setComment(
"input tag for timing calibrations retrieval");
89 desc.add<
double>(
"timeSliceNs", 25.0 / 1024.0)
90 ->setComment(
"conversion constant between timing bin size and nanoseconds");
91 desc.add<
bool>(
"applyCalibration",
false)->setComment(
"switch on/off the timing calibration");
93 descr.
add(
"totemT2RecHits",
desc);
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::ESGetToken< PPSTimingCalibrationLUT, PPSTimingCalibrationLUTRcd > timingCalibrationLUTToken_
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
edm::EDGetTokenT< edmNew::DetSetVector< TotemT2Digi > > digiToken_
void build(const TotemGeometry &, const edmNew::DetSetVector< TotemT2Digi > &, edmNew::DetSetVector< TotemT2RecHit > &) override
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
A watcher to detect timing calibration changes.
TotemT2RecHitProducerAlgorithm algo_
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< TotemGeometry, TotemGeometryRcd > geometryToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Event setup record containing the real (actual) geometry information.
bool check(const edm::EventSetup &iSetup)
void setCalibration(const PPSTimingCalibration &calib, const PPSTimingCalibrationLUT &calibLUT)
TotemT2RecHitProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override