CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TotemTimingRecHitProducer Class Reference

TOTEM/PPS timing detectors digi-to-rechits conversion module. More...

Inheritance diagram for TotemTimingRecHitProducer:
edm::stream::EDProducer<>

Public Member Functions

 TotemTimingRecHitProducer (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 

Private Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

TotemTimingRecHitProducerAlgorithm algo_
 Digi-to-rechits transformation algorithm. More...
 
edm::ESWatcher< PPSTimingCalibrationRcdcalibWatcher_
 Timing calibration parameters watcher. More...
 
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
 Input digi collection. More...
 
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecordgeometryToken_
 
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcdtimingCalibrationToken_
 EventSetup Tokens. More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

TOTEM/PPS timing detectors digi-to-rechits conversion module.

Definition at line 38 of file TotemTimingRecHitProducer.cc.

Constructor & Destructor Documentation

◆ TotemTimingRecHitProducer()

TotemTimingRecHitProducer::TotemTimingRecHitProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 58 of file TotemTimingRecHitProducer.cc.

60  timingCalibrationToken_(esConsumes<PPSTimingCalibration, PPSTimingCalibrationRcd>(
61  edm::ESInputTag(iConfig.getParameter<std::string>("timingCalibrationTag")))),
62  geometryToken_(esConsumes<CTPPSGeometry, VeryForwardRealGeometryRecord>()),
63  algo_(iConfig) {
64  produces<edm::DetSetVector<TotemTimingRecHit> >();
65 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
EventSetup Tokens.
TotemTimingRecHitProducerAlgorithm algo_
Digi-to-rechits transformation algorithm.
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
Input digi collection.

Member Function Documentation

◆ fillDescriptions()

void TotemTimingRecHitProducer::fillDescriptions ( edm::ConfigurationDescriptions descr)
static

Definition at line 92 of file TotemTimingRecHitProducer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_2022v12_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

92  {
94 
95  desc.add<edm::InputTag>("digiTag", edm::InputTag("totemTimingRawToDigi", "TotemTiming"))
96  ->setComment("input digis collection to retrieve");
97  desc.add<std::string>("timingCalibrationTag", "GlobalTag:TotemTimingCalibration")
98  ->setComment("input tag for timing calibrations retrieval");
99  desc.add<int>("baselinePoints", 8)->setComment("number of points to be used for the baseline");
100  desc.add<double>("saturationLimit", 0.1)
101  ->setComment(
102  "all signals with max > saturationLimit will be considered as saturated for UFSD, similarly with "
103  "min<saturationLimit for a Diamond");
104  desc.add<double>("cfdFraction", 0.3)->setComment("fraction of the CFD");
105  desc.add<int>("smoothingPoints", 20)
106  ->setComment("number of points to be used for the smoothing using sinc (lowpass)");
107  desc.add<double>("lowPassFrequency", 0.7)
108  ->setComment("Frequency (in GHz) for CFD smoothing, 0 for disabling the filter");
109  desc.add<double>("hysteresis", 5.e-3)->setComment("hysteresis of the discriminator");
110  desc.add<bool>("mergeTimePeaks", true)->setComment("if time peaks schould be merged");
111  desc.add<double>("sampicOffset", 1.0)->setComment("offset of the flipped sampic signal");
112  desc.add<double>("sampicSamplingPeriodNs", 1. / 7.695)->setComment("sapic sampling period in ns");
113  descr.add("totemTimingRecHits", desc);
114 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void TotemTimingRecHitProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 67 of file TotemTimingRecHitProducer.cc.

References algo_, TotemTimingRecHitProducerAlgorithm::build(), calibWatcher_, edm::ESWatcher< T >::check(), digiToken_, geometryToken_, edm::EventSetup::getHandle(), iEvent, eostools::move(), TotemTimingRecHitProducerAlgorithm::setCalibration(), and timingCalibrationToken_.

67  {
68  std::unique_ptr<edm::DetSetVector<TotemTimingRecHit> > pOut(new edm::DetSetVector<TotemTimingRecHit>);
69 
70  // get the digi collection
72  iEvent.getByToken(digiToken_, digis);
73 
74  // do not retrieve the calibration parameters if no digis were found
75  if (!digis->empty()) {
76  // check for timing calibration parameters update
77  if (calibWatcher_.check(iSetup)) {
79  algo_.setCalibration(*hTimingCalib);
80  }
81 
82  // get the geometry
84 
85  // produce the rechits collection
86  algo_.build(*geometry, *digis, *pOut);
87  }
88 
89  iEvent.put(std::move(pOut));
90 }
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
int iEvent
Definition: GenABIO.cc:224
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
EventSetup Tokens.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
void build(const CTPPSGeometry &, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &)
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
edm::ESWatcher< PPSTimingCalibrationRcd > calibWatcher_
Timing calibration parameters watcher.
void setCalibration(const PPSTimingCalibration &)
TotemTimingRecHitProducerAlgorithm algo_
Digi-to-rechits transformation algorithm.
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > digiToken_
Input digi collection.
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ algo_

TotemTimingRecHitProducerAlgorithm TotemTimingRecHitProducer::algo_
private

Digi-to-rechits transformation algorithm.

Definition at line 53 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ calibWatcher_

edm::ESWatcher<PPSTimingCalibrationRcd> TotemTimingRecHitProducer::calibWatcher_
private

Timing calibration parameters watcher.

Definition at line 55 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ digiToken_

edm::EDGetTokenT<edm::DetSetVector<TotemTimingDigi> > TotemTimingRecHitProducer::digiToken_
private

Input digi collection.

Definition at line 48 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ geometryToken_

edm::ESGetToken<CTPPSGeometry, VeryForwardRealGeometryRecord> TotemTimingRecHitProducer::geometryToken_
private

Definition at line 51 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ timingCalibrationToken_

edm::ESGetToken<PPSTimingCalibration, PPSTimingCalibrationRcd> TotemTimingRecHitProducer::timingCalibrationToken_
private

EventSetup Tokens.

Definition at line 50 of file TotemTimingRecHitProducer.cc.

Referenced by produce().