60 applyCalib_(iConfig.getParameter<bool>(
"applyCalibration")),
67 produces<edm::DetSetVector<CTPPSDiamondRecHit> >();
71 auto pOut = std::make_unique<edm::DetSetVector<CTPPSDiamondRecHit> >();
77 if (!digis->empty()) {
97 ->setComment(
"input digis collection to retrieve");
98 desc.
add<
std::string>(
"timingCalibrationTag",
"GlobalTag:PPSDiamondTimingCalibration")
99 ->setComment(
"input tag for timing calibrations retrieval");
100 desc.
add<
double>(
"timeSliceNs", 25.0 / 1024.0)
101 ->
setComment(
"conversion constant between HPTDC timing bin size and nanoseconds");
102 desc.
add<
bool>(
"applyCalibration",
true)->setComment(
"switch on/off the timing calibration");
104 descr.
add(
"ctppsDiamondRecHits", desc);
void setComment(std::string const &value)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void build(const CTPPSGeometry &, const edm::DetSetVector< CTPPSDiamondDigi > &, edm::DetSetVector< CTPPSDiamondRecHit > &)
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondDigi > > digiToken_
void setCalibration(const PPSTimingCalibration &, const PPSTimingCalibrationLUT &)
void produce(edm::Event &, const edm::EventSetup &) override
Event setup record containing the real (actual) geometry information.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
The manager class for TOTEM RP geometry.
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
edm::ESGetToken< PPSTimingCalibrationLUT, PPSTimingCalibrationLUTRcd > timingCalibrationLUTToken_
CTPPSDiamondRecHitProducerAlgorithm algo_
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
CTPPSDiamondRecHitProducer(const edm::ParameterSet &)
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
A watcher to detect timing calibration changes.