59 produces<edm::DetSetVector<CTPPSDiamondRecHit> >();
65 auto pOut = std::make_unique<edm::DetSetVector<CTPPSDiamondRecHit> >();
71 if ( !digis->empty() ) {
94 ->setComment(
"input digis collection to retrieve" );
95 desc.
add<
std::string>(
"timingCalibrationTag",
"GlobalTag:PPSDiamondTimingCalibration" )
96 ->setComment(
"input tag for timing calibrations retrieval" );
97 desc.
add<
double>(
"timeSliceNs", 25.0/1024.0 )
98 ->setComment(
"conversion constant between HPTDC timing bin size and nanoseconds" );
99 desc.
add<
int>(
"timeShift", 0 )
100 ->setComment(
"overall time offset to apply on all hits in all channels" );
102 descr.
add(
"ctppsDiamondRecHits", desc );
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void build(const CTPPSGeometry &, const edm::DetSetVector< CTPPSDiamondDigi > &, edm::DetSetVector< CTPPSDiamondRecHit > &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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.
EventSetup record for TOTEM/PPS timing calibration information.
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setCalibration(const PPSTimingCalibration &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
ESHandle< TrackerGeometry > geometry
CTPPSDiamondRecHitProducerAlgorithm algo_
CTPPSDiamondRecHitProducer(const edm::ParameterSet &)
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
A watcher to detect timing calibration changes.
edm::ESInputTag timingCalibrationTag_
Label to timing calibration tag.