Go to the documentation of this file.
56 timingCalibrationTag_(iConfig.getParameter<
std::
string>(
"timingCalibrationTag")),
57 applyCalib_(iConfig.getParameter<
bool>(
"applyCalibration")),
59 produces<edm::DetSetVector<CTPPSDiamondRecHit> >();
63 auto pOut = std::make_unique<edm::DetSetVector<CTPPSDiamondRecHit> >();
69 if (!digis->empty()) {
90 ->setComment(
"input digis collection to retrieve");
91 desc.
add<
std::string>(
"timingCalibrationTag",
"GlobalTag:PPSDiamondTimingCalibration")
92 ->setComment(
"input tag for timing calibrations retrieval");
93 desc.
add<
double>(
"timeSliceNs", 25.0 / 1024.0)
94 ->
setComment(
"conversion constant between HPTDC timing bin size and nanoseconds");
95 desc.
add<
bool>(
"applyCalibration",
true)->setComment(
"switch on/off the timing calibration");
97 descr.
add(
"ctppsDiamondRecHits", desc);
bool check(const edm::EventSetup &iSetup)
Event setup record containing the real (actual) geometry information.
ESHandle< TrackerGeometry > geometry
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
A watcher to detect timing calibration changes.
void produce(edm::Event &, const edm::EventSetup &) override
void build(const CTPPSGeometry &, const edm::DetSetVector< CTPPSDiamondDigi > &, edm::DetSetVector< CTPPSDiamondRecHit > &)
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondDigi > > digiToken_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESInputTag timingCalibrationTag_
Label to timing calibration tag.
void setCalibration(const PPSTimingCalibration &)
EventSetup record for TOTEM/PPS timing calibration information.
static void fillDescriptions(edm::ConfigurationDescriptions &)
CTPPSDiamondRecHitProducerAlgorithm algo_
CTPPSDiamondRecHitProducer(const edm::ParameterSet &)
void setComment(std::string const &value)