61 applyCalib_(iConfig.getParameter<
bool>(
"applyCalibration")),
68 produces<edm::DetSetVector<CTPPSDiamondRecHit> >();
72 auto pOut = std::make_unique<edm::DetSetVector<CTPPSDiamondRecHit> >();
92 ->setComment(
"input digis collection to retrieve");
93 desc.add<
std::string>(
"timingCalibrationTag",
":PPSDiamondTimingCalibration")
94 ->setComment(
"input tag for timing calibrations retrieval");
95 desc.add<
double>(
"timeSliceNs", 25.0 / 1024.0)
96 ->setComment(
"conversion constant between HPTDC timing bin size and nanoseconds");
97 desc.add<
bool>(
"applyCalibration",
true)->setComment(
"switch on/off the timing calibration");
99 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_
edm::ESWatcher< PPSTimingCalibrationLUTRcd > lutWatcher_
void produce(edm::Event &, const edm::EventSetup &) override
Event setup record containing the real (actual) geometry information.
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
#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.