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 39 of file TotemTimingRecHitProducer.cc.

Constructor & Destructor Documentation

◆ TotemTimingRecHitProducer()

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

Definition at line 59 of file TotemTimingRecHitProducer.cc.

61  timingCalibrationToken_(esConsumes<PPSTimingCalibration, PPSTimingCalibrationRcd>(
62  edm::ESInputTag(iConfig.getParameter<std::string>("timingCalibrationTag")))),
63  geometryToken_(esConsumes<CTPPSGeometry, VeryForwardRealGeometryRecord>()),
64  algo_(iConfig) {
65  produces<edm::DetSetVector<TotemTimingRecHit> >();
66 }
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 87 of file TotemTimingRecHitProducer.cc.

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

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

◆ produce()

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

Definition at line 68 of file TotemTimingRecHitProducer.cc.

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

68  {
69  std::unique_ptr<edm::DetSetVector<TotemTimingRecHit> > pOut(new edm::DetSetVector<TotemTimingRecHit>);
70 
71  // get the digi collection
72  const auto& digis = iEvent.get(digiToken_);
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 
80  // produce the rechits collection
81  algo_.build(iSetup.getData(geometryToken_), digis, *pOut);
82  }
83 
84  iEvent.put(std::move(pOut));
85 }
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geometryToken_
int iEvent
Definition: GenABIO.cc:224
edm::ESGetToken< PPSTimingCalibration, PPSTimingCalibrationRcd > timingCalibrationToken_
EventSetup Tokens.
void build(const CTPPSGeometry &, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &) override
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 54 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ calibWatcher_

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

Timing calibration parameters watcher.

Definition at line 56 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ digiToken_

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

Input digi collection.

Definition at line 49 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ geometryToken_

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

Definition at line 52 of file TotemTimingRecHitProducer.cc.

Referenced by produce().

◆ timingCalibrationToken_

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

EventSetup Tokens.

Definition at line 51 of file TotemTimingRecHitProducer.cc.

Referenced by produce().