60 applyCalib_(iConfig.getParameter<
bool>(
"applyCalibration")),
67 produces<edm::DetSetVector<CTPPSDiamondRecHit> >();
71 auto pOut = std::make_unique<edm::DetSetVector<CTPPSDiamondRecHit> >();
91 ->setComment(
"input digis collection to retrieve");
92 desc.add<
std::string>(
"timingCalibrationTag",
"GlobalTag:PPSDiamondTimingCalibration")
93 ->setComment(
"input tag for timing calibrations retrieval");
94 desc.add<
double>(
"timeSliceNs", 25.0 / 1024.0)
95 ->setComment(
"conversion constant between HPTDC timing bin size and nanoseconds");
96 desc.add<
bool>(
"applyCalibration",
true)->setComment(
"switch on/off the timing calibration");
98 descr.
add(
"ctppsDiamondRecHits",
desc);
void build(const CTPPSGeometry &, const edm::DetSetVector< CTPPSDiamondDigi > &, edm::DetSetVector< CTPPSDiamondRecHit > &) override
T getParameter(std::string const &) const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
static void fillDescriptions(edm::ConfigurationDescriptions &)
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondDigi > > digiToken_
void produce(edm::Event &, const edm::EventSetup &) override
Event setup record containing the real (actual) geometry information.
#define DEFINE_FWK_MODULE(type)
The manager class for TOTEM RP geometry.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
void setCalibration(const PPSTimingCalibration &calib, const PPSTimingCalibrationLUT &calibLUT)
edm::ESGetToken< PPSTimingCalibrationLUT, PPSTimingCalibrationLUTRcd > timingCalibrationLUTToken_
CTPPSDiamondRecHitProducerAlgorithm algo_
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
CTPPSDiamondRecHitProducer(const edm::ParameterSet &)
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
A watcher to detect timing calibration changes.