58 applyCalib_(iConfig.getParameter<bool>(
"applyCalibration")),
64 produces<edm::DetSetVector<CTPPSDiamondRecHit> >();
68 auto pOut = std::make_unique<edm::DetSetVector<CTPPSDiamondRecHit> >();
74 if (!digis->empty()) {
93 ->setComment(
"input digis collection to retrieve");
94 desc.
add<
std::string>(
"timingCalibrationTag",
"GlobalTag:PPSDiamondTimingCalibration")
95 ->setComment(
"input tag for timing calibrations retrieval");
96 desc.
add<
double>(
"timeSliceNs", 25.0 / 1024.0)
97 ->
setComment(
"conversion constant between HPTDC timing bin size and nanoseconds");
98 desc.
add<
bool>(
"applyCalibration",
true)->setComment(
"switch on/off the timing calibration");
100 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 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.
void setCalibration(const PPSTimingCalibration &)
T getParameter(std::string const &) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
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.